[ANN] Twisted 8.0

2008-03-26 Thread Christopher Armstrong
http://twistedmatrix.com/ MASSACHUSETTS (DP) -- Version 8.0 of the Twisted networking framework has been released, Twisted Matrix Laboratories announced Wednesday. Enslaved by his new robotic overloads, Master of the Release Christopher Armstrong presented the new package to the Internet on

Re: subprocess.popen function with quotes

2008-03-26 Thread Gabriel Genellina
En Wed, 26 Mar 2008 02:15:28 -0300, skunkwerk [EMAIL PROTECTED] escribió: On Mar 25, 9:25 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 26 Mar 2008 00:39:05 -0300, skunkwerk [EMAIL PROTECTED]   escribió:    i'm trying to call subprocess.popen on the 'rename' function in linux.

Decent 2D animation with Windows.Forms GUI

2008-03-26 Thread Admin.397
Hi folks, I'm running a simple 2D game using Pygame but really would like a decent GUI and am currently testing out wxPython. As it turns out, I can't get Pygame working in a wxPython canvas and instead turned to openGL - which is painfully slow at reading through an array of points. Can anyone

Re: Beta testers needed for a high performance Python application server

2008-03-26 Thread John Nagle
Graham Dumpleton wrote: Yes that is a viable option, as still are existing fastcgi solutions for Apache, lighttpd and nginx. Fast cgi is a good technology, but it's not well documented or well supported. For some reason, the Apache people don't like it. It used to be part of the Apache

Computer Shop center

2008-03-26 Thread siti
Hi friends. if you wanna looking the latest original software..mobile phone...laptop..pc.. accessories... you can search at here..it will give the best price for you. Amazon has teamed up with Allianz Insurance plc who can offer you insurance on this product, covering accidental damage and

Computer Shop center

2008-03-26 Thread siti
Hi friends. if you wanna looking the latest original software..mobile phone...laptop..pc.. accessories... you can search at here..it will give the best price for you. Amazon has teamed up with Allianz Insurance plc who can offer you insurance on this product, covering accidental damage and

Re: Beta testers needed for a high performance Python application server

2008-03-26 Thread Paul Rubin
John Nagle [EMAIL PROTECTED] writes: Fast cgi is a good technology, but it's not well documented or well supported. For some reason, the Apache people don't like it. It used to be part of the Apache distribution, but that ended years ago. It seems to be coming back into favor. See:

Re: how to dynamically create class methods ?

2008-03-26 Thread Arnaud Delobelle
On Mar 25, 10:55 pm, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: On Tue, 25 Mar 2008 14:17:16 -0600, j vickroy wrote: As per your suggestion, I tried looking at include/code.h and include/funcobject.h (my MS Windows distribution does not appear to contain .c files).  

Re: how to dynamically create class methods ?

2008-03-26 Thread Arnaud Delobelle
On Mar 25, 10:55 pm, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: [...] In my haste I forgot to finish my post: Here's an example that might help. class MyClass(object):     pass records = [spam, ham] for record in records:     # define a new function     def f(n):      

Re: Filtering a Python list to uniques

2008-03-26 Thread Raymond Hettinger
On Mar 25, 4:30 pm, kellygreer1 [EMAIL PROTECTED] wrote: What is the best way to filter a Python list to its unique members? I tried some method using Set but got some unhashable error. lstone = [ 1, 2, 3, 3, 4, 5, 5, 6 ] # how do i reduce this to lsttwo = [ 1, 2, 3, 4, 5, 6 ] If the

Strange loop behavior

2008-03-26 Thread Gabriel Rossetti
Hello, I wrote a program that reads data from a file and puts it in a string, the problem is that it loops infinitely and that's not wanted, here is the code : d = repr(f.read(DEFAULT_BUFFER_SIZE)) while d != : file_str.write(d) d = repr(f.read(DEFAULT_BUFFER_SIZE)) I

Re: Strange loop behavior

2008-03-26 Thread Diez B. Roggisch
Gabriel Rossetti schrieb: Hello, I wrote a program that reads data from a file and puts it in a string, the problem is that it loops infinitely and that's not wanted, here is the code : d = repr(f.read(DEFAULT_BUFFER_SIZE)) while d != : file_str.write(d) d =

Re: Prototype OO

