Re: Roundup Issue Tracker release 1.4.7

2009-03-17 Thread J Kenneth King
Richard Jones writes: > I'm proud to release version 1.4.7 of Roundup. > - Allow CGI frontend to serve XMLRPC requests. > - Added XMLRPC actions, as well as bridging CGI actions to XMLRPC actions. Sweet. I'm working on a small project called TracShell which is a command-line front-end to the T

Re: download x bytes at a time over network

2009-03-17 Thread R. David Murray
Jean-Paul Calderone wrote: > On Tue, 17 Mar 2009 12:15:23 +0530, Saurabh wrote: > >> This isn't exactly how things work.  The server *sends* you bytes.  It can > >> send you a lot at once.  To some extent you can control how much it sends > >> before it waits for you to catch up, but you don't ha

Re: urllib2 (py2.6) vs urllib.request (py3)

2009-03-17 Thread mattia
Il Tue, 17 Mar 2009 10:55:21 +, R. David Murray ha scritto: > mattia wrote: >> Hi all, can you tell me why the module urllib.request (py3) add extra >> characters (b'fef\r\n and \r\n0\r\n\r\n') in a simple example like the >> following and urllib2 (py2.6) correctly not? >> >> py2.6 >> >>> im

Re: ValueError: filedescriptor out of range in select()

2009-03-17 Thread Philip Semanchuk
On Mar 17, 2009, at 10:31 AM, Laszlo Nagy wrote: Hi Laszlo, Just a hunch -- are you leaking file handles and eventually running out? These file handles are for TCP sockets. They are accept()-ed, used and then thrown out. I guess after the connection was closed, the file handle is destr

Re: download x bytes at a time over network

