Re: SECURITY ADVISORY [PSF-2006-001] Buffer overrun in repr() for UCS-4 encoded unicode strings

2006-10-12 Thread Anthony Baxter
On Thursday 12 October 2006 17:31, Anthony Baxter wrote: SECURITY ADVISORY [PSF-2006-001] Buffer overrun in repr() for UCS-4 encoded unicode strings http://www.python.org/news/security/PSF-2006-001/ As a few people noted in email to me - the patch directory was not _quite_

ANN: BayPIGgies, Oct 12, 7:30pm, Google, Mtn View

2006-10-12 Thread wesley chun
Final REMINDER: Tonight, the Silicon Valley/San Francisco Bay Area Python users group meets at Google in Mountain View from 7:30-9p. the featured speaker is Alex Martelli, author of O'Reilly's Python in a Nutshell and editor of the Python Cookbook(s). the topic is Python 2.5. for more info and

Guppy-PE 0.1.5 released

2006-10-12 Thread Sverker Nilsson
I would like to announce Guppy-PE 0.1.5 Guppy-PE is a library and programming environment for Python, currently providing in particular the Heapy subsystem, which supports object and heap memory sizing, profiling and debugging. It also includes a prototypical specification language, the Guppy

Re: hundreds of seconds?

2006-10-12 Thread neoedmund
python's time is as old as glibc's time(). A more clear interface as Java should be implements! though i'm not has the ability to do this. maybe some volenties could do out the favor. On Oct 11, 10:38 pm, [EMAIL PROTECTED] wrote: Hi all How can I access partial seconds on the system clock?

Re: Experiences with Py2Exe

2006-10-12 Thread Fredrik Lundh
Isaac Rodriguez wrote: I am asking this because I have a lot of experience using the Windows Installer service, and I also have all the productivity tools available to create an installer for my tools if I needed to just go ahead and use it. py2exe generates an EXE and (usually) a bunch of

Re: Standard Forth versus Python: a case study

2006-10-12 Thread bearophileHUGS
[EMAIL PROTECTED] wrote: no sort() is needed to calculate the median of a list. you just need one temp var. Can you show some actual code? (There is the median of 5 algorithm too). Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-12 Thread Erik Max Francis
Ilias Lazaridis wrote: http://dabodev.com http://case.lazaridis.com/wiki/DaboAudit Who. Cares. What. You. Think? -- Erik Max Francis [EMAIL PROTECTED] http://www.alcyone.com/max/ San Jose, CA, USA 37 20 N 121 53 W AIM, Y!M erikmaxfrancis Love is, above all, the gift of oneself.

Re: How to write Smart Python programs?