2008-03-26 Thread castironpi
On Mar 26, 3:14 am, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Wed, 26 Mar 2008 02:03:24 -0300, Gabriel Genellina [EMAIL PROTECTED] declaimed the following in comp.lang.python: No:http://en.wikipedia.org/wiki/Saruman Ask him any time over. --

Re: Strange loop behavior

2008-03-26 Thread Peter Otten
Gabriel Rossetti wrote: I wrote a program that reads data from a file and puts it in a string, the problem is that it loops infinitely and that's not wanted, here is the code : d = repr(f.read(DEFAULT_BUFFER_SIZE)) while d != : file_str.write(d) d =

Re: SoC project: Python-Haskell bridge - request for feedback

2008-03-26 Thread Paul Rubin
A few thoughts. The envisioned Python-Haskell bridge would have two directions: 1) calling Haskell code from Python; 2) calling Python code from Haskell. The proposal spends more space on #1 but I think #1 is both more difficult and less interesting. By Haskell I presume you mean GHC. I think

Re: Strange loop behavior

2008-03-26 Thread Arnaud Delobelle
On Mar 26, 8:35 am, Gabriel Rossetti [EMAIL PROTECTED] wrote: Hello, I wrote a program that reads data from a file and puts it in a string, the problem is that it loops infinitely and that's not wanted, here is the code :     d = repr(f.read(DEFAULT_BUFFER_SIZE))     while d != :        

Re: Strange loop behavior

2008-03-26 Thread Gabriel Rossetti
Gabriel Rossetti wrote: Hello, I wrote a program that reads data from a file and puts it in a string, the problem is that it loops infinitely and that's not wanted, here is the code : d = repr(f.read(DEFAULT_BUFFER_SIZE)) while d != : file_str.write(d) d =

Re: Strange loop behavior

2008-03-26 Thread Arnaud Delobelle
On Mar 26, 8:51 am, Gabriel Rossetti [EMAIL PROTECTED] wrote: Gabriel Rossetti wrote: Hello, I wrote a program that reads data from a file and puts it in a string, the problem is that it loops infinitely and that's not wanted, here is the code :     d =

Re: Strange loop behavior

2008-03-26 Thread Matt Nordhoff
Gabriel Rossetti wrote: Hello, I wrote a program that reads data from a file and puts it in a string, the problem is that it loops infinitely and that's not wanted, here is the code : d = repr(f.read(DEFAULT_BUFFER_SIZE)) while d != : file_str.write(d) d =

Re: Strange loop behavior

2008-03-26 Thread Gabriel Rossetti
Arnaud Delobelle wrote: On Mar 26, 8:35 am, Gabriel Rossetti [EMAIL PROTECTED] wrote: Hello, I wrote a program that reads data from a file and puts it in a string, the problem is that it loops infinitely and that's not wanted, here is the code : d =

Re: Circular references not being cleaned up by Py_Finalize()

2008-03-26 Thread Hrvoje Niksic
blackpawn [EMAIL PROTECTED] writes: I know the garbage collector is tracking the object because it properly calls the traverse function but for whatever reason it never calls the clear function. Does anyone have experience with circular references and had success with it or the example in

GUI toolkits with Tkinter's .pack() alternative

2008-03-26 Thread Alex9968
Hi all, I use Tkinter's Pack widget geometry manager (I really prefer it over using visual GUI designers), so my question is which other GUI toolkits have similar functionality. Secondly, I like the detailed widget borders configuration possible in Tkinter, which can be used to tweak GUI

Re: Filtering a Python list to uniques

2008-03-26 Thread hellt
On 26 мар, 02:30, kellygreer1 [EMAIL PROTECTED] wrote: What is the best way to filter a Python list to its unique members? I tried some method using Set but got some unhashable error. lstone = [ 1, 2, 3, 3, 4, 5, 5, 6 ] # how do i reduce this to lsttwo = [ 1, 2, 3, 4, 5, 6 ] Is there a

Re: Time module is not behaving.

2008-03-26 Thread Jeff Lofaro
Yep that does it. Thanks Gary. - Original Message From: Gary Herron [EMAIL PROTECTED] To: jjlofaro [EMAIL PROTECTED] Cc: python-list@python.org Sent: Wednesday, 26 March, 2008 2:49:55 AM Subject: Re: Time module is not behaving. jjlofaro wrote: Hi I'm just getting myself going again

Re: GUI toolkits with Tkinter's .pack() alternative