2009-03-17 Thread Jean-Paul Calderone
On Tue, 17 Mar 2009 12:15:23 +0530, Saurabh wrote: This isn't exactly how things work.  The server *sends* you bytes.  It can send you a lot at once.  To some extent you can control how much it sends before it waits for you to catch up, but you don't have anywhere near byte-level control (you mi

Re: ValueError: filedescriptor out of range in select()

2009-03-17 Thread Jean-Paul Calderone
On Tue, 17 Mar 2009 15:04:22 +0100, Laszlo Nagy wrote: This is a long running process, written in Python. Only standard lib is used. This process accepts connections on TCP sockets, read/write data. After about one day, it starts throwing this when I try to connect: [snip] File "/usr/local/w

Re: ValueError: filedescriptor out of range in select()

2009-03-17 Thread Laszlo Nagy
Hi Laszlo, Just a hunch -- are you leaking file handles and eventually running out? These file handles are for TCP sockets. They are accept()-ed, used and then thrown out. I guess after the connection was closed, the file handle is destroyed automatically. BTW here is the shutdown() method fo

Re: ValueError: filedescriptor out of range in select()

2009-03-17 Thread Philip Semanchuk
On Mar 17, 2009, at 10:04 AM, Laszlo Nagy wrote: This is a long running process, written in Python. Only standard lib is used. This process accepts connections on TCP sockets, read/write data. After about one day, it starts throwing this when I try to connect: 2009-03-17 09:49:50,096 INFO

ValueError: filedescriptor out of range in select()

2009-03-17 Thread Laszlo Nagy
This is a long running process, written in Python. Only standard lib is used. This process accepts connections on TCP sockets, read/write data. After about one day, it starts throwing this when I try to connect: 2009-03-17 09:49:50,096 INFO .accesspoint0 ('127.0.0.1', 55510) connecting 2009-03-

Re: array next pointer

2009-03-17 Thread Luis Zarrabeitia
Quoting andrew cooke : > Andre Engels wrote: > [...] > b = a.__iter__() > > not sure from what version, but certainly in 2.6 and on, you can improve > the syntax slightly: > >>> b = iter(a) > >>> b.next() Indeed. Directly calling __special_methods__ should be avoided. That one is a better i

engadget; "a language that few understand these days (it's Python, and no, we're not joking)"

2009-03-17 Thread Vincent Davis
Thought you might find his interesting. "A standalone Eye-Fi server has now been presented to the general public, and while it's written in a language that few understand these days (it's Python, and no, we're not joking), the functionality here is second to none." http://www.engadget.com/2009/03/

Re: error writing str to binary stream - fails in Python 3.0.1, works in 2.x

2009-03-17 Thread wallenpb
On Mar 16, 5:42 pm, John Machin wrote: > On Mar 17, 9:29 am, "R. David Murray" wrote: > > > > > walle...@gmail.com wrote: > > > On Mar 16, 4:10 pm, Benjamin Peterson wrote: > > > >   gmail.com> writes: > > > > > > self.out.write(b'BM') worked beautifully.  Now I also have a similar > > > > > iss

Re: lib to auto-click mouse

2009-03-17 Thread Marcin Stępnicki
Dnia Tue, 17 Mar 2009 15:43:27 +0800, oyster napisał(a): > is there any this kind of lib for python? thanx If you plan to use it for some sort of automatic testing, look here: http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy#GUITestingTools -- http://mail.python.org/mailman/listinfo/pytho

Re: download x bytes at a time over network

2009-03-17 Thread Jorgen Grahn
On Tue, 17 Mar 2009 13:38:31 +0530, Saurabh wrote: > Heres the reason behind wanting to get chunks at a time. > Im actually retrieving data from a list of RSS Feeds and need to > continuously check for latest posts. > But I dont want to depend on Last-Modified header or the pubDate tag > in . Beca

Re: Problem while copying a file from a remote filer

2009-03-17 Thread Tim Golden
Jorgen Grahn wrote: On Sun, 15 Mar 2009 22:47:54 -0700, Chris Rebert wrote: On Sun, Mar 15, 2009 at 10:24 PM, venutaurus...@gmail.com wrote: Hi all, I have to write an application which does a move and copy of a file from a remote machine to the local machine. I tried something like: fi

Re: array next pointer

2009-03-17 Thread Tim Chase
not sure from what version, but certainly in 2.6 and on, you can improve the syntax slightly: b = iter(a) b.next() This syntax (also my preferred version) has been available since at least 2.3 -tkc -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem while copying a file from a remote filer

2009-03-17 Thread Jorgen Grahn
On Sun, 15 Mar 2009 22:47:54 -0700, Chris Rebert wrote: > On Sun, Mar 15, 2009 at 10:24 PM, venutaurus...@gmail.com > wrote: >> Hi all, >>      I have to write an application which does a move and copy of a >> file from a remote machine to the local machine. I tried something >> like: >> >> file

Re: Problem: Terminal (OS X) window exits immediately on opening. & Solution.

2009-03-17 Thread Lou Pecora
Python wrote: On 16 mrt 2009, at 22:15, Lou Pecora wrote: Because the shell process in the Terminal window would exit right after it started even when I was just trying to open a new window (not even running a script), i.e. command-N in Terminal. So I could not run anything from the Terminal.

Re: How to interface with C# without IronPython

2009-03-17 Thread Kay Schluehr
On 16 Mrz., 23:06, Mudcat wrote: > On Mar 13, 8:37 pm, Christian Heimes wrote: > > > Chris Rebert wrote: > > > Haven't used it, butPythonfor .NET sounds like it might be what you > > > want:http://pythonnet.sourceforge.net/ > > > I've done some development for and with PythonDotNET. It's definite

Re: array next pointer

2009-03-17 Thread andrew cooke
Andre Engels wrote: [...] b = a.__iter__() b.next() > 'cat' b.next() > 'dog' NOTE CORRECTION BELOW! IT'S next(b), not b.next() which doesn't exist in Python 3 (if you need it, it's now b.__next__()). sorry. not sure from what version, but certainly in 2.6 and on, you can improve

Re: array next pointer

2009-03-17 Thread andrew cooke
Andre Engels wrote: [...] b = a.__iter__() b.next() > 'cat' b.next() > 'dog' not sure from what version, but certainly in 2.6 and on, you can improve the syntax slightly: >>> b = iter(a) >>> b.next() andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: array next pointer

2009-03-17 Thread Andre Engels
On Tue, Mar 17, 2009 at 12:24 PM, Andre Engels wrote: > On Tue, Mar 17, 2009 at 12:12 PM, Anjanesh Lekshminarayanan > wrote: > a = ['cat','dog','elephant'] > a.next() >> Traceback (most recent call last): >>  File "", line 1, in >> AttributeError: 'list' object has no attribute 'next' >>

Re: array next pointer

2009-03-17 Thread Andre Engels
On Tue, Mar 17, 2009 at 12:12 PM, Anjanesh Lekshminarayanan wrote: a = ['cat','dog','elephant'] a.next() > Traceback (most recent call last): >  File "", line 1, in > AttributeError: 'list' object has no attribute 'next' > Is there something that imtates PHP's next() ? (http://php.

Re: urllib2 (py2.6) vs urllib.request (py3)

2009-03-17 Thread mattia
Il Tue, 17 Mar 2009 10:55:21 +, R. David Murray ha scritto: > mattia wrote: >> Hi all, can you tell me why the module urllib.request (py3) add extra >> characters (b'fef\r\n and \r\n0\r\n\r\n') in a simple example like the >> following and urllib2 (py2.6) correctly not? >> >> py2.6 >> >>> im

Re: download x bytes at a time over network

2009-03-17 Thread R. David Murray
Saurabh wrote: > > This isn't exactly how things work.  The server *sends* you bytes.  It can > > send you a lot at once.  To some extent you can control how much it sends > > before it waits for you to catch up, but you don't have anywhere near > > byte-level control (you might have something lik

array next pointer

2009-03-17 Thread Anjanesh Lekshminarayanan
>>> a = ['cat','dog','elephant'] >>> a.next() Traceback (most recent call last): File "", line 1, in AttributeError: 'list' object has no attribute 'next' >>> Is there something that imtates PHP's next() ? (http://php.net/next) -- http://mail.python.org/mailman/listinfo/python-list

urllib2 (py2.6) vs urllib.request (py3)

2009-03-17 Thread R. David Murray
mattia wrote: > Hi all, can you tell me why the module urllib.request (py3) add extra > characters (b'fef\r\n and \r\n0\r\n\r\n') in a simple example like the > following and urllib2 (py2.6) correctly not? > > py2.6 > >>> import urllib2 > >>> f = urllib2.urlopen("http://www.google.com";).read()

Re: python book for a C programmer

2009-03-17 Thread Jeremiah Dodds
On Sat, Mar 14, 2009 at 5:10 AM, Saurabh wrote: > For introduction I am thinking about 'Learning Python' and for > reference I am thinking about 'Python Bible'. > > I need your suggestions on this. > > Thanks in advance > -- > http://mail.python.org/mailman/listinfo/python-list > Here's another

Re: String to sequence

2009-03-17 Thread Jeremiah Dodds
On Sat, Mar 14, 2009 at 9:09 AM, mattia wrote: > How can I convert the following string: > > 'AAR','ABZ','AGA','AHO','ALC','LEI','AOC', > EGC','SXF','BZR','BIQ','BLL','BHX','BLQ' > > into this sequence: > > ['AAR','ABZ','AGA','AHO','ALC','LEI','AOC', > EGC','SXF','BZR','BIQ','BLL','BHX','BLQ'] >

Re: Lists aggregation

2009-03-17 Thread mattia
Il Tue, 17 Mar 2009 08:18:08 +0100, Peter Otten ha scritto: > Mensanator wrote: > >> On Mar 16, 1:40 pm, Peter Otten <__pete...@web.de> wrote: >>> mattia wrote: >>> > I have 2 lists, like: >>> > l1 = [1,2,3] >>> > l2 = [4,5] >>> > now I want to obtain a this new list: l = >>> > [(1,4),(1,5),(2,4)

urllib2 (py2.6) vs urllib.request (py3)

2009-03-17 Thread mattia
Hi all, can you tell me why the module urllib.request (py3) add extra characters (b'fef\r\n and \r\n0\r\n\r\n') in a simple example like the following and urllib2 (py2.6) correctly not? py2.6 >>> import urllib2 >>> f = urllib2.urlopen("http://www.google.com";).read() >>> fd = open("google26.html

Re: Problem: Terminal (OS X) window exits immediately on opening. & Solution.

2009-03-17 Thread Python
On 16 mrt 2009, at 22:15, Lou Pecora wrote: In article , Python wrote: -- why don't you just execute the script directly form the terminal? then you will be able to read all error messages... and you can delete all the files you want just my 2c Arno Because the shell process in the Term

Re: A request (was: how to repeat function definitions less

2009-03-17 Thread Marc 'BlackJack' Rintsch
On Mon, 16 Mar 2009 02:59:57 -0700, Michele Simionato wrote: > On Mar 16, 8:08 am, Dennis Lee Bieber wrote: >> On Sun, 15 Mar 2009 23:18:54 -0500, alex goretoy >>         Many of your posts are actually exceeding the 500-line >>         limit I've >> set in my client for down-load -- yet have not

Re: download x bytes at a time over network

2009-03-17 Thread Saurabh
Heres the reason behind wanting to get chunks at a time. Im actually retrieving data from a list of RSS Feeds and need to continuously check for latest posts. But I dont want to depend on Last-Modified header or the pubDate tag in . Because a lot of feeds just output date('now') instead of the act

Re: finally successful in ods with python, just one help needed.

2009-03-17 Thread Krishnakant
Hi David and John. Thanks a lot, the problem is solved. David, your idea was the key to solve the problem. Actually John in his code and the explanation made it clear that the wrong attributes were being used on wrong elements. david's code confirmed the fact. The center style which david had in

lib to auto-click mouse

2009-03-17 Thread oyster
is there any this kind of lib for python? thanx -- http://mail.python.org/mailman/listinfo/python-list

Re: download x bytes at a time over network

2009-03-17 Thread Steven D'Aprano
Please excuse my replying to a reply instead of the original, but the original doesn't show up on my news feed. On 2009/3/16 Saurabh : > I want to download content from the net - in chunks of x bytes or > characters at a time - so that it doesnt pull the entire content in one > shot. > > import

Re: Lists aggregation

2009-03-17 Thread Peter Otten
Mensanator wrote: > On Mar 16, 1:40 pm, Peter Otten <__pete...@web.de> wrote: >> mattia wrote: >> > I have 2 lists, like: >> > l1 = [1,2,3] >> > l2 = [4,5] >> > now I want to obtain a this new list: >> > l = [(1,4),(1,5),(2,4),(2,5),(3,4),(3,5)] >> > Then I'll have to transform the values found in

Re: download x bytes at a time over network

2009-03-17 Thread n . s . buttar
2009/3/16 Saurabh : > I want to download content from the net - in chunks of x bytes or characters > at a time - so that it doesnt pull the entire content in one shot. > > import urllib2 > url = "http://python.org/"; > handler = urllib2.urlopen(url) > > data = handler.read(100) > print """Content :

<    1   2