GNUmed release 0.2.4.2

2007-02-09 Thread Sebastian Hilbert
GNUmed version 0.2.4.2 has been polished and released ! For the impatient: Go grab your copy at wiki.gnumed.de. Next to bug fixes and code cleanup this release has a nice selection of new features as well ... We need testers. Let us know if it works for you. The GNUmed team worked hard to

Shed Skin Optimizing Python-to-C++ Compiler 0.0.19

2007-02-09 Thread Mark Dufour
Hi all, I have just released version 0.0.19 of Shed Skin, an optimizing Python-to-C++ compiler. It allows for translation of pure (unmodified), implicitly statically typed Python programs into optimized C++, and hence, highly optimized machine language. This latest release adds basic support for

Re: UNIX shell in Python?

2007-02-09 Thread Gary Herron
Deniz Dogan wrote: Hello. I was thinking about writing a UNIX shell program using Python. Has anyone got any experience on this? Is it even possible? I have programmed a simple shell in C before and I came to think about how perfect Python would be for parsing user input. Regards,

Re: Referencing vars, methods and classes by name

2007-02-09 Thread Sagari
For your other examples there are gross hacks using the dictionaries that represent the local and global symbol tables, so we translate your examples fairly directly, but stylistically we'd usually stay away from that kind of thing. Thanks to everyone for all the comments. I am migrating from

Re: Latest approach to controlling non-printable / multi-byte characters

2007-02-09 Thread Peter Otten
metaperl wrote: There is no end to the number of frantic pleas for help with characters in the realm beyond ASCII. And the answer is first decode to unicode, then modify in nine out of ten cases. However, in searching thru them, I do not see a workable approach to changing them into other

Re: Thanks for the help

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 04:06, Reid [EMAIL PROTECTED] wrote: Hello All Thanks for taking the time to answer my question. I do not need 3d stuff. Just a couple of buttons and menu's. That's not 3D, that's GUI (Graphical User Interface). 3D usually refers to 3D graphics... The reason I am looking at python

Re: Another Dictionary Question

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 04:02, Gabriel Genellina [EMAIL PROTECTED] wrote: En Thu, 08 Feb 2007 23:32:50 -0300, Sick Monkey [EMAIL PROTECTED] escribió: db = {'[EMAIL PROTECTED]':'none', '[EMAIL PROTECTED]':'none', '[EMAIL PROTECTED]':'none', '[EMAIL PROTECTED]':'none',} And I want to pull out all of

Re: Thanks for the help

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 07:43, azrael [EMAIL PROTECTED] wrote: On Feb 9, 4:06 am, Reid [EMAIL PROTECTED] wrote: Hello All Thanks for taking the time to answer my question. I do not need 3d stuff. Just a couple of buttons and menu's. The reason I am looking at python is it is free to download. I

Problem - Win32 Programming

2007-02-09 Thread Finger . Octopus
Hi .. I'm a newbie to python win32 programming. I was just reading Python Programming on Win32 and I was trying to run this program: # SimpleCOMServer.py - A sample COM server - almost as small as they come! # # We expose a single method in a Python COM object. class PythonUtilities:

Re: from __future__ import absolute_import ?

2007-02-09 Thread Peter Otten
Ron Adam wrote: Peter Otten wrote: Ron Adam wrote: work | |- foo.py# print foo not in bar | `- bar | |- __init__.py | |- foo.py# print foo in bar | |- absolute.py # from __futer__ import absolute_import |

Re: Calling J from Python

2007-02-09 Thread Ant
On Feb 6, 12:21 am, greg [EMAIL PROTECTED] wrote: ... Yes, but with Python you wouldn't have to spend a couple of weeks sitting and thinking before starting to type that line... This is a good point often overlooked. You often get these threads on c.l.python about How can I do this in one

unique elements from list of lists