2008-03-26 Thread Guilherme Polo
2008/3/26, Alex9968 [EMAIL PROTECTED]: Hi all, I use Tkinter's Pack widget geometry manager (I really prefer it over using visual GUI designers), so my question is which other GUI toolkits have similar functionality. The geometry manager isn't related to using GUI designers tools at all.

Re: Beta testers needed for a high performance Python application server

2008-03-26 Thread Bruno Desthuilliers
Minor Gordon a écrit : (snip otherwise intersting stuff) Background: I'm in this to help write a story for Python and web applications. Everyone likes to go on about Ruby on Rails, and as far as I can tell there's nothing that approaches Rails in Python. You may have missed Django and

Socialsoft Startup Jobs

2008-03-26 Thread mobiledreamers
http://www.thesocialsoft.com/jobs.html We - Build stuff that people love and use everyday - have a healthy disregard for the impossible - are not a conventional company and do not intend to be one - Think big, think fast and think ahead - set our goals high and work to exceed them,

matplotlib / legend of x-axis

2008-03-26 Thread Frédéric Degraeve
Hi everybody, I've got a problem concerning matplotlib/pylab. I use it to represent curves. I will use these pictures in a report. However, it writes me a string 'date' on the bottom of my x-axis. I use this to produce my date axis (x-axis): mondays = WeekdayLocator(MONDAY)# every

Re: _tkinter fails when installing Python 2.4.4

2008-03-26 Thread Diez B. Roggisch
jgelfand wrote: On Mar 25, 5:52 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: jgelfand schrieb: I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) [RedHat Enterprise Linux 4.6] 64-bit machine. Running ./configure --prefix=/ usr/local/yosi/ciao-4.0/ots --enable-shared appears

Re: embedded python pythonpath

2008-03-26 Thread Furkan Kuru
On Wed, Mar 26, 2008 at 3:49 AM, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 25 Mar 2008 22:22:41 -0300, Furkan Kuru [EMAIL PROTECTED] escribió: On 3/26/08, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 25 Mar 2008 20:38:39 -0300, Furkan Kuru [EMAIL PROTECTED] escribió:

Re: Need help calling a proprietary C DLL from Python

2008-03-26 Thread Craig
On Mar 26, 12:24 am, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Tue, 25 Mar 2008 08:24:13 -0700 (PDT), Craig [EMAIL PROTECTED] declaimed the following in comp.lang.python: 41 0 0 0 7 0 0 0 Which makes sense for two reasons: 1. It would only return the non-space-filled part of the

Tkinter menus from keyboard

2008-03-26 Thread MartinRinehart
Tkinter defaults to, for example, Alt+f = File (if File is your first menu name starting with f). I'd like to assign my own letters and have them underscored, per the universal standard. Can this be done? -- http://mail.python.org/mailman/listinfo/python-list

Re: Prototype OO

2008-03-26 Thread Bruno Desthuilliers
sam a écrit : Bruno Desthuilliers napisał(a): In dynamically typed language when you create object A that is inherited from another object B, than object A knows that B is his predecessor. So when you reference A.prop, then prop is looked in A first, then in B, then in predecessors of

Re: Tkinter menus from keyboard

2008-03-26 Thread Guilherme Polo
2008/3/26, [EMAIL PROTECTED] [EMAIL PROTECTED]: Tkinter defaults to, for example, Alt+f = File (if File is your first menu name starting with f). I'd like to assign my own letters and have them underscored, per the universal standard. Can this be done? Set the underline option to the

memory allocation for Python list

2008-03-26 Thread dmitrey
hi all, I have a python list of unknown length, that sequentially grows up via adding single elements. Each element has same size in memory (numpy.array of shape 1 x N, N is known from the very beginning). As I have mentioned, I don't know final length of the list, but usually I know a good

Dimensions of Arrays, Matrices

2008-03-26 Thread Dark Wind
Hi, Suppose we have a 3X3 matrix in Mathematica. We can get its dimensions by: Dimensions[A] = {3,3} TensorRank[A] = 2 Are there exact functions for these two in Python? Thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: Dimensions of Arrays, Matrices

2008-03-26 Thread Michael Wieher
Google - matrix python 1st response: http://www.python.org/community/sigs/retired/matrix-sig/ The purpose of this SIG was to continue development of a Python matrix type. This effort succeeded and resulted in Numerical Pythonhttp://numpy.sf.net/, a high-speed array language for Python by