2006-10-12 Thread Antoine De Groote
Antoine De Groote wrote: class C(object): def __init__(self): self.__x = None def getx(self): return self._x def setx(self, value): self._x = value def delx(self): del self._x x = property(getx, setx, delx, I'm the 'x' property.) Altough I'm not the OP, thanks a lot

Re: How to write Smart Python programs?

2006-10-12 Thread Paul Rubin
Antoine De Groote [EMAIL PROTECTED] writes: In the snippet above (taken from the Python doc http://docs.python.org/lib/built-in-funcs.html), self.__x is initialized, but never used. I would appreciate any explanation for this. Looks like a typo, should say self._x . --

Re: How to write Smart Python programs?

2006-10-12 Thread Fredrik Lundh
Antoine De Groote wrote: In the snippet above (taken from the Python doc http://docs.python.org/lib/built-in-funcs.html), self.__x is initialized, but never used. I would appreciate any explanation for this. looks like a typo. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: News on versions modules for Python-2.5?

2006-10-12 Thread MC
Hi! Ok. Downloaded. Thanks -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: How to write Smart Python programs?

2006-10-12 Thread Antoine De Groote
Paul Rubin wrote: Antoine De Groote [EMAIL PROTECTED] writes: In the snippet above (taken from the Python doc http://docs.python.org/lib/built-in-funcs.html), self.__x is initialized, but never used. I would appreciate any explanation for this. Looks like a typo, should say self._x . Ok,

Re: Python component model

2006-10-12 Thread Kay Schluehr
Peter Maas wrote: Paul Boddie wrote: People who bring up stuff about self and indentation are just showing their ignorance, in my opinion, since Python isn't the first language to use self in such a way, and many C++ and Java programs use this pervasively in order to make attribute scope

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Fredrik Lundh
Paul Rubin wrote: Ok, I'll bite. How do you compute the median of a list using just a single temp var? Well there's an obvious quadratic-time method... that does it without modifying the list? if you can modify the list, there are plenty of algorithms that does it in expected O(n) or

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Paul Rubin
Fredrik Lundh [EMAIL PROTECTED] writes: Ok, I'll bite. How do you compute the median of a list using just a single temp var? Well there's an obvious quadratic-time method... that does it without modifying the list? if you can modify the list, there are plenty of algorithms that does

SECURITY ADVISORY [PSF-2006-001] Buffer overrun in repr() for UCS-4 encoded unicode strings

2006-10-12 Thread Anthony Baxter
SECURITY ADVISORY [PSF-2006-001] Buffer overrun in repr() for UCS-4 encoded unicode strings http://www.python.org/news/security/PSF-2006-001/ Advisory ID: PSF-2006-001 Issue Date: October 12, 2006 Product: Python Versions: 2.2, 2.3, 2.4 prior to 2.4.4, wide unicode

RELEASED Python 2.4.4, release candidate 1

2006-10-12 Thread Anthony Baxter
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4.4 (release candidate 1). Python 2.4.4 is a bug-fix release. While Python 2.5 is the latest version of Python, we're making this release for people who are still running Python

Re: sufficiently pythonic code for testing type of function

2006-10-12 Thread A.T.Hofkamp
On 2006-10-11, Bruno Desthuilliers [EMAIL PROTECTED] wrote: A.T.Hofkamp wrote: On 2006-10-11, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Now the real question : what if the object is not an instance of any of the types, but still support the expected interface ? one possible answer: Use

pygtk dynamic table

2006-10-12 Thread JyotiC
hi, i am making a gui, which looks like excel sheets. i want to give the user the facility of adding rows/columns at the run time. there is some initial size, but that can be increased any time during the executation of the code. what i have tried, is that i am using table. so when ever user

Re: Python component model

2006-10-12 Thread Fredrik Lundh
Erik Max Francis wrote: http://dabodev.com http://case.lazaridis.com/wiki/DaboAudit Who. Cares. What. You. Think? his mom? /F -- http://mail.python.org/mailman/listinfo/python-list

Enum

2006-10-12 Thread Massi
Hi Everyone! Does anybody know how to implemet Enumeration in python for Ctypes? Thank you! Massi -- http://mail.python.org/mailman/listinfo/python-list

Dll files and Python2.5

2006-10-12 Thread roee88 shlomo
Hi, I would like to know a few things about the dll files usually included in Python windowsapplications: 1. in the Pythonwin Home Page (http://www.python.net/crew/skippy/win32/) I can see that mfc42.dll is required for python2.3 and mfc71.dll is required for python2.4 . Ismfc71.dll still

Re: Dll files and Python2.5

2006-10-12 Thread roee88 shlomo
Ignore the first question, it is required. On 10/12/06, roee88 shlomo [EMAIL PROTECTED] wrote: Hi, I would like to know a few things about the dll files usually included in Python windowsapplications: 1. in the Pythonwin Home Page (http://www.python.net/crew/skippy/win32/) I can see that

Re: Motions.

2006-10-12 Thread dug
Hi, I think that the science discipline you will be working with is called 'computer vision' (CV). It will be worthwhile also posting your question in a CV group. Best wishes Douglas Dr. Pastor wrote: Hi: I would like to track the motions of small birds in short (20-30sec) .avi films. What

prefix search on a large file

2006-10-12 Thread js
Hello, list. I have a list of sentence in text files that I use to filter-out some data. I managed the list so badly that now it's become literally a mess. Let's say the list has a sentence below 1. Python has been an important part of Google since the beginning, and remains so as the system

Re: operator overloading + - / * = etc...

2006-10-12 Thread Bruno Desthuilliers
Georg Brandl wrote: Bruno Desthuilliers wrote: Steven D'Aprano wrote: On Sat, 07 Oct 2006 17:21:55 -0500, Tim Chase wrote: With the caveat of the = mentioned in the subject-line (being different from ==)...I haven't found any way to override assignment in the general case. Why would you

Re: operator overloading + - / * = etc...

2006-10-12 Thread Bruno Desthuilliers
Terry Reedy wrote: Bruno Desthuilliers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The current namespace object, of course. Implementing a namespace as a Python object (ie, dict) is completely optional and implementation dependent. For CPython, the local namespace of a

Re: thread lock question

2006-10-12 Thread Ritesh Raj Sarraf
I'm sorry. My example code wasn't clear enough. Please see the following: exit_status = copy_first_match(foo, bar) if exit_status == False: if download_file(foo, bar) == True: if zip_bool: ziplock.acquire() try:

Re: is there an easy way to create a database on the fly and let the user input values

2006-10-12 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: I don't realy care what database I use wx.grid or whatever. I wan't it to look at a line 128 9023 23428 exc and create the database or pick something out of the file as some sort of a descrition line and then display and allow the user to change and add new

Code generator

2006-10-12 Thread Massi
Hello NG! Can anybody explain me how to install the code generator fo ctypes on my pc? I use windows... for example I found this line command on the overview: python h2xml.py windows.h -o windows.xml -q -c Where do I have to type? and where do I have to put the file that I got from the

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Ian McConnell
[EMAIL PROTECTED] writes: John Doty: Yes. The efficient exact algorithms for this problem use *partial* sorts. The Forth one from the FSL is of this class (although I know of two better ones for big arrays). But it's tough to beat the efficiency of the approximate histogram-based method the

python's newbie question

2006-10-12 Thread tpochep
Hi. I have some strange problem (this is usual for newbies :) ): #!/usr/bin/python #sample.py class Base1: def __init__(self): print Base1.__init__, self def __del__(self): print Base1.__del__, self class Base2: def __init__(self): print Base2.__init__, self

Re: python's newbie question

2006-10-12 Thread js
http://mail.python.org/pipermail/python-list/2004-May/221591.html HTH -- http://mail.python.org/mailman/listinfo/python-list

Re: python's newbie question

2006-10-12 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: begin... Derived.__init__: Base1.__init__ __main__.Derived instance at 0x1869adcc Base2.__init__ __main__.Derived instance at 0x1869adcc end... Derived.__del__: Exception exceptions.AttributeError: 'NoneType' object has no attribute '__del__' in bound method

Re: python's newbie question

2006-10-12 Thread tpochep
js писал(а): http://mail.python.org/pipermail/python-list/2004-May/221591.html HTH Thank you!!! -- http://mail.python.org/mailman/listinfo/python-list

Re: python's newbie question

2006-10-12 Thread tpochep
Fredrik Lundh писал(а): Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Experiences with Py2Exe

2006-10-12 Thread MaR
We use py2exe on regular basis for most of our app's, both for internal and external distribution. We then pack it to an installer using NSIS (http://nsis.sourceforge.net/Main_Page) which is also free :o) -- http://mail.python.org/mailman/listinfo/python-list

Re: python's newbie question

2006-10-12 Thread Duncan Booth
[EMAIL PROTECTED] wrote: I tried different names instead of b1, sometimes programm works, sometimes I have an exception. So it's clear, that I've done some stupid mistake, but it's not clear for me, python's newbie, where :) Not a stupid mistake, although as you come to use Python more you

Re: What value should be passed to make a function use the default argument value?

2006-10-12 Thread Magnus Lycka
Antoon Pardon wrote: Well maybe he didn't intend that, but how is the reader of the documentation to know that? The reader can only go by how things are documented. If those are not entirely consistent with the intend of the programmer, that is not the readers fault. I don't think I ever

XML ElementTree Parse.

2006-10-12 Thread marc . wyburn
I'm playing with XML and elementtree and am missing something but I'm not sure what...? I've create an XML file with Elementtree with a root of backup.xml. Attached to the root is a dirob and the dirobj has a fileobj. fileobj has filename and filesize tags. I can open the file in excel and it

Re: prefix search on a large file

2006-10-12 Thread John Machin
js wrote: Hello, list. I have a list of sentence in text files that I use to filter-out some data. I managed the list so badly that now it's become literally a mess. Let's say the list has a sentence below 1. Python has been an important part of Google since the beginning, and remains

Re: XML ElementTree Parse.

2006-10-12 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: I'm playing with XML and elementtree and am missing something but I'm not sure what...? I've create an XML file with Elementtree with a root of backup.xml. Attached to the root is a dirob and the dirobj has a fileobj. fileobj has filename and filesize tags. I can

Re: Python component model

2006-10-12 Thread Terry Reedy
Ilias Lazaridis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I share the infrastructure which I use: http://dev.lazaridis.com/base But not quite yet, it appears. A public release is planned shortly -- http://mail.python.org/mailman/listinfo/python-list

Re: Where is Python in the scheme of things?

2006-10-12 Thread Magnus Lycka
Bruno Desthuilliers wrote: gord wrote: As a complete novice in the study of Python, I am asking myself where this language is superior or better suited than others. For example, all I see in the tutorials are lots of examples of list processing, arithmetic calculations - all in a DOS-like

Re: XML ElementTree Parse.

2006-10-12 Thread marc . wyburn
Thanks Fredrik, thats got me started but just incase anyone looks there is a slight mistype in your code... or you could do something like for dir_elem in tree.findall(dirob): for file_elem in dirob.findall(fileob): print file_elem.findtext(filesize) to loop over

Re: Alternative constructors naming convention

2006-10-12 Thread Will McGugan
Steven Bethard wrote: Are you really using staticmethod and calling __new__? It's often much easier to use classmethod, e.g.:: class Color(object): ... @classmethod def from_html(cls, r, g, b): ... # convert r, g, b to normal

Re: Standard Forth versus Python: a case study

2006-10-12 Thread [EMAIL PROTECTED]
Paul McGuire wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] no sort() is needed to calculate the median of a list. you just need one temp var. Ok, I'll bite. How do you compute the median of a list using just a single temp var? -- Paul hi Paul; well

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Paul Rubin
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: fun median { var x = 0. while( *p++) { if( (*p) x) x = *p. } return x. } I count two variables, p and x. -- http://mail.python.org/mailman/listinfo/python-list

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Paul Rubin
Paul Rubin http://[EMAIL PROTECTED] writes: fun median { var x = 0. while( *p++) { if( (*p) x) x = *p. } return x. } I count two variables, p and x. Also, that finds the maximum, not the median. I had stopped examining it after seeing it used more than one variable.

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Andrew Haley
In comp.lang.forth Paul Rubin http://[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] writes: fun median { var x = 0. while( *p++) { if( (*p) x) x = *p. } return x. } I count two variables, p and x. Isn't this the maximum? Andrew. --

Re: error handling

2006-10-12 Thread Bernard
lol you are so right! I didn't even notice this was the 1.5.2 version! Gabriel Genellina wrote: At Wednesday 11/10/2006 16:16, Bernard wrote: I just found this webpage showing the most common exceptions: http://pydoc.org/1.5.2/exceptions.html Why not refer to the *current* documentation?

Re: How to share session with IE

2006-10-12 Thread zdp
I found some similar topics in the newsgroup and get some ideas from them. http://groups.google.com/group/comp.lang.python/browse_thread/thread/2fe0be6c386adce4 http://groups.google.com/group/comp.lang.python/browse_thread/thread/a51cec8747f64619 According to all you suggestions, there are at

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: hi Paul; well when this was a stats-class assignment (back when pascal was popular :) i just stepped through the vector and compared it (pseudo-code) ptr p = [with values]. fun median { var x = 0. while( *p++) { if( (*p) x) x = *p. } return x. } of

httplib/DAV: How to respond to WWW-Authenticate: NTLM ?

2006-10-12 Thread robert
In a DAV scheme with PROPFIND or GET (PROPFIND /test/ HTTP/1.1) and Basic AUTH to a MS SharePoint over https server (AUTH required), he responds 'WWW-Authenticate: NTLM' only: reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Content-Length: 1656 header: Content-Type: text/html header: Server:

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Peter Decker
On 12 Oct 2006 04:40:32 -0700, Paul Rubin http://phr.cx@nospam.invalid wrote: Paul Rubin http://[EMAIL PROTECTED] writes: fun median { var x = 0. while( *p++) { if( (*p) x) x = *p. } return x. } I count two variables, p and x. Also, that finds the maximum,

Re: does raw_input() return unicode?

2006-10-12 Thread Neil Cerutti
On 2006-10-11, Martin v. Löwis [EMAIL PROTECTED] wrote: Neil Cerutti schrieb: I'm all mindboggley. Just when I thought I was starting to understand how this character encoding stuff works. Are PythonWin's stdout and stdin implementations is incomplete? Simple and easy: yes, they are. Oh,

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Fredrik Lundh
Peter Decker wrote: Also, that finds the maximum, not the median. I had stopped examining it after seeing it used more than one variable. Um... isn't 'p' the list in question? no, it's a pointer to the current item in the list. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Standard Forth versus Python: a case study

2006-10-12 Thread bearophileHUGS
Ian McConnell wrote: If you can use Psyco and your FITS lines are really long (well, maybe too much, the treshold if about ~3000 in my PC) you can use something like this instead the builtin timsort: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/466330 (To compute the median on

Re: operator overloading + - / * = etc...

2006-10-12 Thread Terry Reedy
Bruno Desthuilliers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Terry Reedy wrote: Bruno Desthuilliers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The current namespace object, of course. Implementing a namespace as a Python object (ie, dict) is completely

Assigning different Exception message

2006-10-12 Thread Tor Erik Soenvisen
try: self.cursor.execute(sql) except AttributeError, e: if e.message == oracleDB instance has no attribute 'cursor': e.message = 'oracleDB.open() must be called before' + \ ' oracleDB.query()' raise

Re: How to be a good programmers?

2006-10-12 Thread Gasikara
I have already started to learn the language (python) since 4 months, I love this language program! I have read some of example of zope and I see that it look like with html programming , so I don't need to learn again this things. -- http://mail.python.org/mailman/listinfo/python-list

Re: Assigning different Exception message

2006-10-12 Thread Peter Otten
Tor Erik Soenvisen wrote: try: self.cursor.execute(sql) except AttributeError, e: if e.message == oracleDB instance has no attribute 'cursor': e.message = 'oracleDB.open() must be called before' + \ '

Re: How to be a good programmers?

2006-10-12 Thread Gasikara
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I just started to learn python programming because I need to be in the group when google come in Madagascar, So I want to know, what kind of python programming I have to start to learn? Zope?...? Sorry for My english! You can writ me on

Click and Drag Functionality in Web Apps with Python

2006-10-12 Thread Wijaya Edward
Hi, Some recent webapps like Kiko http://www.kiko.com/ , Google's gadget http://www.google.com/ig/directory?hl=en , and spreadsheets http://spreadsheets.google.com to name a few, have this functionality. I wonder how can this funcitonalities be implemented in Python. Do you guys have any

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Paul McGuire
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Paul McGuire wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] no sort() is needed to calculate the median of a list. you just need one temp var. Ok, I'll bite. How do you compute the median of a

Re: httplib/DAV: How to respond to WWW-Authenticate: NTLM ?

2006-10-12 Thread Steve Holden
robert wrote: In a DAV scheme with PROPFIND or GET (PROPFIND /test/ HTTP/1.1) and Basic AUTH to a MS SharePoint over https server (AUTH required), he responds 'WWW-Authenticate: NTLM' only: reply: 'HTTP/1.1 401 Unauthorized\r\n' header: Content-Length: 1656 header: Content-Type:

Pickling an instance of a class containing a dict doesn't work

2006-10-12 Thread Marco Lierfeld
Hello there, I want to save an instance of a class containing a dictionary with the pickle-module. The class looks like this: class subproject: configuration = {} build_steps = [] # some functions # ... Now I create

Re: Click and Drag Functionality in Web Apps with Python

2006-10-12 Thread Steve Holden
Wijaya Edward wrote: Hi, Some recent webapps like Kiko http://www.kiko.com/ , Google's gadget http://www.google.com/ig/directory?hl=en , and spreadsheets http://spreadsheets.google.com to name a few, have this functionality. I wonder how can this funcitonalities be implemented in

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Fredrik Lundh
Paul McGuire wrote: My original question was in response to your post, that sort() wasn't required but only a temp variable. I am very interested in seeing your solution that does not require the data to be sorted. (This is not just an academic exercise - given a large historical

Re: error handling

2006-10-12 Thread Fulvio
On Thursday 12 October 2006 04:47, Gabriel Genellina wrote: |Why not refer to the *current* documentation? Gabriel, Thank you, some time I (we) forget to look at the most obvious place ;) Meanwhile yesterday I found some useful info on the web, which an *except* statement needs a string object

Re: prefix search on a large file

2006-10-12 Thread js
Thank you for the quick reply. Here're the exact code I executed. (including your code) #!/usr/bin/env python from pprint import pprint as pp data = [ 'foo bar baz', 'foo bar', 'foo', 'food', 'food', # duplicate 'xyzzy', 'plugh', 'xyzzy and plugh are magic', '',

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Paul Rubin
Paul McGuire [EMAIL PROTECTED] writes: My original question was in response to your post, that sort() wasn't required but only a temp variable. I am very interested in seeing your solution that does not require the data to be sorted. (This is not just an academic exercise - given a large

Re: Pickling an instance of a class containing a dict doesn't work

2006-10-12 Thread Jon Clements
Marco Lierfeld wrote: The class looks like this: class subproject: configuration = {} build_steps = [] # some functions # ... Now I create an instance of this class, e.g. test = subproject() and try

Re: Pickling an instance of a class containing a dict doesn't work

2006-10-12 Thread Jon Clements
Jon Clements wrote: if you change the above to: class subproject: def __init__(self): configuration = { } build_steps = [ ] Of course, I actually meant to write self.configuration and self.build_steps; d0h! -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickling an instance of a class containing a dict doesn't work

2006-10-12 Thread Paul McGuire
Marco Lierfeld [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello there, I want to save an instance of a class containing a dictionary with the pickle-module. The class looks like this: class subproject: configuration = {} build_steps

Re: Click and Drag Functionality in Web Apps with Python

2006-10-12 Thread Bernard
I'd say they use javascript to make a click and drag function. Like this jquery interface example: http://interface.eyecon.ro/demos/drag.html So basically, you could use a python web framework like Turbogears(http://www.turbogears.org/) or Django(http://www.djangoproject.com/) with javascript to

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Paul Rubin
Paul Rubin http://[EMAIL PROTECTED] writes: Tarjan discovered a guaranteed O(n) algorithm in the 1970's(?) whose operation is much different and quite complex. But all of these need more than one temp var. See an algorithms book like CLRS or Knuth for more info. Ehh, make that Blum, Floyd,

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Paul McGuire
Fredrik Lundh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Paul McGuire wrote: My original question was in response to your post, that sort() wasn't required but only a temp variable. I am very interested in seeing your solution that does not require the data to be sorted.

Re: People's names

2006-10-12 Thread Antoon Pardon
On 2006-10-11, Theerasak Photha [EMAIL PROTECTED] wrote: On 10/10/06, Piet van Oostrum [EMAIL PROTECTED] wrote: Roel Schroeven [EMAIL PROTECTED] (RS) wrote: RS It's the same here in Belgium. Except that our Van is with a capital V in RS most cases; if it's a lower v it either indicates

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Neil Cerutti
On 2006-10-12, Paul Rubin http wrote: Tarjan discovered a guaranteed O(n) algorithm in the 1970's(?) Huhn! I thought Tarjan was just the big bad evil guy in Bard's Tale 2 who was creating eternal winter. I'm glad he also contributed to our stock of *useful* algorithms. -- Neil Cerutti We

Re: is there an easy way to create a database on the fly and let the user input values

2006-10-12 Thread Chris Lambacher
I've heard good things about Dabo: http://dabodev.com/ On Wed, Oct 11, 2006 at 09:44:37PM -0700, [EMAIL PROTECTED] wrote: I don't realy care what database I use wx.grid or whatever. I wan't it to look at a line 128 9023 23428 exc and create the database or pick something out of the

Re: Pickling an instance of a class containing a dict doesn't work

2006-10-12 Thread Marco Lierfeld
Jon Clements wrote: if you change the above to: class subproject: def __init__(self): configuration = { } build_steps = [ ] Of course, I actually meant to write self.configuration and self.build_steps; d0h! Thank you Jon and Paul, you both were 100% right :) But I

Compile python on Solaris 64bit

2006-10-12 Thread Martijn de Munnik
Hi, I want to compile python on my solaris 10 system (amd 64 bit). I did the following: ./configure --prefix=/opt/64/python make which resulted in this error: Include/pyport.h, line 730: #error: LONG_BIT definition appears wrong for platform (bad gcc/glibc config?). so I edited the file and

Re: Compile python on Solaris 64bit

2006-10-12 Thread casevh
Martijn de Munnik wrote: Hi, I want to compile python on my solaris 10 system (amd 64 bit). I did the following: ./configure --prefix=/opt/64/python make which resulted in this error: Include/pyport.h, line 730: #error: LONG_BIT definition appears wrong for platform (bad gcc/glibc

What is python(abi)?

2006-10-12 Thread Mandy.Lialie
Hi, I have search it for quite a long time. But I still can't get it. When I attempt to install yum and others, it always embarrasses me. It says python(abi) = 2.4 is need. I have version 2.4 at first. But have a try version 2.5, remove 2.4. Both work well, and do well with wx. OS: FC5 THX. --

Re: Standard Forth versus Python: a case study

2006-10-12 Thread John Doty
Paul McGuire wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Paul McGuire wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] no sort() is needed to calculate the median of a list. you just need one temp var. Ok, I'll bite. How do you compute the

Re: What is python(abi)?

2006-10-12 Thread Fredrik Lundh
Mandy.Lialie wrote: I have search it for quite a long time. But I still can't get it. When I attempt to install yum and others, it always embarrasses me. It says python(abi) = 2.4 is need. afaik, python(api) is a psuedo-package that's used for dependency manage- ment in Red Hat and Fedora

Re: Standard Forth versus Python: a case study

2006-10-12 Thread Neal Bridges
John Doty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] Here's a KR C function I wrote almost 20 years ago. [code snipped] John, 'man indent' right away! -- Neal Bridges http://quartus.net Home of Quartus Forth for the Palm OS! --