2007-02-09 Thread Tekkaman
I have a list of lists and I want to define an iterator (let's call that uniter) over all unique elements, in any order. For example, calling: sorted(uniter([['a', 'b', 'd'], ['b', 'c'], ['a', 'c', 'd']])) must return ['a', 'b', 'c', 'd']. I tried the following implementations: from itertools

A little more advanced for loop

2007-02-09 Thread Horta
Hi folks, Suppose I have to loop over 3 lists being the same size at the same time and order. How can I do that without using the range() function or whatever indexing? Example using range: a = ['aaa', ''] b = ['bb', ''] c = ['c', ''] for i in range(len(a)): # using a[i],

Re: A little more advanced for loop

2007-02-09 Thread Diez B. Roggisch
Horta wrote: Hi folks, Suppose I have to loop over 3 lists being the same size at the same time and order. How can I do that without using the range() function or whatever indexing? Example using range: a = ['aaa', ''] b = ['bb', ''] c = ['c', ''] for i in

Re: Thanks for the help

2007-02-09 Thread Toby A Inkster
[EMAIL PROTECTED] wrote: Reid wrote: I do not need 3d stuff. Just a couple of buttons and menu's. That's not 3D, that's GUI (Graphical User Interface). 3D usually refers to 3D graphics... Hence the original poster's clever use of the word not ;-) -- Toby A Inkster BSc (Hons) ARCS Contact

Re: A little more advanced for loop

2007-02-09 Thread Stephan Diehl
Horta wrote: Hi folks, Suppose I have to loop over 3 lists being the same size at the same time and order. How can I do that without using the range() function or whatever indexing? Example using range: a = ['aaa', ''] b = ['bb', ''] c = ['c', ''] for i in

python shelve on win vs unix

2007-02-09 Thread Tor Erik Soenvisen
Hi, Have a problem using shelve on windows and unix. While my windows box supports dbhash, my unix box supports gdbm, and neither supports what the other does. The problem arises when I try to use the shelve generated in unix on my windows box. Hoepfully there are alternatives to installing

os.popen and broken pipes

2007-02-09 Thread Philipp Pagel
Hi Pythoneers, I need to process a large number of files which have been packed by the UNIX compress tool (*.Z files). As I am not aware of a compress equivalent of the gzip, zipfile or bzip2 modules, I thought I'd use the uncompress or zcat commands directly to deal with the files: for

Re: UNIX shell in Python?

2007-02-09 Thread Bart Ogryczak
On Feb 9, 8:49 am, Deniz Dogan [EMAIL PROTECTED] wrote: Hello. I was thinking about writing a UNIX shell program using Python. Has anyone got any experience on this? Is it even possible? Use the Google, Luke. http://sourceforge.net/projects/pyshell/ --

Re: A little more advanced for loop