Re: memory allocation for Python list

2008-03-26 Thread bearophileHUGS
dmitrey: As I have mentioned, I don't know final length of the list, but usually I know a good approximation, for example 400. There is no reserve()-like method, but this is a fast enough operation you can do at the beginning: l = [None] * 400 It may speed up your code, but the final resizing

Re: memory allocation for Python list

2008-03-26 Thread Michael Wieher
Just write it in C and compile it into a file.so/pyd =) 2008/3/26, [EMAIL PROTECTED] [EMAIL PROTECTED]: dmitrey: As I have mentioned, I don't know final length of the list, but usually I know a good approximation, for example 400. There is no reserve()-like method, but this is a fast

Re: Beta testers needed for a high performance Python application server

2008-03-26 Thread Grzegorz Słodkowicz
Why not just put it on the net somewhere and tell us where it is? People aren't generally going to want to help or even look at it if you treat it like a proprietary application. So, put the documentation and code up somewhere for all to see. http://www.yieldserver.com:8081/ --

Re: subprocess.popen function with quotes

2008-03-26 Thread skunkwerk
On Mar 25, 11:04 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 26 Mar 2008 02:15:28 -0300, skunkwerk [EMAIL PROTECTED]   escribió: On Mar 25, 9:25 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 26 Mar 2008 00:39:05 -0300, skunkwerk [EMAIL PROTECTED]   escribió:    

Re: Do any of you recommend Python as a first programming language?

2008-03-26 Thread Simon Brunning
On Sun, Mar 23, 2008 at 4:29 AM, Steven D'Aprano [EMAIL PROTECTED] wrote: Python is a programming language. It can be used for scripting, but that's not all it can do. Describing it as a scripting language is like describing a fully-equipped professional kitchen as a left-over warming

Re: subprocess.popen function with quotes

2008-03-26 Thread skunkwerk
On Mar 26, 6:44 am, skunkwerk [EMAIL PROTECTED] wrote: On Mar 25, 11:04 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 26 Mar 2008 02:15:28 -0300, skunkwerk [EMAIL PROTECTED]   escribió: On Mar 25, 9:25 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 26 Mar 2008

Running a python program as main...

2008-03-26 Thread waltbrad
Stumbling through Mark Lutz's Programming Python 3rd, he gives an example of a program that will automatically configure environment settings and launch other programs. Then he gives an example of running this program. On his command line he types: C:\...\PP3ELauncher.py and this begins the

PyQT / QDate / QTableWidget

2008-03-26 Thread wrightee
Hi, new at PyQT but not coding.. I'm stumbling with QDate and QTableWidget using PyQT and would appreciate some guidance: My server gives me a string y[0]: 20080327, which I convert to a QDateTime object using: x=QDateTime.fromString(y[0],mmdd) Printing x.toString(dd-mm-) gives me what

py2exe socket.gaierror (10093)

2008-03-26 Thread Python Programming on Win32
Hi, I have encountered a problem which I can not figure out a solution to. Tried Googeling it, but to no help unfortunately. The problem is running smtplib in a py2exe compiled exe file. When it tries to establish a socket to the mail server it fails. Just wondering someone has encountered this

Re: last mouse movment or keyboard hit

2008-03-26 Thread Ron Eggler
Gabriel Genellina wrote: En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] escribió: I would like to get the time of the most recent human activity like a cursor movement or a key hit. Does anyone know how I can get this back to start some action after there has been no

ANN: python-ldap-2.3.2

2008-03-26 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

Re: subprocess.popen function with quotes

2008-03-26 Thread Jeffrey Froman
skunkwerk wrote: p = subprocess.Popen(['rename','-vn','s/(.*)\.htm$/ model.html/','*.htm'],stdout=subprocess.PIPE,stderr=subprocess.PIPE) print p.communicate()[0] i change to print p.communicate()[1] in case the output is blank the first time this is the output: *.htm renamed as

Re: _tkinter fails when installing Python 2.4.4

2008-03-26 Thread jgelfand
On Mar 26, 7:02 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: I think the actual problem is that the linking doesn't find the XftGlyphExtends. I can only guess, but it might be related to 64-bit-problems. Make sure you have the library that contains the XftGlyphExtends is available in the

Sr. Architect - NYC - Opportunity

