Re: Python and (n)curses

2007-06-19 Thread Ben Finney
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > The obvious choice, I thought, was ncurses. But as far as I can > tell, it is not available for Python on Windows? More precisely, curses doesn't work natively on Windows, regardless of whether Python is involved. As with many "how do I get Unix

Permutation over a list with selected elements

2007-06-19 Thread [EMAIL PROTECTED]
Hi, I have been working at this problem, and I think I need a permutation algorithm that does the following: Given a list of elements that are either a character or a character follows by a number, e.g. ['a', 'b', 'c1', 'd', 'e1', 'f', 'c2', 'x', 'e2'] find all the permutations that are given b

Rotating a picture

2007-06-19 Thread Tom Gur
Hi, I'm trying to build a small spaceship battle game as an exercise, using pygame. How can I rotate the gif file of my ship by X degrees ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Rotating a picture

2007-06-19 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Tom Gur wrote: > I'm trying to build a small spaceship battle game as an exercise, > using pygame. > How can I rotate the gif file of my ship by X degrees ? You shouldn't do this with the PyGame functions, the quality is poor. Either use a paint program to pre-generate ro

Re: sizeof() in python

2007-06-19 Thread Alvin Delagon
Thanks for the reply, yes you're right I just realized it sooner. -- http://mail.python.org/mailman/listinfo/python-list

poplib.retr doens't flag message as read

2007-06-19 Thread EuGeNe Van den Bulke
Hi there, I am trying to use the poplib library to get emails using the retr method. The small program bellow works but the message aren't flagged as read which puzzles me. I believe the pop server is qmail 1.0.6 / vpopmail 5.2.1 and I am running the following script on Windows using Pyhton 2.

Re: Matrix Multiplication

2007-06-19 Thread Jeremy Sanders
sturlamolden wrote: > That's what I wrote: "NumPy has a matrix type." It is called called > numpy.matrix. > > I did not suggest using the array type numpy.array. > > Reading carefully is indeed important... I know what you wrote and you are strictly correct. I was just clarifying it for a reade

Re: The Modernization of Emacs

2007-06-19 Thread Gian Uberto Lauri
> Long count = 12.19.14.7.8; tzolkin = 7 Lamat; haab = 16 Zotz. > I get words from the Allmighty Great Gnus that > "GB" == Galen Boyer <[EMAIL PROTECTED]> writes: GB> Most other environments will be for those just trying to perform GB> their tasks and staying even with the average prof

Re: Does altering a private member decouple the property's value?

2007-06-19 Thread Ben Finney
"Ethan Kennerly" <[EMAIL PROTECTED]> writes: > I really like properties for readonly attributes, Python doesn't have "readonly attributes", and to attempt to use properties for that purpose will only lead to confusion. > and their ability to make the interface more elegant, by hiding > uninteres

Re: avoid script running twice

2007-06-19 Thread Robin Becker
Nick Craig-Wood wrote: > Tim Williams <[EMAIL PROTECTED]> wrote: >> On 18/06/07, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >> On Windows the open-a-file-for-writing method works well, but as *nix >> doesn't work the same way then maybe the socket solution is the best >> cross-platform option.

Re: Python and (n)curses