Re: prefix search on a large file

2006-10-12 Thread js
By eliminating list cloning, my function got much faster than before. I really appreciate you, John. def prefixdel_recursively2(alist): if len(alist) 2: return alist first = alist.pop(0) unneeded = [no for no, line in enumerate(alist) if line.startswith(first)] adjust=0

Re: python 2.5 sqlite3

2006-10-12 Thread John Salerno
Fredrik Lundh wrote: I still think the get the official build (and add win32all if you're doing native windows stuff) advice is sound, though. Agreed. It seems silly to use anything other than the official release. But anyway, I think the OP was confused about having to install the sqlite

Re: Compile python on Solaris 64bit

2006-10-12 Thread Alan Franzoni
Il Thu, 12 Oct 2006 16:46:19 +0200 (CEST), Martijn de Munnik ha scritto: Hi, I want to compile python on my solaris 10 system (amd 64 bit). Just a question... AFAIK, Solaris 10 64 bit includes binaries kernels for both 64 bit and 32 bit machines. Which binaries are you actually using? I

Re: operator overloading + - / * = etc...

2006-10-12 Thread OKB (not okblacke)
Terry Reedy wrote: Implementing a namespace as a Python object (ie, dict) is completely optional and implementation dependent. For CPython, the local namespace of a function is generally *not* done that way. Sure, but this is all just theoretical talk anyway, right? I would like to

Re: python 2.5 sqlite3

2006-10-12 Thread Fredrik Lundh
John Salerno wrote: Now, if the ActiveState distro *doesn't* include the libraries, then I would probably call it broken too. :) if it doesn't, it wouldn't be the first time they'd (by accident or on purpose) left things out. trust me, it'd cause a lot less confusion if ActivePython was a

Wing IDE 2.1.3 released

2006-10-12 Thread Wingware Announce
Hi, We're happy to announce version 2.1.3 of Wing IDE, an advanced development environment for the Python programming language. This is a bug fix release that fixes debugger support for Python 2.5 final, improves VI mode and multi-file replace, and adds support for Subversion 1.4, among other

Re: Click and Drag Functionality in Web Apps with Python

2006-10-12 Thread Bruno Desthuilliers
Wijaya Edward wrote: Hi, Some recent webapps like Kiko http://www.kiko.com/ , Google's gadget http://www.google.com/ig/directory?hl=en , and spreadsheets http://spreadsheets.google.com to name a few, have this functionality. I wonder how can this funcitonalities be implemented in

Re: How to be a good programmers?

2006-10-12 Thread Bruno Desthuilliers
Gasikara wrote: I have already started to learn the language (python) since 4 months, I love this language program! I have read some of example of zope and I see that it look like with html programming, Well... Zope being a web app server, this may not be that surprising. Now there's much

numpy slice: create view, not copy

2006-10-12 Thread K. Jansma
Hi, given an array: import numpy a = numpy.arange(100).reshape((10,10)) print a [[ 0 1 2 3 4 5 6 7 8 9] [10 11 12 13 14 15 16 17 18 19] [20 21 22 23 24 25 26 27 28 29] [30 31 32 33 34 35 36 37 38 39] [40 41 42 43 44 45 46 47 48 49] [50 51 52 53 54 55 56 57 58 59] [60 61 62 63 64

Re: Pickling an instance of a class containing a dict doesn't work

2006-10-12 Thread Peter Otten
Marco Lierfeld wrote: Jon Clements wrote: if you change the above to: class subproject: def __init__(self): configuration = { } build_steps = [ ] Of course, I actually meant to write self.configuration and self.build_steps; d0h! Thank you Jon and Paul, you both

Python 2.4 online certification - new items available for Beta testing

2006-10-12 Thread Randy Kraemer
There is a free Beta test of a Python 2.4 Certification test available at Brainbench.com. They are a provider of skills-based certification exams. Go to the link below to find the test. It is free to take the test. http://www.brainbench.com/xml/bb/common/testcenter/betatests.xml --

problem including tests in unittest

2006-10-12 Thread Chris Fonnesbeck
I have a module for which I am trying to code a unit test. However, when I run unittest.main(), I get: In [1]: import PyMC In [2]: PyMC.unittest.main() -- Ran 0 tests in 0.000s OK This is confusing, because I have set up a

  1   2   3   >