2008-03-26 Thread Timothy B
Senior Developer Must be proficient in Python, expert preferred Must have one large scale public web project in their portfolio, preferably startup experience Must be able to develop with certain architectural considerations in mind at all times, such as: multilingual text, runtime efficiency in

Re: Beta testers needed for a high performance Python application server

2008-03-26 Thread John Nagle
Paul Rubin wrote: John Nagle [EMAIL PROTECTED] writes: Fast cgi is a good technology, but it's not well documented or well supported. For some reason, the Apache people don't like it. It used to be part of the Apache distribution, but that ended years ago. It seems to be coming back

Re: Tkinter menus from keyboard

2008-03-26 Thread MartinRinehart
Guilherme Polo wrote: Set the underline option to the index of the desired letter Elegant simplicity in the dropdowns. Thanks! Now, how about main menu underscores? -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter menus from keyboard

2008-03-26 Thread Eric Brunel
On Wed, 26 Mar 2008 13:45:29 +0100, Guilherme Polo [EMAIL PROTECTED] wrote: 2008/3/26, [EMAIL PROTECTED] [EMAIL PROTECTED]: Tkinter defaults to, for example, Alt+f = File (if File is your first menu name starting with f). I'd like to assign my own letters and have them underscored, per

Re: Running a python program as main...

2008-03-26 Thread Gabriel Genellina
En Wed, 26 Mar 2008 11:12:21 -0300, waltbrad [EMAIL PROTECTED] escribió: Stumbling through Mark Lutz's Programming Python 3rd, he gives an example of a program that will automatically configure environment settings and launch other programs. Then he gives an example of running this

Problem with write binary data to OLE field in Access

2008-03-26 Thread lialie
Hi~ I would like to save images in OLE field in Microsoft Access. It writes the binary data which read from an JPEG/BMP file. But seems I meet an encoding problem. The following code demos that. Any sugguestion? --- import

Some notes on a high-performance Python application.

2008-03-26 Thread John Nagle
I run SiteTruth (sitetruth.com), which rates web sites for legitimacy, based on what information it can find out about the business behind the web site. I'm going to describe here how the machinery behind this is organized, because I had to solve some problems in Python that I haven't seen

Re: py2exe socket.gaierror (10093)

2008-03-26 Thread Gabriel Genellina
En Wed, 26 Mar 2008 11:17:15 -0300, Python Programming on Win32 [EMAIL PROTECTED] escribió: The problem is running smtplib in a py2exe compiled exe file. When it tries to establish a socket to the mail server it fails. Just wondering someone has encountered this before, and if someone

Re: last mouse movment or keyboard hit

2008-03-26 Thread azrael
You can use wxPython. Take a look on the DemoFiles that you can download also from the site. I remember that there has been a demo of capturing mouse coordinates and also one example about capturing Which key has been pressed at which time. Just start the time, count the interactions of key

naive packaging question

2008-03-26 Thread Scott Sharkey
Hello all, I've read a number of the python books, and several online tutorials about modules and packaging, but not one addresses this issue, so I thought I'd ask here... I am building a library for use in an internal project. This library is the client side interface to a REST-ful service

Re: Running a python program as main...

2008-03-26 Thread Robert Lehmann
On Wed, 26 Mar 2008 13:05:55 -0300, Gabriel Genellina wrote: En Wed, 26 Mar 2008 11:12:21 -0300, waltbrad [EMAIL PROTECTED] escribió: Stumbling through Mark Lutz's Programming Python 3rd, he gives an example of a program that will automatically configure environment settings and launch

Re: last mouse movment or keyboard hit

2008-03-26 Thread Gabriel Genellina
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler [EMAIL PROTECTED] escribió: I would like to get the time of the most recent human activity like a cursor movement or a key hit. Does anyone know how I can get this back to start some action after there has been no activity for X

Re: Some notes on a high-performance Python application.

2008-03-26 Thread Heiko Wundram
Am Mittwoch, 26. März 2008 17:33:43 schrieb John Nagle: ... Using MySQL as a queueing engine across multiple servers is unusual, but it works well. It has the nice feature that the queue ordering can be anything you can write in a SELECT statement. So we put fair queueing in the rating

Re: Running a python program as main...