2007-06-19 Thread peter
I've said it before and I'll say it again. Why does Python have no platform neutral commands for simple screen manipulation? yabasic (a 'hobby' type language - http://www.yabasic.de/) has commands clear screen, inkey$ and putscreen$ which perform the basic functions of clearing the screen, readi

Re: PIL cutting off letters

2007-06-19 Thread peter
On 16 Jun, 17:20, Pierre Hanser <[EMAIL PROTECTED]> wrote: > Matt Haggard a écrit : > > > I'm using PIL (Python Imaging Library) to generate button images. > > They consist of a left end image, a middle, repeating image and a > > right side image anyway, that's not important > > > I'm using a T

help in rnopen in bsddb?

2007-06-19 Thread Squzer
How ca i create a databse file using rnopen? How to set the key for this file? i am tried but i got error.. please can any one tell... -- http://mail.python.org/mailman/listinfo/python-list

is it possible to write python scripts in mainframe like REXX ??

2007-06-19 Thread abhilash pp
hai folks , i am extremely new to this list can anybody tell me where can i find docs that are related to "sripting in mainframe using python" or how can we use python instered of REXX in mainframe how can i run python scripts in mainframe any help will be appreciated. thanks in advanc

Python IDE

2007-06-19 Thread Tom Gur
Hi, which IDE would you recommend for a python ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE

2007-06-19 Thread bartek00
On 19 Cze, 12:39, Tom Gur <[EMAIL PROTECTED]> wrote: > Hi, > which IDE would you recommend for a python ? I prefer Eclipse with PyDev extension, link - http://wiki.python.org/moin/EclipsePythonIntegration -- http://mail.python.org/mailman/listinfo/python-list

determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread Kai Rosenthal
Hello, how can I determine the architecture (32 or 64bit) with python 2.2 on Windows or Unix (AIX, Solaris) OS, without the modul platform? Thanks for your hints, Kai -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and (n)curses

2007-06-19 Thread [EMAIL PROTECTED]
On Jun 19, 2:17 am, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > This link offers a series of links for console > IO...http://mail.python.org/pipermail/python-list/2005-January/303984.html > Thanks. > Among them is a link to the 'wcurses' module that has been relocated > here:http://adamv.com/d

very simple shared dll with ctypes

2007-06-19 Thread mclaugb
I have created a simple windows small_dll.dll exporting a function that does a computation using C and C++ classes which i wish to call from Python. I have read lots of ctypes documentation but I still dont quite understand how to call the function. As a test, I have written a much simpler mathem

Re: Python and (n)curses

2007-06-19 Thread [EMAIL PROTECTED]
On Jun 19, 9:04 am, Ben Finney <[EMAIL PROTECTED]> wrote: > > More precisely, curses doesn't work natively on Windows, regardless of > whether Python is involved. > True. But then: are there other multi-platform console libraries out there? I want to code to a single API. > As with many "how do I

static python classes ?

2007-06-19 Thread Tom Gur
Hi, I'm new to python, and I can't seem to find in the docs how to create the python equivalent of what's called in most OOP languages "static classes", can you give me a hint ? -- http://mail.python.org/mailman/listinfo/python-list

Urgent Onsite opportunity for Python Developers

2007-06-19 Thread Shikha Tomar
Hi, This is in Reference to the position for the direct client of Consus iTechnologies ( www.consusitechnologies.com) for Python Developer. We have reviewed your resume on one of the portal and a client of ours has a position available that we thought you might be interested in. Job Title: Pyth

File processing - is Python suitable?

2007-06-19 Thread ferrad
I have not used Python before, but believe it may be what I need. I have large text files containing text, numbers, and junk. I want to delete large chunks process other bits, etc, much like I'd do in an editor, but want to do it automatically. I have a set of generic rules that my fingers follo

Re: static python classes ?

2007-06-19 Thread google
On Jun 19, 10:00 pm, Tom Gur <[EMAIL PROTECTED]> wrote: > Hi, > > I'm new to python, and I can't seem to find in the docs how to create > the python equivalent of what's called in most OOP languages "static > classes", can you give me a hint ? Look for @staticmethod in http://docs.python.org/lib/b

Re: static python classes ?

2007-06-19 Thread google
> > the python equivalent of what's called in most OOP languages "static > > classes", can you give me a hint ? > > Look for @staticmethod inhttp://docs.python.org/lib/built-in-funcs.html Woops... I misread... -- Gerald Kaszuba http://geraldkaszuba.com -- http://mail.python.org/mailman/listinfo

Re: static python classes ?

2007-06-19 Thread Carsten Haese
On Tue, 2007-06-19 at 12:00 +, Tom Gur wrote: > Hi, > > I'm new to python, and I can't seem to find in the docs how to create > the python equivalent of what's called in most OOP languages "static > classes", can you give me a hint ? If I had to guess, which apparently I have to because you'r

textmate and execute line

2007-06-19 Thread andrea
Hi, I have the latest bundle for python (upgraded from svn) but I don't understand how execute line works.. It only works if I play with arithmetic operations, something like this works: 2*2 4 but for example trying to execute this line gives me this error, any help? x = 1; x + 1 Traceback (mos

Re: determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread John Machin
On Jun 19, 9:17 pm, Kai Rosenthal <[EMAIL PROTECTED]> wrote: > Hello, > how can I determine the architecture (32 or 64bit) with python 2.2 on > Windows or Unix (AIX, Solaris) OS, without the modul platform? > Thanks for your hints, Kai What happens when you fire up a 64-bit Python and type imp

Re: static python classes ?

2007-06-19 Thread Ant
It's not clear what you mean here. If you mean something like static inner classes in Java, then you can simply nest classes in Python: >>> class A(object): ... class B(object): ... def aaa(self): ... print "AA" ... >>> z = A.B() >>> z.aaa() AA (In c

Re: very simple shared dll with ctypes

2007-06-19 Thread Thomas Heller
mclaugb schrieb: > I have created a simple windows small_dll.dll exporting a function that does > a computation using C and C++ classes which i wish to call from Python. I > have read lots of ctypes documentation but I still dont quite understand how > to call the function. > > As a test, I have

Re: static python classes ?

2007-06-19 Thread Tom Gur
> Look for @staticmethod inhttp://docs.python.org/lib/built-in-funcs.html > > Example: > class C: > @staticmethod > def f(arg1, arg2, ...): ... Oops, sorry for the confusion - I've actually meant a static method, and Gerald's answer works fine. Thanks alot -- http://mail.python.org/mai

Re: File processing - is Python suitable?

2007-06-19 Thread Helmut Jarausch
ferrad wrote: > I have not used Python before, but believe it may be what I need. > > I have large text files containing text, numbers, and junk. I want to > delete large chunks process other bits, etc, much like I'd do in an > editor, but want to do it automatically. I have a set of generic > r

Re: Trivial string substitution/parser

2007-06-19 Thread Graham Breed
Duncan Booth wote: > If you must insist on using backslash escapes (which introduces the > question of how you get backslashes into the output: do they have to be > escaped as well?) then use string.Template with a custom pattern. If anybody wants this, I worked out the following regular expressi

Re: Python IDE

2007-06-19 Thread BartlebyScrivener
On Jun 19, 5:39 am, Tom Gur <[EMAIL PROTECTED]> wrote: > Hi, > which IDE would you recommend for a python ? VIM But if you crave distraction. http://wiki.python.org/moin/PythonEditors rd -- http://mail.python.org/mailman/listinfo/python-list

Re: very simple shared dll with ctypes

2007-06-19 Thread mclaugb
Assigining restype and argtypes works! "Thomas Heller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > mclaugb schrieb: >> I have created a simple windows small_dll.dll exporting a function that >> does >> a computation using C and C++ classes which i wish to call from Python. >>

Re: Python IDE

2007-06-19 Thread Bjoern Schliessmann
BartlebyScrivener wrote: > VIM *clap-clap* BTW, are there tutorials on the more arcane vim functions that come in handy with Python? Regards, Björn -- BOFH excuse #168: le0: no carrier: transceiver cable problem? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and (n)curses

2007-06-19 Thread Ben Finney
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Just to be more precise: curses is not a requirement, a > multi-platform console library with a single API is. So are there > alternatives to curses? Python-only or not. > > And as "peter" mentions, Python _could_ have such a library, > abstracting

Re: Python IDE

2007-06-19 Thread Ben Finney
Tom Gur <[EMAIL PROTECTED]> writes: > which IDE would you recommend for a python ? GNU screen, Emacs or Vim, and Bash. The right tool for each job, and tools that work well together, rather than a single tool trying to do everything in its own isolated world. -- \ "Killing the crea

Re: static python classes ?

2007-06-19 Thread Ben Finney
Tom Gur <[EMAIL PROTECTED]> writes: > I'm new to python, and I can't seem to find in the docs how to > create the python equivalent of what's called in most OOP languages > "static classes", can you give me a hint ? Can you give us a hint of what a "static class" would do? That is, what features

Re: Python and (n)curses

2007-06-19 Thread Jorgen Grahn
On Tue, 19 Jun 2007 02:43:09 -0700, peter <[EMAIL PROTECTED]> wrote: > I've said it before and I'll say it again. Why does Python have no > platform neutral commands for simple screen manipulation? yabasic (a > 'hobby' type language - http://www.yabasic.de/) has commands clear > screen, inkey$ a

Re: File processing - is Python suitable?

2007-06-19 Thread Alan Isaac
ferrad wrote: > I have large text files containing text, numbers, and junk. I want to > delete large chunks process other bits, etc, much like I'd do in an > editor, but want to do it automatically. > Question: can I translate these types of rules into programmatical > constructs that Python can

Re: GUI apps in Windows with native widgets?

2007-06-19 Thread vbr
> > From: Gilles Ganault <[EMAIL PROTECTED]> > Subj: GUI apps in Windows with native widgets? > Date: 19.6.2007 04:15:55 > > Hello > > I'd like to write a GUI app in Python exclusively for Windows. > Apparently, development o

Re: The Modernization of Emacs

2007-06-19 Thread Harry George
Galen Boyer <[EMAIL PROTECTED]> writes: > On Mon, 18 Jun 2007, [EMAIL PROTECTED] wrote: > > > The problem with this line of thinking is that it aims to make Emacs > > appeal to people -- I think it is rather the other way around. > > Certain people appeal to Emacs: certain kinds of people like E

Re: static python classes ?

2007-06-19 Thread Diez B. Roggisch
Tom Gur wrote: > Hi, > > I'm new to python, and I can't seem to find in the docs how to create > the python equivalent of what's called in most OOP languages "static > classes", can you give me a hint ? With other OOP languages you mean Java. Which does have static methods because they lack the

Re: Python and (n)curses

2007-06-19 Thread [EMAIL PROTECTED]
On Jun 19, 3:27 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > Just to be more precise: curses is not a requirement, a > > multi-platform console library with a single API is. So are there > > alternatives to curses? Python-only or not. > You wouldn

Re: The Modernization of Emacs

2007-06-19 Thread David Kastrup
Harry George <[EMAIL PROTECTED]> writes: > I don't mind folks using any editor they want, as long as they are > proficient. In those cases, I have no problem doing Extreme > Programming with them -- code a bit, save, the other guy codes a > bit. But when someone uses vi and then forgets how to d

Re: File processing - is Python suitable?

2007-06-19 Thread Peter Otten
ferrad wrote: > I have not used Python before, but believe it may be what I need. > > I have large text files containing text, numbers, and junk. I want to > delete large chunks process other bits, etc, much like I'd do in an > editor, but want to do it automatically. I have a set of generic >

Re: Does altering a private member decouple the property's value?

2007-06-19 Thread Steven D'Aprano
On Tue, 19 Jun 2007 18:54:41 +1000, Ben Finney wrote: > "Ethan Kennerly" <[EMAIL PROTECTED]> writes: > >> I really like properties for readonly attributes, > > Python doesn't have "readonly attributes", and to attempt to use > properties for that purpose will only lead to confusion. class Parr

Re: Does altering a private member decouple the property's value?

2007-06-19 Thread Alex Martelli
Ben Finney <[EMAIL PROTECTED]> wrote: > "Ethan Kennerly" <[EMAIL PROTECTED]> writes: > > > I really like properties for readonly attributes, > > Python doesn't have "readonly attributes", Many Python types do, e.g.: >>> def f(): pass ... >>> def g(): pass ... >>> f.func_name = 'zap' >>> f.f

Re: The Modernization of Emacs

2007-06-19 Thread Matthias Buelow
David Kastrup wrote: > My favorite killing offence is /* vi:set ts=4: */. This is apparently the default setting in many of the so-called "IDE"s today.. I think it's another unwelcome poison gift from the ignorant M$FT world (I suspect some primitive Windoze IDE which couldn't differentiate betwe

Re: determine 32 or 64 bit architecture with python 2.2

2007-06-19 Thread David Rushby
On Jun 19, 4:28 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Jun 19, 9:17 pm, Kai Rosenthal <[EMAIL PROTECTED]> wrote: > > > Hello, > > how can I determine the architecture (32 or 64bit) with python 2.2 on > > Windows or Unix (AIX, Solaris) OS, without the modul platform? > > Thanks for your hin

Re: Convert to C/C++?

2007-06-19 Thread Jorgen Grahn
On Thu, 14 Jun 2007 13:16:42 -0700, SpreadTooThin <[EMAIL PROTECTED]> wrote: > I am wondering if someone who knows the implemention of python's time > could help converting this to c/c++ > > nanoseconds = int(time.time() * 1e9) [straightforward non-time arithmetic snipped] > > v

Re: Python IDE

2007-06-19 Thread Neil Cerutti
On 2007-06-19, Bjoern Schliessmann <[EMAIL PROTECTED]> wrote: > BartlebyScrivener wrote: >> VIM > > *clap-clap* > > BTW, are there tutorials on the more arcane vim functions that > come in handy with Python? One thing to do is to look in your vim ftplugin directory and read python.vim. Unfortuna

missing modules help

2007-06-19 Thread Christopher L Judd
Dear list, I am attempting to build a python based project off SourceForge, iTorrent ( http://sourceforge.net/project/showfiles.php?group_id=163841&package_id=185388&release_id=415006). The project is built with py2exe, includes bittorrent 4.4 and appears to require a number of dependent modules.

Re: HTMLParser.HTMLParseError: EOF in middle of construct

2007-06-19 Thread none
Gabriel Genellina wrote: > En Mon, 18 Jun 2007 16:38:18 -0300, Sergio Monteiro Basto > <[EMAIL PROTECTED]> escribió: > >> Can someone explain me, what is wrong with this site ? >> >> python linkExtractor3.py http://www.noticiasdeaveiro.pt > test >> >> HTMLParser.HTMLParseError: EOF in middle of c

Re: HTMLParser.HTMLParseError: EOF in middle of construct

2007-06-19 Thread none
Gabriel Genellina wrote: > En Mon, 18 Jun 2007 16:38:18 -0300, Sergio Monteiro Basto > <[EMAIL PROTECTED]> escribió: > >> Can someone explain me, what is wrong with this site ? >> >> python linkExtractor3.py http://www.noticiasdeaveiro.pt > test >> >> HTMLParser.HTMLParseError: EOF in middle of c

Re: Thunderbird access to this newsgroup

2007-06-19 Thread engarde . gm
On Jun 18, 1:23 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > You might find, as many others do, that it's convenient to read this > group using the Gmane service - it's group gmane.comp.python.general on > server news.gmane.org. I tried news.gmane.org in Thunderbird and I keep on getting a error s

Re: Python IDE

2007-06-19 Thread Alex Martelli
Tom Gur <[EMAIL PROTECTED]> wrote: > which IDE would you recommend for a python ? It depends on that python's tastes and preferences. Like many others who have already responded, I prefer an editor (VIM) and a separate commandline/terminal; I know of many others who share another responder's pre

[ANN] pysqlite 2.3.4 released

2007-06-19 Thread Gerhard Häring
pysqlite 2.3.4 released === I'm pleased to announce the availability of pysqlite 2.3.4. This is a bugfix release. Go to http://pysqlite.org/ for downloads, online documentation and reporting bugs. What is pysqlite? pysqlite is a DB-API 2.0-compliant database interface f

Re: HTMLParser.HTMLParseError: EOF in middle of construct

2007-06-19 Thread none
Gabriel Genellina wrote: > En Mon, 18 Jun 2007 16:38:18 -0300, Sergio Monteiro Basto > <[EMAIL PROTECTED]> escribió: > >> Can someone explain me, what is wrong with this site ? >> >> python linkExtractor3.py http://www.noticiasdeaveiro.pt > test >> >> HTMLParser.HTMLParseError: EOF in middle of c

ctypes pointer

2007-06-19 Thread mclaugb
I have a simple function void adder(double a, double b, double *c){ *c = a+b; } i have created a shared dll -- "small_dll4.dll" of it using visual studio. now i wish to call it from python. to do so, i have done the following: libx = cdll("small_dll4.dll", RTLD_GLOBAL) libx.adder.argtypes = [c_

Re: HTMLParser.HTMLParseError: EOF in middle of construct

2007-06-19 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, none wrote: > Gabriel Genellina wrote: >> En Mon, 18 Jun 2007 16:38:18 -0300, Sergio Monteiro Basto >> <[EMAIL PROTECTED]> escribió: >> >>> Can someone explain me, what is wrong with this site ? >>> >>> python linkExtractor3.py http://www.noticiasdeaveiro.pt > test >>> >>

jedit - auto code completetion

2007-06-19 Thread Libertarian
Hi Does it have a plug-in for python code completetion ? thks -- http://mail.python.org/mailman/listinfo/python-list

Re: Output of HTML parsing

2007-06-19 Thread Jackie
On 6 15 , 2 01 , Stefan Behnel <[EMAIL PROTECTED]> wrote: > Jackie wrote: > import lxml.etree as et > url = "http://www.economics.utoronto.ca/index.php/index/person/faculty/"; > tree = et.parse(url) > > Stefan- - > > - - Thank you. But when I tried to run the above part, the fo

Re: Python IDE

2007-06-19 Thread William Allison
Bjoern Schliessmann wrote: > BartlebyScrivener wrote: >> VIM > > *clap-clap* > > BTW, are there tutorials on the more arcane vim functions that come > in handy with Python? > > Regards, > > > Björn > Not a tutorial, but I found this little snippet: http://www.ibiblio.org/obp/pyBiblio/tips/e

Re: Output of HTML parsing

2007-06-19 Thread Stefan Behnel
Jackie schrieb: > On 6 15 , 2 01 , Stefan Behnel <[EMAIL PROTECTED]> wrote: >> Jackie wrote: > >> import lxml.etree as et >> url = "http://www.economics.utoronto.ca/index.php/index/person/faculty/"; >> tree = et.parse(url) >> > >> Stefan- - >> >> - - > > Thank you. But when I t

Re: Python's "only one way to do it" philosophy isn't good?

2007-06-19 Thread Terry Reedy
"Douglas Alan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | "Terry Reedy" <[EMAIL PROTECTED]> writes: | | > |>oug writes: | | >> Scheme has a powerful syntax extension mechanism | | > I did not and do not see this as relevant to the main points of my | > summary above. The main

Re: ctypes pointer

2007-06-19 Thread mclaugb
I answered this one already. from ctypes import * libx = CDLL("small_dll5.dll", RTLD_GLOBAL) libx = cdll.small_dll4 libx.adder.restype = None libx.adder.argtypes = [c_double, c_double, POINTER(c_double)] real=c_double(0) imag=c_double(0) zz=libx.adder(3.342,4,byref(size)) print size "mclaugb" <

Re: Set timeout and kill external windows

2007-06-19 Thread gagsl-py2
At Saturday 16/06/2007 02:24, you wrote: > Thanks for your reply. I am new to Python and I cannot > seem to figure this out. I searched for examples based > on your recommendation below but couldn't do it. I am > not familiar with subprocess and WaitForSingleObject. > And I want to do this in Win

pydev help

2007-06-19 Thread Danyelle Gragsone
My first post! Greetings all, I am trying to get pydev up and running in linux. I have it up and running in windows but for some strange reason not here. I did install pydev a few months ago on my windows machine so that may be the reason why.. I followed this guide: http://www.fabioz.com/pyde

Re: ctypes pointer

2007-06-19 Thread Thomas Heller
mclaugb schrieb: > I have a simple function > > void adder(double a, double b, double *c){ > *c = a+b; > } > > i have created a shared dll -- "small_dll4.dll" of it using visual studio. > > now i wish to call it from python. > to do so, i have done the following: > > libx = cdll("small_dll4.dll

Re: pydev help

2007-06-19 Thread Christopher L Judd
Its called mylyn now. You can get it from here: http://www.eclipse.org/mylyn/dl.php Best, Chris On 6/19/07, Danyelle Gragsone <[EMAIL PROTECTED]> wrote: My first post! Greetings all, I am trying to get pydev up and running in linux. I have it up and running in windows but for some strange

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

2007-06-19 Thread Gabriel Genellina
QOTW: "Regarding a Java programmer moving to Python, a lot of the mindset change is about the abundant use of built in data types of Python. So a Java programmer, when confronted with a problem, should think 'how can I solve this using lists, dicts and tuples?' (and perhaps also my new favourite,

Re: sqlite3 bug??

2007-06-19 Thread Gerhard Häring
Hyuga wrote: > On Jun 17, 9:16 am, mark carter <[EMAIL PROTECTED]> wrote: >> Should I also explicitly close the cursor and connection, or is that >> taken care of "automagically"? >> > > Somebody correct me if I'm wrong, but I'm pretty sure that the Cursor > and Connection objects properly clean t

easy_install from svn

2007-06-19 Thread Rob Cowie
Hi all, I currently use easy_install to install packages from a custom, locally hosted package_index. The index consists of a single html doc with a list of package names and urls. All works well. I would like to get a little more sophisticated and install a package from subversion. My package i

Re: pydev help

2007-06-19 Thread Danyelle Gragsone
ty! Danyelle -- http://mail.python.org/mailman/listinfo/python-list

Phraserate

2007-06-19 Thread [EMAIL PROTECTED]
I have found the Phraserate algorithm to extract keyphrases from html pages and I tried it and it works like a charm. However the algorithm is integrated in the much bigger iVia library, but I need something smaller and more practical, so I was wondering if someone knows of a python implementation

ni pci-6010 Analog Input Multifunction DAQ

2007-06-19 Thread luca72
Hello there is someone that have experience with the ni-pci-6010 Analog Input Multifunction DAQ and python? -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes pointer

2007-06-19 Thread mclaugb
Yes, i double defined one of the terms when copying it. This now works by value and by reference. Thanks alot, Bryan "Thomas Heller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > mclaugb schrieb: >> I have a simple function >> >> void adder(double a, double b, double *c){ >> *c =

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-19 Thread Xah Lee
Here are some Frequently Asked Questions about The Modernization of Emacs. They are slightly lengthy, so i've separated each item per post. The whole article can be found at http://xahlee.org/emacs/modernization.html Q: The Terminology “buffer” and “keybinding” is good as they are.

Re: The Modernization of Emacs: not dumb down

2007-06-19 Thread Xah Lee
Here are some Frequently Asked Questions about The Modernization of Emacs. They are slightly lengthy, so i've separated each item per post. The whole article can be found at http://xahlee.org/emacs/modernization.html Q: Why should emacs want to be popular and why should emacs change

Re: The Modernization of Emacs: technically superior

2007-06-19 Thread Xah Lee
Here are some Frequently Asked Questions about The Modernization of Emacs. They are slightly lengthy, so i've separated each item per post. The whole article can be found at http://xahlee.org/emacs/modernization.html Q: Emacs's ways are technically superior. It should not change. A:

Re: The Modernization of Emacs: exists already

2007-06-19 Thread Xah Lee
Here are some Frequently Asked Questions about The Modernization of Emacs. They are slightly lengthy, so i've separated each item per post. The whole article can be found at http://xahlee.org/emacs/modernization.html Q: Aquamacs already does what you want. A: Aquamacs is a emacs var

metaclasses and performance

2007-06-19 Thread Mirko Dziadzka
Hi all I'm playing around with metaclasses and noticed, that there is small but mesurable a performance difference in the code shown below. With a more complex example I get a 5 percent performance penalty for using a metaclass. Until today I assumed, that a metaclass has no performance impact at

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-19 Thread Joel J. Adamson
Xah Lee <[EMAIL PROTECTED]> writes: > Here are some Frequently Asked Questions about The Modernization of > Emacs. > > They are slightly lengthy, so i've separated each item per post. The > whole article can be found at > > http://xahlee.org/emacs/modernization.html > > > Q: The Termi

Re: jedit - auto code completetion

2007-06-19 Thread Wildemar Wildenburger
Libertarian wrote: > Does it have a plug-in for python code completetion ? > Yes. /W -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows XMLRPC Service

2007-06-19 Thread Gabriel Genellina
En Tue, 19 Jun 2007 03:45:19 -0300, <[EMAIL PROTECTED]> escribió: > I can't quite figure out where to set the "socket timeout". I tried > setting win32event.WAIT_TIMEOUT, but I'm pretty sure that's not the > variable you were talking about. I did manage to make it multi- > threaded by incorpora

Python/C API bug (multithreading)

2007-06-19 Thread Krzysztof Włodarczyk
Hi, I think I've found a bug in Python/C API and multithreading. I'm currently creating an intrusion detection system based on mobile agents. I have an AgentPlatform (C/C++) and 2 agents on it (2 Python scripts: Snort and Anomaly) These 2 agents are each running its own Python interpreter (bot

serial readline thread IO Error (9, 'Bad file descriptor')

2007-06-19 Thread nik
Hi, How can I close a thread that is waiting on a file/port down gracefully, and not have an IO error pop up? I am having trouble closing a thread that is listening to the serial port. I have a thread that calls uses a pySerial serial port and calls readline() without a timeout, which is blocking.

Re: Python's "only one way to do it" philosophy isn't good?

2007-06-19 Thread Douglas Alan
"Terry Reedy" <[EMAIL PROTECTED]> writes: > The main point of my original post was that the quoted slam at Python was > based on a misquote of Tim Peters But it wasn't based on a "misquote of Tim Peters"; it was based on an *exact* quotation of Tim Peters. > and a mischaracterization of Python

ARM cross compile - one last problem

2007-06-19 Thread jmtulloss
Hello all, I've been trying to get Python to cross compile to linux running on an ARM. I've been fiddling with the cross compile patches here: http://sourceforge.net/tracker/index.php?func=detail&aid=1597850&group_id=5470&atid=305470 and I've had some success. Python compiles and now all of the e

Re: Windows XMLRPC Service

2007-06-19 Thread half . italian
On Jun 19, 10:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 19 Jun 2007 03:45:19 -0300, <[EMAIL PROTECTED]> escribió: > > > I can't quite figure out where to set the "socket timeout". I tried > > setting win32event.WAIT_TIMEOUT, but I'm pretty sure that's not the > > variable you

Re: Python's "only one way to do it" philosophy isn't good?

2007-06-19 Thread Neil Cerutti
On 2007-06-19, Douglas Alan <[EMAIL PROTECTED]> wrote: > "Terry Reedy" <[EMAIL PROTECTED]> writes: >> At the end, I added as a *side note* the irony that the >> purported author was the co-developer of Scheme, another >> 'minimalist algorithm language > > Sussman's statements are not ironic becaus

Re: The Modernization of Emacs

2007-06-19 Thread John Nagle
Gian Uberto Lauri wrote: >>"GB" == Galen Boyer <[EMAIL PROTECTED]> writes: > > > GB> Most other environments will be for those just trying to perform > GB> their tasks and staying even with the average proficiency chart. Oh, please. The "I'm so l33t" thing. I used EMACS back in the

caseless dictionary howto ?

2007-06-19 Thread Stef Mientki
hello, I need to search a piece of text and make all words that are equal (except their case) also equal in their case, based on the first occurrence. So I'm using a dictionary to store names and attributes of objects. As as I need to search on the caseless name (so I've choosen lowercase), My dic

Re: easy_install from svn

2007-06-19 Thread Stefan Behnel
Rob Cowie wrote: > I currently use easy_install to install packages from a custom, > locally hosted package_index. The index consists of a single html doc > with a list of package names and urls. All works well. > > I would like to get a little more sophisticated and install a package > from subve

Reference current module?

2007-06-19 Thread Tobiah
Can I do: getattr(current_module, 'foo') where 'current_module' is a handle the the one that the code is in? Just like getattr(self, 'foo') in a class, but for the current module instead? Thanks, Toby -- Posted via a free Usenet account from http://www.teranews.com -- http://mail.python.

Re: The Modernization of Emacs

2007-06-19 Thread Ed
On 19 Juni, 07:14, Harry George > > I've used emacs since the 1980's. ... > -- > Harry George > PLM Engineering Architecture I've asked this question on an emacs forum and got no response, so I presume the answer is no, but I see, Harry, that you're a veteran, so maybe you've seen things few other

Re: Reference current module?

2007-06-19 Thread Steven Bethard
Tobiah wrote: > Can I do: > > getattr(current_module, 'foo') > > where 'current_module' is a handle the the one > that the code is in? Just like > > getattr(self, 'foo') > > in a class, but for the current module instead? You can try __import__() with __name__:: >>> foo = 42 >>> mo

Re: File processing - is Python suitable?

2007-06-19 Thread Jorgen Grahn
On Tue, 19 Jun 2007 05:15:17 -0700, ferrad <[EMAIL PROTECTED]> wrote: > I have not used Python before, but believe it may be what I need. > > I have large text files containing text, numbers, and junk. I want to > delete large chunks process other bits, etc, much like I'd do in an > editor, but wa

  1   2   >