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
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
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'
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
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,
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',
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 "**
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 "*
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
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
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
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
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
I am planning to use python module if available.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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):
>
>
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
>>
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
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
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
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
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
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
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
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
MRAB, Peter: thanks for the decorator idea!
~kj
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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.
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,
$$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
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
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
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
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
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_
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
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
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
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
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
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
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
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
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
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.
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
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
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.
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,
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.
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
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
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
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
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
--- WWW.WEBDESIGNING2ALL.BLOGSPOT.COM
--
http://mail.python.org/mailman/listinfo/python-list
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
61 matches
Mail list logo