2008-03-26 Thread subeen
On Mar 26, 8:12 pm, waltbrad [EMAIL PROTECTED] wrote: Stumbling through Mark Lutz's Programming Python 3rd, he gives an example of a program that will automatically configure environment settings and launch other programs. Then he gives an example of running this program. On his command

Re: Some notes on a high-performance Python application.

2008-03-26 Thread Michael Ströder
Heiko Wundram wrote: Am Mittwoch, 26. März 2008 17:33:43 schrieb John Nagle: ... Using MySQL as a queueing engine across multiple servers is unusual, but it works well. It has the nice feature that the queue ordering can be anything you can write in a SELECT statement. So we put fair

Py2exe embed my modules to libary.zip

2008-03-26 Thread vedrandekovic
Hello, Does anybody have any idea how can I embed my modules to libary.zip and use it from my application.For example if user write this code in my TextEntry ( or something like that, textentry is created with wxpython ) : import d3dx # directpython module frame=d3dx.Frame(uMy frame) # create

Re: what does ^ do in python

2008-03-26 Thread David Anderson
HOw can we use express pointers as in C or python? On Tue, Mar 25, 2008 at 7:36 PM, Tim Chase [EMAIL PROTECTED] wrote: In most of the languages ^ is used for 'to the power of'. No, not in most languages. In most languages (C, C++, Java, C#, Python, Fortran, ...), ^ is the xor operator ;)

Re: Tkinter menus from keyboard

2008-03-26 Thread MartinRinehart
Eric Brunel wrote: BTW, this standard is not universal at all: e.g, there is no such convention on Macs. Thanks for the info. It's standard on Windows and Linux/KDE. GNOME, anyone? -- http://mail.python.org/mailman/listinfo/python-list

Re: naive packaging question

2008-03-26 Thread Carl Banks
On Mar 26, 12:33 pm, Scott Sharkey [EMAIL PROTECTED] wrote: Here's the directory structure that I've got so far: project dir top level directory setup.py company dir eventually, we'll have other modules __init__.py error.py

Re: Some notes on a high-performance Python application.

2008-03-26 Thread Heiko Wundram
Am Mittwoch, 26. März 2008 18:54:29 schrieb Michael Ströder: Heiko Wundram wrote: Am Mittwoch, 26. März 2008 17:33:43 schrieb John Nagle: ... Using MySQL as a queueing engine across multiple servers is unusual, but it works well. It has the nice feature that the queue ordering

Re: Py2exe embed my modules to libary.zip

2008-03-26 Thread Gabriel Genellina
En Wed, 26 Mar 2008 14:55:43 -0300, [EMAIL PROTECTED] escribió: Does anybody have any idea how can I embed my modules to libary.zip and use it from my application.For example if user write this code in my TextEntry ( or something like that, textentry is created with wxpython ) : import d3dx

Re: what does ^ do in python

2008-03-26 Thread Gabriel Genellina
En Wed, 26 Mar 2008 15:04:44 -0300, David Anderson [EMAIL PROTECTED] escribió: HOw can we use express pointers as in C or python? Traceback (most recent call last): File stdin, line 1, in module File parser.py, line 123, in parse_text tree = language.parse_text(text) File

Re: Py2exe embed my modules to libary.zip

2008-03-26 Thread Tzury Bar Yochay
and then when my application execute code how can I set path to d3dx module to library.zip/d3dx.py. I'm not sure is this properly set question. use the module zipimport http://docs.python.org/lib/module-zipimport.html -- http://mail.python.org/mailman/listinfo/python-list

Re: what does ^ do in python

2008-03-26 Thread Heiko Wundram
Am Mittwoch, 26. März 2008 19:04:44 schrieb David Anderson: HOw can we use express pointers as in C or python? There's no such thing as a pointer in Python, so you can't express them either. Was this what you were trying to ask? -- Heiko Wundram --

Re: what does ^ do in python

2008-03-26 Thread Michael Wieher
On Wed, Mar 26, 2008 at 1:36 PM, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 26 Mar 2008 15:04:44 -0300, David Anderson [EMAIL PROTECTED] escribió: HOw can we use express pointers as in C or python? File english.py, line 345, in parse_sentence raise ParserError, can't parse

Re: what does ^ do in python

2008-03-26 Thread Tim Chase
HOw can we use express pointers as in C or python? Traceback (most recent call last): File stdin, line 1, in module File parser.py, line 123, in parse_text tree = language.parse_text(text) File english.py, line 456, in parse_text tree = self.parse_sentence(sentence)

Re: Filtering a Python list to uniques

2008-03-26 Thread kellygreer1
On Mar 26, 5:45 am, hellt [EMAIL PROTECTED] wrote: On 26 ÍÁÒ, 02:30,kellygreer1[EMAIL PROTECTED] wrote: What is the best way to filter a Python list to its unique members? I tried some method using Set but got some unhashable error. lstone = [ 1, 2, 3, 3, 4, 5, 5, 6 ] # how do i reduce

Re: Beta testers needed for a high performance Python application server

2008-03-26 Thread Manlio Perillo
Il Tue, 25 Mar 2008 20:31:39 +, Minor Gordon ha scritto: Hello all, I'm looking for beta testers for a high performance, event-driven Python application server I've developed. About the server: the front end and other speed-critical parts of the server are written in portable,

Re: Beta testers needed for a high performance Python application server

2008-03-26 Thread Manlio Perillo
Il Wed, 26 Mar 2008 00:22:38 -0700, John Nagle ha scritto: Graham Dumpleton wrote: Yes that is a viable option, as still are existing fastcgi solutions for Apache, lighttpd and nginx. Fast cgi is a good technology, Well, not really so good:

Re: Py2exe embed my modules to libary.zip

2008-03-26 Thread Gabriel Genellina
En Wed, 26 Mar 2008 15:38:16 -0300, Tzury Bar Yochay [EMAIL PROTECTED] escribió: and then when my application execute code how can I set path to d3dx module to library.zip/d3dx.py. I'm not sure is this properly set question. use the module zipimport

Re: what does ^ do in python

2008-03-26 Thread David Anderson
Err even I cant understand what I wrote... The right question was:HOw can we use/express pointers python as in C or Pascal? But thx to Heiko, He got what I mean =) On Wed, Mar 26, 2008 at 3:46 PM, Tim Chase [EMAIL PROTECTED] wrote: HOw can we use express pointers as in C or python?

