Re: Spreadsheet-style dependency tracking

2010-10-16 Thread Chris Torek
In article <87y69xbz6h@mid.deneb.enyo.de> Florian Weimer wrote: >Are there libraries which implement some form of spreadsheet-style >dependency tracking? The idea is to enable incremental updates to >some fairly convoluted computation. I hope that a general dependency >tracking framework wo

Mesothelioma

2010-10-16 Thread group
--- WWW.WEBDESIGNING2ALL.BLOGSPOT.COM -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading Outlook .msg file using Python

2010-10-16 Thread John Henry
On Oct 12, 10:31 am, Tim Golden wrote: > On 12/10/2010 4:59 PM, John Henry wrote: > > > According to: > > >http://support.microsoft.com/kb/813745 > > > I need to reset my Outlook registry keys.  Unfortunately, I don't have > > my Office Install CD with me.  This would have to wait. > > Thanks for

Re: How to display unicode char in Windows

2010-10-16 Thread Michel Claveau - MVP
Hi! > "cp65001" isn't in Python's encoding tables. CP65001 is an alias for (partial) UTF-8 @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: using optparser

2010-10-16 Thread Michele Simionato
Accepting both options and positional arguments for the same purpose does not look like a good idea to me. Anyway, here is a solution using plac (http://pypi.python.org/pypi/ plac) assuming you can afford an external dependency: import plac @plac.annotations( personname=("person to be matched

Re: using optparser

2010-10-16 Thread Jonathan Gardner
On Oct 16, 7:59 pm, jimgardener wrote: > hi > I have a program which I call  findmatch that expects these arguments > 1.a person name > 2.a group name > 3.an integer > 4.a float value > > I thought I would allow user to call this program either using options > or using positional arguments in a pr

Re: using optparser

2010-10-16 Thread Chris Hulan
On Oct 16, 10:59 pm, jimgardener wrote: > hi > I have a program which I call  findmatch that expects these arguments > 1.a person name > 2.a group name > 3.an integer > 4.a float value > > I thought I would allow user to call this program either using options > or using positional arguments in a p

Re: Starting Python in XP Pro

2010-10-16 Thread Grant Andrew
I hear that...God knows if I had a more complete question, I'd type it - basically, when I click the IDLE GUI icon from the Start Menu, there is a flash of a command prompt loading, then nothing happens. I've tried a number of things at the command prompt over the last two weeks and five versions.

Re: asyncore.poll() question

2010-10-16 Thread chad
On Oct 16, 11:02 am, Felipe Bastos Nunes wrote: > You edited the source of asyncore.py puttin the print statments and > nothing happend? It should work as the method is called as the page > you posted said. > > 2010/10/16, chad : > > > > > On Oct 16, 6:47 am, Lucasm wrote: > >> On 16 Okt, 15:31,

using optparser

2010-10-16 Thread jimgardener
hi I have a program which I call findmatch that expects these arguments 1.a person name 2.a group name 3.an integer 4.a float value I thought I would allow user to call this program either using options or using positional arguments in a predefined order ie, findmatch -f schoolmates -i jon -t 3.

Re: dynamic loading error ("Symbol not found")

2010-10-16 Thread Ned Deily
In article , kj wrote: > The following interaction (in OS X) summarizes the situation: > > % echo $DYLD_LIBRARY_PATH > /Applications/MATLAB_R2010a.app/bin/maci64 > % grep -r _engClose $DYLD_LIBRARY_PATH > Binary file /Applications/MATLAB_R2010a.app/bin/maci64/libeng.dylib matches > % export DYL

Re: Starting Python in XP Pro

2010-10-16 Thread Dave Angel
On 2:59 PM, Grant Andrew wrote: I'm a beginning user with some challenges. I have installed and uninstalled several versions with the same results - I can't get IDLE to work, nor can I associate .py files with Python. So I can get the interactive shell interface but nothing else. I'm currentl

Re: web and standalone access

2010-10-16 Thread Luke Kenneth Casson Leighton
On Tue, Aug 3, 2010 at 6:15 PM, S.Selvam wrote: > I have a case where my application needs to run as a standalone application > and also allow web based access. > What could the best python framework to implement it. well, the total number of options available is about err... one, possibly two.

Re: PEP 249 (database api) -- executemany() with iterable?

2010-10-16 Thread Martin Gregorie
On Sun, 17 Oct 2010 11:27:17 +1300, Lawrence D'Oliveiro wrote: > In message , Martin Gregorie wrote: > >> On Thu, 14 Oct 2010 16:36:34 +1300, Lawrence D'Oliveiro wrote: >> >>> In message <4cb5e659$0$1650$742ec...@news.sonic.net>, John Nagle >>> wrote: >>> Also note that there are some

Starting Python in XP Pro

2010-10-16 Thread Grant Andrew
I'm a beginning user with some challenges. I have installed and uninstalled several versions with the same results - I can't get IDLE to work, nor can I associate .py files with Python. So I can get the interactive shell interface but nothing else. I'm currently running ActiveState 2.6. Any tho

Re: how to make all assertions in a unit test execute

2010-10-16 Thread Ben Finney
Terry Reedy writes: > The temptation to write unfactored duplicate code like this is a > negative of unittest. I don't see that it's especially attributable to the ‘unittest’ module. It's a common problem to be solved, and solutions are available. > The question is whether get_filenames gets th

Re: how to make all assertions in a unit test execute

2010-10-16 Thread Terry Reedy
On 10/16/2010 6:05 PM, Ben Finney wrote: jimgardener writes: class FileNamesTest(unittest.TestCase): def setUp(self): self.dirname='/home/me/data' def test_get_filenames(self): innerstr='tom' matching_names=get_filenames(self.dirname,innerstr) se

Re: how to make all assertions in a unit test execute

2010-10-16 Thread Ben Finney
Ben Finney writes: > Yes, that's by design. Each function in a TestCase subclass is a test > case […] Poorly described. Try this instead: Each test case in a TestCase subclass must be a separate function, whose name starts with ‘test’. Or you could see what the documentation says; it may descri

Re: docstring that use globals?

2010-10-16 Thread kj
In <8hujfsfb9...@mid.individual.net> Gregory Ewing writes: >kj wrote: >> The hardest case is "module docstrings". >Actually, that one's quite easy, just assign to __doc__. >__doc__ = "This is a %s docstring" % "made-up" D'oh! Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: dynamic loading error ("Symbol not found")

2010-10-16 Thread kj
In Emile van Sebille writes: >On 10/16/2010 2:15 PM kj said... >> >> >> >> The following interaction (in OS X) summarizes the situation: >> >> % echo $DYLD_LIBRARY_PATH >> /Applications/MATLAB_R2010a.app/bin/maci64 >> % grep -r _engClose $DYLD_LIBRARY_PATH >> Binary file /Applications/MATLAB_R2

Re: PEP 249 (database api) -- executemany() with iterable?

2010-10-16 Thread Lawrence D'Oliveiro
In message , Martin Gregorie wrote: > On Thu, 14 Oct 2010 16:36:34 +1300, Lawrence D'Oliveiro wrote: > >> In message <4cb5e659$0$1650$742ec...@news.sonic.net>, John Nagle wrote: >> >>> Also note that there are some issues with doing a huge volume of >>> updates in one MySQL InnoDB transacti

Re: how to make all assertions in a unit test execute

2010-10-16 Thread Ben Finney
jimgardener writes: > class FileNamesTest(unittest.TestCase): > def setUp(self): > self.dirname='/home/me/data' > > def test_get_filenames(self): > innerstr='tom' > matching_names=get_filenames(self.dirname,innerstr) > self.assertEquals(1,len(matching_name

Re: dynamic loading error ("Symbol not found")

2010-10-16 Thread Emile van Sebille
On 10/16/2010 2:15 PM kj said... The following interaction (in OS X) summarizes the situation: % echo $DYLD_LIBRARY_PATH /Applications/MATLAB_R2010a.app/bin/maci64 % grep -r _engClose $DYLD_LIBRARY_PATH Binary file /Applications/MATLAB_R2010a.app/bin/maci64/libeng.dylib matches % export DYLD_

Spreadsheet-style dependency tracking

2010-10-16 Thread Florian Weimer
Are there libraries which implement some form of spreadsheet-style dependency tracking? The idea is to enable incremental updates to some fairly convoluted computation. I hope that a general dependency tracking framework would avoid making the computation even more convoluted and difficult to cha

Re: docstring that use globals?

2010-10-16 Thread Gregory Ewing
kj wrote: The hardest case is "module docstrings". Actually, that one's quite easy, just assign to __doc__. __doc__ = "This is a %s docstring" % "made-up" -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: imaplib AND date format

2010-10-16 Thread Tim Roberts
harryos wrote: >In imaplib.IMAP4.search() the search string SENTON can be used >'(SENTON 22-Jun-2010)' . >But the RFC 2060 defines search key as >SENTON Messages whose [RFC-822] Date: header is within the > specified date. >and in RFC822 it is given as, >date= 1*2D

dynamic loading error ("Symbol not found")

2010-10-16 Thread kj
The following interaction (in OS X) summarizes the situation: % echo $DYLD_LIBRARY_PATH /Applications/MATLAB_R2010a.app/bin/maci64 % grep -r _engClose $DYLD_LIBRARY_PATH Binary file /Applications/MATLAB_R2010a.app/bin/maci64/libeng.dylib matches % export DYLD_LIBRARY_PATH % python Python 2.6.5

$$Nike shoes wholesale\retail

2010-10-16 Thread Terry
$$Nike shoes wholesale\retail Our company mainly deal with the import and export of the brand sports shoes, clothes, bags , glasses, etc . Products such as Nike Jordan sell well in America , Canada , as well as Europe and other countries. Our objective is to supply products of first-class quality

Re: asyncore.poll() question

2010-10-16 Thread chad
On Oct 16, 11:02 am, Felipe Bastos Nunes wrote: > You edited the source of asyncore.py puttin the print statments and > nothing happend? It should work as the method is called as the page > you posted said. > > 2010/10/16, chad : > > > > > On Oct 16, 6:47 am, Lucasm wrote: > >> On 16 Okt, 15:31,

Re: asyncore.poll() question

2010-10-16 Thread Felipe Bastos Nunes
You edited the source of asyncore.py puttin the print statments and nothing happend? It should work as the method is called as the page you posted said. 2010/10/16, chad : > On Oct 16, 6:47 am, Lucasm wrote: >> On 16 Okt, 15:31, chad wrote: >> >> >> >> > At the following url.. >> >> >http://www.

Re: asyncore.poll() question

2010-10-16 Thread chad
On Oct 16, 6:47 am, Lucasm wrote: > On 16 Okt, 15:31, chad wrote: > > > > > At the following url.. > > >http://www.nightmare.com/medusa/programming.html > > > The author has the following code for a simple HTTP client > > > #!/usr/bin/python > > > import asyncore > > import socket > > import stri

Re: docstring that use globals?

2010-10-16 Thread Chris Rebert
On Sat, Oct 16, 2010 at 10:05 AM, kj wrote: > In kj writes: > >>MRAB, Peter: thanks for the decorator idea! > > > As an afterthought, is there any way to extend this general idea > to other docstrings beyond function docstrings? > > I imagine that the decorator idea works well for method docstri

Re: docstring that use globals?

2010-10-16 Thread kj
In kj writes: >MRAB, Peter: thanks for the decorator idea! As an afterthought, is there any way to extend this general idea to other docstrings beyond function docstrings? I imagine that the decorator idea works well for method docstrings too (though I have not tried any of this yet). But, I

Re: docstring that use globals?

2010-10-16 Thread kj
MRAB, Peter: thanks for the decorator idea! ~kj -- http://mail.python.org/mailman/listinfo/python-list

Re: docstring that use globals?

2010-10-16 Thread Peter Otten
kj wrote: > > > Consider the following Python snippet: > > SEPARATOR = '+' > > def spam(ham, eggs): > """Return a hash of ham and eggs. > > The variables ham and eggs are tuples of strings. The returned > "hash" is a dict made from the pairs returned by zip(ham, eggs). > If h

Re: docstring that use globals?

2010-10-16 Thread MRAB
On 16/10/2010 16:51, kj wrote: Consider the following Python snippet: SEPARATOR = '+' def spam(ham, eggs): """Return a hash of ham and eggs. The variables ham and eggs are tuples of strings. The returned "hash" is a dict made from the pairs returned by zip(ham, eggs). If

Minimal D

2010-10-16 Thread Kruptein
Hey, I've written a small "IDE". It is written in python using the python toolkit and offers an advanced text-editor, file-manager, ftp-client, sql- client(in development) and more towards the future. It is linux-only (this because of some differences between the windows wxPython and the linux wx

Deditor

2010-10-16 Thread Kruptein
Hi, I've created a program written in python using the wxpython toolkit. It's a pythonic editor for linux. With pythonic I mean it has some features that are specificaly for python. Like code analyzing, a python interpreter, ... I did add syntax-highlighting for most languages though. If you wa

docstring that use globals?

2010-10-16 Thread kj
Consider the following Python snippet: SEPARATOR = '+' def spam(ham, eggs): """Return a hash of ham and eggs. The variables ham and eggs are tuples of strings. The returned "hash" is a dict made from the pairs returned by zip(ham, eggs). If ham contains repeated keys, the cor

Re: pipe using python

2010-10-16 Thread Jerry Hill
On Sat, Oct 16, 2010 at 5:42 AM, hiral wrote: > Like we 'named pipes', how we can achieve comminication between more > than two processes. > And how it can be scaled to remote machines? > Any idea? Have you looked at the multiprocessing module? It handles communication between processes both loc

Re: Decorator question

2010-10-16 Thread Peter Otten
Lucasm wrote: > I have a decorator problem and hope someone is able to help me out/ > assist me. Thanks in advance. > > Suppose: > ### Begin some_library_module ### > > def some_decorator(some_method): > def inner(an_arg, *args, **kwargs): > return some_method(an_arg, *args, **kwargs

Re: EOF while scanning triple-quoted string literal

2010-10-16 Thread Grant Edwards
On 2010-10-16, Steven D'Aprano wrote: > On Fri, 15 Oct 2010 20:07:37 +, Grant Edwards wrote: > >> Nor I, which is why I was confused by the statement that in the "Unix >> world" a lot of programs misbehaved when presented with files whose >> names contained a null byte. > > That's not what I s

Re: asyncore.poll() question

2010-10-16 Thread Felipe Bastos Nunes
Or download the old source files, and use the asyncore.py that's there. 2010/10/16, Lucasm : > On 16 Okt, 15:31, chad wrote: >> At the following url.. >> >> http://www.nightmare.com/medusa/programming.html >> >> The author has the following code for a simple HTTP client >> >> #!/usr/bin/python >>

Re: asyncore.poll() question

2010-10-16 Thread Lucasm
On 16 Okt, 15:31, chad wrote: > At the following url.. > > http://www.nightmare.com/medusa/programming.html > > The author has the following code for a simple HTTP client > > #!/usr/bin/python > > import asyncore > import socket > import string > > class http_client (asyncore.dispatcher): > >    

asyncore.poll() question

2010-10-16 Thread chad
At the following url.. http://www.nightmare.com/medusa/programming.html The author has the following code for a simple HTTP client #!/usr/bin/python import asyncore import socket import string class http_client (asyncore.dispatcher): def __init__ (self, host, path): asyncore.dispa

Decorator question

2010-10-16 Thread Lucasm
Hello, I have a decorator problem and hope someone is able to help me out/ assist me. Thanks in advance. Suppose: ### Begin some_library_module ### def some_decorator(some_method): def inner(an_arg, *args, **kwargs): return some_method(an_arg, *args, **kwargs) return inner ### E

Re: python/c api

2010-10-16 Thread Stefan Behnel
Tony, 14.10.2010 20:04: is the python/c api extensively used? and what world-famous software use it? thanks! The Sage math system makes heavy use of it, mostly through Cython. And the Python standard library has lots of modules that use it, e.g. zlib and sqlite3. You can expect that most pack

Re: pipe using python

2010-10-16 Thread hiral
I am planning to use python module if available. -- http://mail.python.org/mailman/listinfo/python-list

Re: pipe using python

2010-10-16 Thread Alex A.
Hi, I use RabbitMQ in such cases. Hopefully this could help you. Regards, Alex On 10/16/10, hiral wrote: > Hi, > > Like we 'named pipes', how we can achieve comminication between more > than two processes. > And how it can be scaled to remote machines? > Any idea? > > Thank you. > -- > http://m

Re: how to make all assertions in a unit test execute

2010-10-16 Thread jimgardener
thanks Peter that was good advice jim On Oct 16, 1:44 pm, Peter Otten <__pete...@web.de> wrote: > Keep it simple ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: python/c api

2010-10-16 Thread Diez B. Roggisch
alex23 writes: > On Oct 15, 5:53 am, de...@web.de (Diez B. Roggisch) wrote: >> For example Ableton Live, an audio sequencer. > > I _have_ Live and I didn't realise this :O Thanks! Well, it's not a feature for end-users, it's used internally for some midi controller mapping stuff. Our "API" so to

pipe using python

2010-10-16 Thread hiral
Hi, Like we 'named pipes', how we can achieve comminication between more than two processes. And how it can be scaled to remote machines? Any idea? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to display unicode char in Windows

2010-10-16 Thread hiral
On Oct 15, 11:38 pm, "Mark Tolonen" wrote: > "hiral" wrote in message > > news:90b62600-a0a4-47d5-bb6f-a3ae14cf6...@9g2000prn.googlegroups.com... > > > Hi, > > I tried... > > > > > # coding: latin-1 > > print "**" > > oo = "ö" > > print "ch

Re: How to display unicode char in Windows

2010-10-16 Thread hiral
On Oct 15, 11:06 pm, John Nagle wrote: > On 10/15/2010 4:57 AM, hiral wrote: > > > Hi, > > I tried... > > > > > # coding: latin-1 > > print "**" > > oo = "ö" > > print "char=<%s>" % oo > > print "*

Re: How to display unicode char in Windows

2010-10-16 Thread hiral
On Oct 15, 5:24 pm, "Michel Claveau - MVP" wrote: > Hi! > > 1) the good syntax is: >     # -*- coding: latin-1 -*- >     print "**" >     oo = "ö" >     print "char=<%s>" % oo >     print "**

Re: finding an exact match of filenames

2010-10-16 Thread Peter Otten
jimgardener wrote: > I am trying to code a function that takes a directory name and a name > string and try to return a list of fully qualified names of all files > in the directory having an exact match of name. > > example, > I have these files in the directory, > 'googlegroup_python__111.txt',

Re: how to make all assertions in a unit test execute

2010-10-16 Thread Peter Otten
jimgardener wrote: > I was testing a function using unittest. > > def get_filenames(dirname,innerstring): > > return filenames_containing_innerstring > class FileNamesTest(unittest.TestCase): > def setUp(self): > self.dirname='/home/me/data' > when I run the unittest,

finding an exact match of filenames

2010-10-16 Thread jimgardener
I am trying to code a function that takes a directory name and a name string and try to return a list of fully qualified names of all files in the directory having an exact match of name. example, I have these files in the directory, 'googlegroup_python__111.txt', 'googlegroup_python__112.txt', 'g

how to make all assertions in a unit test execute

2010-10-16 Thread jimgardener
hi I was testing a function using unittest. def get_filenames(dirname,innerstring): return filenames_containing_innerstring class FileNamesTest(unittest.TestCase): def setUp(self): self.dirname='/home/me/data' def test_get_filenames(self): innerstr='tom'

Problem with mechanize redirect

2010-10-16 Thread Shashwat Anand
I was trying some sort of timed programming challenges which require getting the value from url and auto-posting. Here is what I was doing - http://securityoverride.com/challenges/programming/10/index.php Here is the content : In order to complete Programming Challenge 10, you must code a script t

Re: EOF while scanning triple-quoted string literal

2010-10-16 Thread Steven D'Aprano
On Fri, 15 Oct 2010 20:07:37 +, Grant Edwards wrote: > Nor I, which is why I was confused by the statement that in the "Unix > world" a lot of programs misbehaved when presented with files whose > names contained a null byte. That's not what I said. I said, TRY to create a file with a null by