2007-02-09 Thread Horta
On Feb 9, 9:00 am, Stephan Diehl [EMAIL PROTECTED] wrote: Horta wrote: Hi folks, Suppose I have to loop over 3 lists being the same size at the same time and order. How can I do that without using the range() function or whatever indexing? Example using range: a = ['aaa',

Re: unique elements from list of lists

2007-02-09 Thread Peter Otten
Tekkaman wrote: I have a list of lists and I want to define an iterator (let's call that uniter) over all unique elements, in any order. For example, calling: sorted(uniter([['a', 'b', 'd'], ['b', 'c'], ['a', 'c', 'd']])) must return ['a', 'b', 'c', 'd']. I tried the following

Re: unique elements from list of lists

2007-02-09 Thread azrael
try something else. im posting the code from a kiosk which has no python, sooo. no code. only explanation if my memory works well there is a function in python that takes a multidimensional list and returns its values as a one-dimension list. def main(): list =unknownFunction([['a', 'b',

Re: unique elements from list of lists

2007-02-09 Thread azrael
tra using the firs sublist (list[1]) as cell.then take zhe second sublist and take a value from it at once and if the value from list[2] doesnt exist in list[1] then insert it into list[1] at the correct place. Something like the insertionsort. --

resolve environment variables in string - regular expression

2007-02-09 Thread Kai Rosenthal
Hello, how can I resolve envionment variables in a string. e.g. strVar = /myVar resolve in str1 = /mytest02/$MYVAR/mytest02 -- /mytest02//myVar/mytest02 (unix) str2 =$MYVAR/mytest03 -- /myVar/mytest03 (unix) str3 =%MYVAR%/mytest03 -- /myVar/mytest03 (windows) I would not set the

Re: Problem - Win32 Programming

2007-02-09 Thread Finger . Octopus
What shoud I do to fix it? -- http://mail.python.org/mailman/listinfo/python-list

Re: os.popen and broken pipes

2007-02-09 Thread Chris
It could easily be the 2gig file size limitation, how large are the extracts? -- http://mail.python.org/mailman/listinfo/python-list

Re: os.popen and broken pipes

2007-02-09 Thread Antoon Pardon
On 2007-02-09, Philipp Pagel [EMAIL PROTECTED] wrote: Hi Pythoneers, I need to process a large number of files which have been packed by the UNIX compress tool (*.Z files). As I am not aware of a compress equivalent of the gzip, zipfile or bzip2 modules, I thought I'd use the

Re: TimedRotatingFileHandler() isn't rotating at midnight?

2007-02-09 Thread Vinay Sajip
On 1 Feb, 05:32, Chris Shenton [EMAIL PROTECTED] wrote: I set this up 3 days ago and have not seen any of the logs I've created this way being rotated. I expected them to rotate every midnight. I'm calling the code that uses this logger many times, each a separate run, if that matters. It

Re: Problem - Win32 Programming

2007-02-09 Thread Roger Upole
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi .. I'm a newbie to python win32 programming. I was just reading Python Programming on Win32 and I was trying to run this program: # SimpleCOMServer.py - A sample COM server - almost as small as they come! # # We expose a single

Re: os.popen and broken pipes

2007-02-09 Thread Philipp Pagel
Antoon Pardon [EMAIL PROTECTED] wrote: On 2007-02-09, Philipp Pagel [EMAIL PROTECTED] wrote: for filename in file_list: file = os.popen('uncompress -c '+filename, 'r') do_something(file) file.close() This works fine for some files but results in 'write error onstdout:

Re: os.popen and broken pipes

2007-02-09 Thread Philipp Pagel
Chris [EMAIL PROTECTED] wrote: It could easily be the 2gig file size limitation, how large are the extracts? The files are much smaller than that, so that's not the issue. Anyway, Antoon pointed me in the right direction. Thanks for the help Philipp -- Dr. Philipp Pagel

Re: resolve environment variables in string - regular expression

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 12:30, Kai Rosenthal [EMAIL PROTECTED] wrote: Hello, how can I resolve envionment variables in a string. e.g. strVar = /myVar resolve in nothing. This raises a SyntaxError. Python is *not* a shell script language. str1 = /mytest02/$MYVAR/mytest02 --

Re: Newbie Question

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 00:16, [EMAIL PROTECTED] wrote: On Feb 8, 2:17 pm, Grant Edwards [EMAIL PROTECTED] wrote: On 2007-02-08, Reid [EMAIL PROTECTED] wrote: I am just starting to play with programing again as a hobby. I have heard good things about python. I have not really looked into the

Re: Is Python for me?

2007-02-09 Thread [EMAIL PROTECTED]
On Feb 9, 5:08 am, jiddu [EMAIL PROTECTED] wrote: I'm planning to create a poker calculator, I learned some basic in highschool years ago and I was told for beginners Python is a good language to start. Be sure to check out the Python411 podcast http://awaretek.com/python/index.html Take

Re: Newbie Question

2007-02-09 Thread Stef Mientki
will explain the rest Delphi is a (dying) proprietary, MS-Windows-only[1] software relying on a low-level language. Well it may be dying, but for the moment it beats Python with a factor of 10, when it comes to user (the majority of PC users) friendly GUI ;-) cheers Stef Mientki --

Re: Object type check

2007-02-09 Thread Steven D'Aprano
On Thu, 08 Feb 2007 03:00:39 -0800, king kikapu wrote: def modify(list_of_x): for x in list_of_x: try: x.change_in_place # don't call the method, just check it exists XX...what exactly is going on here ? I mean, what is actually happens if you omit the

Re: Strings in Python

2007-02-09 Thread Johny
Thanks ALL for help and ideas L -- http://mail.python.org/mailman/listinfo/python-list

Re: UNIX shell in Python?

2007-02-09 Thread Deniz Dogan
Bart Ogryczak wrote: On Feb 9, 8:49 am, Deniz Dogan [EMAIL PROTECTED] wrote: Hello. I was thinking about writing a UNIX shell program using Python. Has anyone got any experience on this? Is it even possible? Use the Google, Luke. http://sourceforge.net/projects/pyshell/ Have

pycallgraph 0.1.0

2007-02-09 Thread Gerald Kaszuba
Hi I've just released the first version of Python Call Graph. I haven't tested it too much so don't expect it not to crash :) An example of its output is: http://pycallgraph.slowchop.com/files/examples/mongballs-client.png It's easy to use... you just need Graphviz installed and in your path

pygame and python 2.5

2007-02-09 Thread siggi
@Ben Sizer Hi Ben, in January I received your message re Pygame and Python 2.5: pygame and python 2.5 Ben Sizer kylotan at gmail.com Fri Jan 12 11:01:00 CET 2007 siggi wrote: when I rtry to install pygame

Re: unique elements from list of lists

2007-02-09 Thread bearophileHUGS
Tekkaman: If the sublists contain hashable elements you can use this: def uniter(lists): merge = set() for sub in lists: merge = merge.union(sub) for el in merge: yield el data = [['a', 'b', 'd'], ['b', 'c'], ['a', 'c', 'd']] print list(uniter(data)) But often this

Re: excel find last column

2007-02-09 Thread Lance Hoffmeyer
I ran makepy.py and loaded Microsoft Excel Object Library 11.0 I have imported: import win32com.client from win32com.client import constants import re import codecs,win32com.client import time import datetime import win32com.client.dynamic using this expression lastcol = sh.UsedRange.Find(*,

Glob returning an empty list when passed a variable

2007-02-09 Thread Neil Webster
Hi, I was wondering whether anybody could help me out. I have a program, for part of it I am trying to pass a variable to a glob function, this returns an empty list. The strange thing is when I hard code in the variable the glob section works. Does anybody have any ideas as why it is not

Re: TimedRotatingFileHandler() isn't rotating at midnight?

2007-02-09 Thread Chris Shenton
Vinay Sajip [EMAIL PROTECTED] writes: It might. I assume you have a long-running process which runs past midnight - that's the scenario that TimedRotatingFileHandler is meant for. Can you post a complete minimal example which shows the problem? Rotating should happen when the logging process

Re: TimedRotatingFileHandler() isn't rotating at midnight?

2007-02-09 Thread skip
Rotating should happen when the logging process creates the handler before midnight and makes a logging call destined for that handler after midnight. Chris Ah, then maybe I'm expecting the wrong thing. The python code is Chris invoked from cron every 10 minutes or so,

Re: Sending CTRL-C event to console application

2007-02-09 Thread Daniel Clark
On Feb 8, 9:12 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Thu, 08 Feb 2007 15:54:05 -0300, Daniel Clark [EMAIL PROTECTED] escribió: I have a Windows command line based application that only shuts down cleanly if it sees CTRL-C on the console. I need to automate the running of this

Re: Glob returning an empty list when passed a variable

2007-02-09 Thread Philipp Pagel
Neil Webster [EMAIL PROTECTED] wrote: area_name_string = '*% s*' % (Area_name) os.chdir(Input) filename = glob.glob(area_name_string) Too many quotation marks. Area_name='Foo' '*% s*' % (Area_name) '*Foo*' Unless there are files with funny names containing '' you will not get a match. cu

Re: Glob returning an empty list when passed a variable

2007-02-09 Thread Steve Holden
Neil Webster wrote: Hi, I was wondering whether anybody could help me out. I have a program, for part of it I am trying to pass a variable to a glob function, this returns an empty list. The strange thing is when I hard code in the variable the glob section works. Does anybody have

Re: python shelve on win vs unix

2007-02-09 Thread Istvan Albert
On Feb 9, 6:06 am, Tor Erik Soenvisen [EMAIL PROTECTED] wrote: Any suggestions for a quick and dirty solution (such as alternatives to shelve for persistent storage) to this problem would be appreciated. the easiest might be to just pickle your data into files. You could also use Durus

Re: Glob returning an empty list when passed a variable

2007-02-09 Thread Neil Webster
On 9 Feb, 14:15, Steve Holden [EMAIL PROTECTED] wrote: Neil Webster wrote: Hi, I was wondering whether anybody could help me out. I have a program, for part of it I am trying to pass a variable to a glob function, this returns an empty list. The strange thing is when I hard code in

Re: pycallgraph 0.1.0

2007-02-09 Thread Stef Mientki
Gerald Kaszuba wrote: Hi I've just released the first version of Python Call Graph. I haven't tested it too much so don't expect it not to crash :) An example of its output is: http://pycallgraph.slowchop.com/files/examples/mongballs-client.png It's easy to use... you just need

Re: excel find last column

2007-02-09 Thread Tim Golden
Lance Hoffmeyer wrote: I ran makepy.py and loaded Microsoft Excel Object Library 11.0 I have imported: import win32com.client from win32com.client import constants import re import codecs,win32com.client import time import datetime import win32com.client.dynamic using this

Re: doctests for interactive functions

2007-02-09 Thread Neil Cerutti
On 2007-02-08, Brian van den Broek [EMAIL PROTECTED] wrote: Can I run the rough structure of my code past you to see if it is in the vicinity of what you mean? (I have removed some details for sake of a short(er :-)) post.) Yes, this is a good way to think about it. Separate input from

Re: Is Python for me?

2007-02-09 Thread Neil Cerutti
On 2007-02-09, jiddu [EMAIL PROTECTED] wrote: Hi, I'm planning to create a poker calculator, I learned some basic in highschool years ago and I was told for beginners Python is a good language to start. Python *is* a good language to start. What I wanted to do is to first write a program

Re: unique elements from list of lists

2007-02-09 Thread Tekkaman
Thanks everybody! Azrael: your suggestions involve python-level membership testing and dummy list construction just like my uniter3 example, so I'm afraid they would not go any faster. There's no built-in sequence flattening function that I know of btw. bearophile: your implementation is very

Re: multithreading concept

2007-02-09 Thread S.Mohideen
I am sorry if I sound foolish. Suppose I split my Net application code using parallel python into several processes based upon the number of CPU available. That means a single socket descriptor is distributed across all processes. Is parallelity can be acheived using the processes send/recv on

Re: pycallgraph 0.1.0

2007-02-09 Thread Gerald Kaszuba
On 2/10/07, Stef Mientki [EMAIL PROTECTED] wrote: ... but isn't __main__. non-information ? Good point -- I'll consider removing it in the next version. Gerald -- http://mail.python.org/mailman/listinfo/python-list

Database Programming with Python

2007-02-09 Thread Finger . Octopus
Hi I wanted to connect Python to Ms-Access database using ADO or ODBC. I have Python 2.5 and on mxODBC site, it has no higher version build than 2.4. Moreoever, mxODBC is required for ADODB. Can anyone guide me on this what should I do to make it work on Python 2.5? I have python 2.5 running on

Re: pyExcelerator - Protecting Cells

2007-02-09 Thread John Machin
On 9/02/2007 6:36 PM, Chris wrote: I'm sitting with a bit of an issue with pyExcelerator and creating an Excel file with certain cells protected while the rest of the spreadsheet is password protected. The Protection class under Formatting has 2 variables for cell_locked and formula_hidden,

NYC Python User Group Meeting

2007-02-09 Thread John Clark
Greetings! The next New York City Python Users Group meeting is this Tuesday, Feb. 13th, 6:30pm at at the Millennium Partners office at 666 Fifth Avenue (53rd St. and 5th Ave.) on the 8th Floor. We welcome all those in the NYC area who are interested in Python to attend. However, we need a list

Re: multithreading concept

2007-02-09 Thread Paul Rubin
S.Mohideen [EMAIL PROTECTED] writes: Suppose I split my Net application code using parallel python into several processes based upon the number of CPU available. That means a single socket descriptor is distributed across all processes. Is parallelity can be acheived using the processes

MOSSAD AND 911 - Zack was the anthrax mailer ?

2007-02-09 Thread stj911
WHAT DID ISRAEL KNOW IN ADVANCE OF THE SEPTEMBER 11 ATTACKS? * Those Celebrating Movers and Art Student Spies * Who were the Israelis living next to Mohammed Atta? * What was in that Moving Van on the New Jersey shore? * How did two hijackers end up on the Watch List weeks before 9/11? At

Re: Calling J from Python

2007-02-09 Thread Alexander Schmolck
[restoring context] Ant [EMAIL PROTECTED] writes: On Feb 6, 12:21 am, greg [EMAIL PROTECTED] wrote: Alexander Schmolck wrote: For example I once wrote this (slow) code to display part of a mandelbrot fractal: load'viewmat' viewmat+/2:|((j.~/~(%~i:)99)+@:*:)^:(i.32)0

Re: *** Short Course: THE SECRET HISTORY OF THE UNITED STATES OF AMERICA ***

2007-02-09 Thread thermate2
Excellent Course Professor !!! On Jan 9, 7:28 pm, [EMAIL PROTECTED] wrote: Here is a short course, enjoyment and fun: Audio speech by Benjamin Freedman in his own voice you can hear here : http://video.google.com/videoplay?docid=3552214685532803163q Free Science History Ebook: THE

Question about optparse/OptionParser callback.

2007-02-09 Thread Steven W. Orr
I'm new to python and I have a need to do this. The Cookbook almost takes me there with: def check_order(option, opt_str, value, parser): if parser.values.b: raise OptionValueError(can't use %s after -b % opt_str) setattr(parser.values, option.dest, 1) but warns that the it

Can't import Stackless in Pythonwin

2007-02-09 Thread archaegeo
I am getting started in Python, and I have looked on both the stackless page and python.org and cannot find the answer to what I think is a simple problem. If I start the python command line or idle, i can import stackless If I start pythonwin I get the following error ...No Module named

Re: Database Programming with Python

2007-02-09 Thread fumanchu
On Feb 9, 7:28 am, [EMAIL PROTECTED] wrote: I wanted to connect Python to Ms-Access database using ADO or ODBC. I have Python 2.5 and on mxODBC site, it has no higher version build than 2.4. Moreoever, mxODBC is required for ADODB. Can anyone guide me on this what should I do to make it work

Re: pygame and python 2.5

2007-02-09 Thread Ben Sizer
On Feb 9, 1:48 pm, siggi [EMAIL PROTECTED] wrote: @Ben Sizer Lucky I spotted this... As a Python (and programming ) newbie allow me a - certainly naive - question: What is this time consuming part of recompiling an extension, such as Pygame, from source code to Windows? Is it a matter of

Re: pygame and python 2.5

2007-02-09 Thread skip
Ben Python extensions written in C require recompilation for each new Ben version of Python, due to Python limitations. Can you propose a means to eliminate this limitation? Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: pygame and python 2.5

2007-02-09 Thread John Nagle
Ben Sizer wrote: The problem is something like this: - Python extensions written in C require recompilation for each new version of Python, due to Python limitations. - Recompiling such an extension requires you to have a C compiler set up on your local machine. - Windows doesn't come

Re: Best Free and Open Source Python IDE

2007-02-09 Thread Bastos
On Feb 8, 10:03 am, Srikanth [EMAIL PROTECTED] wrote: Yes, All I need is a good IDE, I can't find something like Eclipse (JDT). Eclipse has a Python IDE plug-in but it's not that great. Please recommend. Thanks, Srikanth Gedit and some plugins, definitely. --

Re: Best Free and Open Source Python IDE

2007-02-09 Thread km
check out SPE (StanisPpython Editor) KM On 9 Feb 2007 10:43:00 -0800, Bastos [EMAIL PROTECTED] wrote: On Feb 8, 10:03 am, Srikanth [EMAIL PROTECTED] wrote: Yes, All I need is a good IDE, I can't find something like Eclipse (JDT). Eclipse has a Python IDE plug-in but it's not that great.

ANN: Wing IDE 2.1.4 Released

2007-02-09 Thread Wingware Announce
Hi, I'm happy to announce version 2.1.4 of Wing IDE, an integrated development environment for the Python programming language. This is a bug fix release that among other things fixes handling of UTF-8 byte order marks, improves auto-completion for PyQt 4, reports exceptions correctly in

Re: Best Free and Open Source Python IDE

2007-02-09 Thread Szabolcs Nagy
Srikanth wrote: Yes, All I need is a good IDE, I can't find something like Eclipse (JDT). Eclipse has a Python IDE plug-in but it's not that great. Please recommend. Thanks, Srikanth try pida http://pida.co.uk/index.php/Main_Page -- http://mail.python.org/mailman/listinfo/python-list

Re: Database Programming with Python

2007-02-09 Thread Finger . Octopus
You could use Dejavu 1.5, which has its own wrapper [1] for ADO (both MS Access and SQL Server/MSDE). No ODBC necessary or desired. If you want an ADO wrapper without the full Dejavu ORM, it's possible (but not heavily documented) to use dejavu's geniusql layer on its own. That would give

Re: Can't import Stackless in Pythonwin

2007-02-09 Thread Gabriel Genellina
En Fri, 09 Feb 2007 13:50:56 -0300, [EMAIL PROTECTED] escribió: I am getting started in Python, and I have looked on both the stackless page and python.org and cannot find the answer to what I think is a simple problem. If I start the python command line or idle, i can import stackless If

Re: from __future__ import absolute_import ?

2007-02-09 Thread Ron Adam
Peter Otten wrote: Ron Adam wrote: Peter Otten wrote: Ron Adam wrote: work | |- foo.py# print foo not in bar | `- bar | |- __init__.py | |- foo.py# print foo in bar | |- absolute.py # from __futer__ import

Thanks to all

2007-02-09 Thread jiddu
Thanks for all the input guys, I know it is difficult, but the calculators and statistic sites/books are missing some things which I need for my play so I guess I have no choice but to study up and work. When I was learning C++ I wrote some code to calculate simple things like probability of 1 or

Re: pygame and python 2.5

2007-02-09 Thread Mike C. Fletcher
[EMAIL PROTECTED] wrote: Ben Python extensions written in C require recompilation for each new Ben version of Python, due to Python limitations. Can you propose a means to eliminate this limitation? Sure, write your wrapper-style extensions in ctypes :) . For example,

Re: Referencing vars, methods and classes by name

2007-02-09 Thread Terry Reedy
Sagari [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Thanks to everyone for all the comments. I am migrating from PHP to | Python and I am looking for the means to port a controller code that | would, roughly speaking, call a certain method of a certain class | (both class and

Re: Best Free and Open Source Python IDE

2007-02-09 Thread Stef Mientki
Szabolcs Nagy wrote: Srikanth wrote: Yes, All I need is a good IDE, I can't find something like Eclipse (JDT). Eclipse has a Python IDE plug-in but it's not that great. Please recommend. Thanks, Srikanth try pida http://pida.co.uk/index.php/Main_Page nice idea to re-use components

Re: Thanks to all

2007-02-09 Thread Grant Edwards
On 2007-02-09, jiddu [EMAIL PROTECTED] wrote: Thanks for all the input guys, I know it is difficult, but the calculators and statistic sites/books are missing some things which I need for my play so I guess I have no choice but to study up and work. You're most welcome. Though I really have

Re: pygame and python 2.5

2007-02-09 Thread skip
Ben Python extensions written in C require recompilation for each new Ben version of Python, due to Python limitations. Can you propose a means to eliminate this limitation? Mike Sure, write your wrapper-style extensions in ctypes :). I was think more along the lines of how

Re: python linux distro

2007-02-09 Thread [EMAIL PROTECTED]
Try this. It's a pre-build VMware image. Torrent hasn't worked for me. I tracked down a physical copy. http://www.vmware.com/vmtn/appliances/directory/289 -- http://mail.python.org/mailman/listinfo/python-list

Re: pygame and python 2.5

2007-02-09 Thread Ben Sizer
On Feb 9, 5:53 pm, [EMAIL PROTECTED] wrote: Ben Python extensions written in C require recompilation for each new Ben version of Python, due to Python limitations. Can you propose a means to eliminate this limitation? By putting an intermediate layer between the extensions and the

Re: ANN: Wing IDE 2.1.4 Released

2007-02-09 Thread Damjan
This is a bug fix release that among other things fixes handling of UTF-8 byte order marks, What are UTF-8 byte order marks ?!? There's only one order in the UTF-8 bytes! -- damjan -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Wing IDE 2.1.4 Released

2007-02-09 Thread Robert Kern
Damjan wrote: This is a bug fix release that among other things fixes handling of UTF-8 byte order marks, What are UTF-8 byte order marks ?!? There's only one order in the UTF-8 bytes! It's a misnomer, but one that persists. http://unicode.org/unicode/faq/utf_bom.html#29 -- Robert

Re: os.popen and broken pipes

2007-02-09 Thread Donn Cave
In article [EMAIL PROTECTED], Philipp Pagel [EMAIL PROTECTED] wrote: Antoon Pardon [EMAIL PROTECTED] wrote: On 2007-02-09, Philipp Pagel [EMAIL PROTECTED] wrote: for filename in file_list: file = os.popen('uncompress -c '+filename, 'r') do_something(file) file.close()

[pywin32] - Excel COM problem

2007-02-09 Thread Andrea Gavana
Hi All, I have a very simple python script that tries to put a rectangular shape in a worksheet and then add some text inside that shape. The main problem, is that as usual Excel doesn't like input strings longer than 200 and something characters. So, by just recording a macro in Excel, I

Re: Sending CTRL-C event to console application

2007-02-09 Thread Daniel Clark
On Feb 9, 9:12 am, Daniel Clark [EMAIL PROTECTED] wrote: I'm going to try taking a different approach by using a GUI Automation tool like WATSUP [1] or pywinauto[2] next. This works: AutoIT [1] code (compiled to an executable): Run(@ComSpec ' /k ' $CmdLineRaw ) This was necessary because

interacting with shell - another newbie question

2007-02-09 Thread James
Hello, I work in this annoying company where I have to autheticate myself to the company firewall every 30-50 minutes in order to access the internet. (I think it's a checkpoint fw). I have to run telnet what.ever.ip.address 259 then it prompts me with userid, then password, then I have to

Re: pygame and python 2.5

2007-02-09 Thread skip
Ben If someone could explain the limitation in detail, I expect ways Ben could be found around it. After all, I don't know of any other Ben systems that require you to recompile all the extensions when you Ben upgrade the application. Python used to work that way. You'd then

Retry:Question about optparse/OptionParser callback.

2007-02-09 Thread Steven W. Orr
I decided I could be more articulate. I hope this helps. I'm writing a program that needs to process options. Due to the nature of the program with its large number of commandline options, I would like to write a callback to be set inside add_option. Something like this: parser.add_option(-b,

Django, one more newbie question

2007-02-09 Thread Boris Ozegovic
Umm, can somebody tell me which language is this one: {% if latest_poll_list %} ul {% for poll in latest_poll_list %} li{{ poll.question }}/li {% endfor %} /ul {% else %} pNo polls are available./p {% endif %} Whole tutorial is on this page:

Re: Django, one more newbie question

2007-02-09 Thread Robert Kern
Boris Ozegovic wrote: Umm, can somebody tell me which language is this one: {% if latest_poll_list %} ul {% for poll in latest_poll_list %} li{{ poll.question }}/li {% endfor %} /ul {% else %} pNo polls are available./p {% endif %} Whole tutorial is on

Re: pygame and python 2.5

2007-02-09 Thread bearophileHUGS
Skip: Python used to work that way. You'd then silently get errors if the API changed between version A and version B and you neglected to recompile the extensions you compiled against version A. Can't the compiled module have one or more test functions that can be used during linking to see

Re: python linux distro

2007-02-09 Thread Szabolcs Nagy
Now what would be interesting (and *really* crazy) would be Linux (or BSD or whatever) distro written almost entirely *in* Python, with the goal of eliminating as much bash/sh as possible. That would be fun. actually there was(is) an os whitch is written almost entirely *in* Python:

Re: Database Programming with Python

2007-02-09 Thread fumanchu
On Feb 9, 11:03 am, [EMAIL PROTECTED] wrote: There are no examples of Dejavu that I found yet. I have installed it but don't know how to use or call its functions. Read http://projects.amor.org/docs/dejavu/1.5.0RC1/ to learn how to use Dejavu. It's short and should at least give you an idea

Re: interacting with shell - another newbie question

2007-02-09 Thread Larry Bates
James wrote: Hello, I work in this annoying company where I have to autheticate myself to the company firewall every 30-50 minutes in order to access the internet. (I think it's a checkpoint fw). I have to run telnet what.ever.ip.address 259 then it prompts me with userid, then

Re: huge amounts of pure Python code broken by Python 2.5?

2007-02-09 Thread Klaas
On Feb 8, 6:37 pm, kernel1983 [EMAIL PROTECTED] wrote: On Feb 9, 10:29 am, Klaas [EMAIL PROTECTED] wrote: The changes listed dont' seem particularly huge considering the size, complexity, and boundary-pushingness of Twisted, coupled with the magnitude of the 2.5 release. Just keep using

  1   2   >