A question on decorators

2008-03-26 Thread Tim Henderson
Hello I am writing an application that has a mysql back end and I have this idea to simplify my life when accessing the database. The idea is to wrap the all the functions dealing with a particular row in a particular in a particular table inside a class. So if you have a table that looks like

Re: what does ^ do in python

2008-03-26 Thread David Anderson
ANd... By express I mean... Dereferencing... Habits from my native language where the verb express also means this On Wed, Mar 26, 2008 at 4:14 PM, David Anderson [EMAIL PROTECTED] wrote: Err even I cant understand what I wrote... The right question was:HOw can we use/express pointers python

Re: A question on decorators

2008-03-26 Thread Mike Driscoll
On Mar 26, 2:10 pm, Tim Henderson [EMAIL PROTECTED] wrote: Hello I am writing an application that has a mysql back end and I have this idea to simplify my life when accessing the database. The idea is to wrap the all the functions dealing with a particular row in a particular in a particular

distutils crashing: $MACOSX_DEPLOYMENT_TARGET mismatch

2008-03-26 Thread Justin S Bayer
Hi group, When starting a distutils script (which I mostly consider as a black box) distutils crashes with the following traceback: Traceback (most recent call last): File pyrexcompile.py, line 50, in module cmdclass = {'build_ext': build_ext}) File /sw/lib/python2.5/distutils/core.py,

Daylight savings time problem

2008-03-26 Thread Fabio Durieux Lopes
Hi, I'm trying to execute some operations based on a file's time. The file's time is actually the file's name (e.g. FILE1_20080326170558). So I do this: fileTimeInSecs = time.mktime(time.strptime(timeString, %Y%m%d%H%M)) timeString contains the date part of the file's name.

Re: Filtering a Python list to uniques

2008-03-26 Thread Jerry Hill
On Wed, Mar 26, 2008 at 2:50 PM, kellygreer1 [EMAIL PROTECTED] wrote: How come the Set() thing seems to work for some people and I get the 'unhashable' error? How do you test for 'membership' on a dictionary? # where tmp is the non-unique list # dct is a dictionary where each unique

Re: A question on decorators

2008-03-26 Thread Tim Henderson
Mike Driscoll said: Besides, you should use sqlite rather than pickle databases. It's especially easy since sqlite is included with Python 2.5. I am using mysql, and sqlite is not appropriate for my situation since some of the databases and tables I access are being accessed by other

How to convert latex-based docs written with Python 2.5 to 2.6 framework

2008-03-26 Thread Michael Ströder
HI! I had a look on how Doc/ is organized with Python 2.6. There are files with suffix .rst. Hmm... I'm maintaing existing docs for python-ldap which I might have to convert to the new concept in the long run. What's the recommended procedure for doing so? Any pointer? Ciao, Michael. --

Re: Running a python program as main...

2008-03-26 Thread Rick Dooling
On Mar 26, 9:12 am, waltbrad [EMAIL PROTECTED] wrote: On his command line he types: C:\...\PP3ELauncher.py and this begins the program. Doesn't work for me. I have to type: C:\...\PP3Epython Launcher.py Is this a typo on his part or has he configured his settings in such a way that the

Re: what does ^ do in python

2008-03-26 Thread Dan Stromberg
On Wed, 26 Mar 2008 19:45:34 +0100, Heiko Wundram wrote: Am Mittwoch, 26. März 2008 19:04:44 schrieb David Anderson: HOw can we use express pointers as in C or python? There's no such thing as a pointer in Python, so you can't express them either. Was this what you were trying to ask?

Re: Daylight savings time problem

2008-03-26 Thread D'Arcy J.M. Cain
On Wed, 26 Mar 2008 19:37:16 - Fabio Durieux Lopes [EMAIL PROTECTED] wrote: I'm trying to execute some operations based on a file's time. The file's time is actually the file's name (e.g. FILE1_20080326170558). So I do this: fileTimeInSecs = time.mktime(time.strptime(timeString,

PyODBC Stored proc calling

2008-03-26 Thread Michael Owings
This is probably pretty late to be replying but I had the same problem. As it turns out, you just need to be sure you use the correct syntax to call the sproc: db_cur.execute( {call test_bed(?)}, ('test data string') ) -- Teleoperate a roving mobile robot from the web:

first interactive app

2008-03-26 Thread Tim Arnold
hi, I want to write a tiny interactive app for the following situation: I have books of many chapters that must be split into volumes before going to the printer. A volume can have up to 600 pages. We obviously break the book into volumes only at chapter breaks. Since some chapters make a

Re: A question on decorators

2008-03-26 Thread Diez B. Roggisch
Tim Henderson schrieb: Hello I am writing an application that has a mysql back end and I have this idea to simplify my life when accessing the database. The idea is to wrap the all the functions dealing with a particular row in a particular in a particular table inside a class. So if you

Re: Daylight savings time problem

2008-03-26 Thread Salsa
I'm sorry, but could you be more specific? How exactly should I use UTC? -- Fabio Durieux Lopes - Salsa - Original Message From: D'Arcy J.M. Cain [EMAIL PROTECTED] To: Fabio Durieux Lopes [EMAIL PROTECTED] Cc: python-list@python.org Sent: Wednesday, March 26, 2008 4:49:57 PM

Python / C++ embed halfway working - question about constructors

2008-03-26 Thread jpw
I am running my C++ / Python App on a MacBook Pro with 2.5 installed I have had some success in that I can load a module, get the class, get the reference, but when the python class calls another python class I don't ever seem to get the object back from the constructor. I am doing the

RE: Do any of you recommend Python as a first programming language?

2008-03-26 Thread Delaney, Timothy (Tim)
Steven D'Aprano wrote: On Sat, 22 Mar 2008 21:11:51 -0700, sturlamolden wrote: Yes. And because Python is a scripting language Python is a programming language. It can be used for scripting, but that's not all it can do. Describing it as a scripting language is like describing a

Re: Daylight savings time problem

2008-03-26 Thread Grant Edwards
On 2008-03-26, Salsa [EMAIL PROTECTED] wrote: I'm sorry, but could you be more specific? How exactly should I use UTC? In my experience, using local time for timestamps is always a big mistake, so I presume he meant don't use local time in the file names -- put the UTC date/time in the

Not understanding lamdas and scoping

2008-03-26 Thread Joshua Kugler
I am trying to use lamdba to generate some functions, and it is not working the way I'd expect. The code is below, followed by the results I'm getting. More comments below that. patterns = ( ('[sxz]$', '$','es'), ('[^aeioudgkprt]h$', '$', 'es'), ('[^aeiou]y$', 'y$', 'ies'),

  1   2   3   >