On 01/14/11 03:04, Kushal Kumaran wrote:
- Original message -
Hi all,
I have the following problem (which I already have a hacked around
solution that works but I'd would like some more input on it):
I have a situation where multiple python processes are started
independently from each
Hey,
--
question
--
How can I use a priority queue to schedule jobs within the "multiprocessing
pool" module?
-
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dear User,
ANNOUNCE:Major Feature Release
libmsgque: Application-Server-Toolkit for
C, C++, JAVA, C#, Go, TCL, PERL, PHP, PYTHON, RUBY, VB.NET
PLMK: Programming-Language-Microkernel
NH
On Fri, Jan 14, 2011 at 1:51 PM, Martin P. Hellwig
wrote:
> On 01/14/11 03:04, Kushal Kumaran wrote:
>>
>> - Original message -
>>>
>>> Hi all,
>>>
>>> I have the following problem (which I already have a hacked around
>>> solution that works but I'd would like some more input on it):
>>>
On 01/14/11 10:05, Kushal Kumaran wrote:
This might help though:
https://code.google.com/p/modwsgi/wiki/ProcessesAndThreading
It seems if you're not using 'daemon' mode, global data might be shared.
Yes I read that thoroughly before I started out implementing a solution.
But in my case I want
Magnus Lyckå writes:
a = X()
del a
> Deleted <__main__.X instance at 0x00CCCF80>
a=X()
b=X()
a.b=b
b.a=a
del a
gc.collect()
> 0
del b
gc.collect()
> 4
If your method has a __del__ at all, the automatic cyclic collector is
disabled. It detects th
I'm using ftplib for the first time, and am having trouble getting it
to work. I type
>>> from ftplib import FTP
>>> ftp = FTP('ftp.indexftp.barcap.com', 'A Valid Username', ' A Valid
>>> Password')
where I have suppressed the user name and password, and I get
Traceback (most recent call last):
Thomas,
> ftp = FTP('ftp.indexftp.barcap.com', 'A Valid Username', ' A Valid Password')
Your FTP URI is bad. When I try to connect to your site from the Windows
FTP client, I get the following response:
Unknown host ftp.indexftp.barcap.com.
Malcolm
--
http://mail.python.org/mailman/listinfo/py
gaierror: [Errno 11001] getaddrinfo failed
That part of the error indicates, your computer is unable to resolve the
IP address for the hostname
ftp.indexftp.barcap.com
Make sure the hostname is valid.
--
With warm regards,
Sudheer. S
Personal home page - http://sudheer.net | Tech Chorus -
Dear All!
I have deal with large unbalanced trees and I have to implement post-order
tree traversal. My first attempt is shown below ("Node" and "Tree" classes)
and based on recursive generators approach.
class Node():
def __init__(self,value):
self.childs = []
self.value = va
I'm using Python 2.6.5. I would like to be able to print an RTF file,
with no prompts for printers or anything like that.
Here's the code so far:
import wx.richtext
rtp = wx.richtext.RichTextPrinting()
rtp.PrintFile('C:\\path\\to\\file.rtf')
When I run it, it says: ... assert "(wxThePrintPaperDat
Hi All,
I'm very happy to announce the first fully-documented release of
TestFixtures, my collection of testing fixtures and helpers that I've
been collecting for the last couple of years.
Along with my own take on a lot of the common fixtures and helpers, it
has some bits that I haven't see
Of course I searched for one and couldn’t find; that goes without
saying. Otherwise I wouldn’t even bother writing a message, isn’t
it? I disagree people should cruft their messages with details about
how they failed to find information, as that is unrelated to the
question at hand and has no poi
14.01.2011, 14:15, "Alex Boyko" :
> Dear All!
>
> I have deal with large unbalanced trees and I have to implement post-order
> tree traversal. My first attempt is shown below ("Node" and "Tree" classes)
> and based on recursive generators approach.
>
> class Node():
> def __init__(self,value)
14.01.2011, 14:15, "Alex Boyko" :
> Dear All!
>
> I have deal with large unbalanced trees and I have to implement post-order
> tree traversal. My first attempt is shown below ("Node" and "Tree" classes)
> and based on recursive generators approach.
>
> class Node():
> def __init__(self,value)
14.01.2011, 14:17, "Alex Boyko" :
> Dear All!
>
> I have deal with large unbalanced trees and I have to implement post-order
> tree traversal. My first attempt is shown below ("Node" and "Tree" classes)
> and based on recursive generators approach.
>
> class Node():
> def __init__(self,value)
leoboiko, 14.01.2011 14:06:
Of course I searched for one and couldn’t find; that goes without
saying. Otherwise I wouldn’t even bother writing a message, isn’t
it? I disagree people should cruft their messages with details about
how they failed to find information, as that is unrelated to the
q
Steven D'Aprano, 14.01.2011 01:15:
On Thu, 13 Jan 2011 12:45:31 -0800, leoboiko wrote:
Is there an equivalent to the textwrap module that knows about the
Unicode line breaking algorithm (UAX #14,
http://unicode.org/reports/tr14/ )?
Is access to Google blocked where you are, or would you just l
[ please set the reply-to to testing-in-python@ !]
> The package is on PyPI and a full list of all the links to docs, issue
> trackers and the like can be found here:
>
> http://www.simplistix.co.uk/software/python/testfixtures
The number one problem with all the test fixture systems I ever
audi
On Jan 14, 11:48 am, Stefan Behnel wrote:
> Sadly, the OP did not clearly state that the required feature
> is really not supported by "textwrap" and in what way textwrap
> behaves differently. That would have helped in answering.
Oh, textwrap doesn’t work for arbitrary Unicode text at all. For
I'm new to python and have just been looking into a solution for Mocking
objects. In particular, at the moment, testing some code that needs to
access hardware IOs using DLLs. I do this using Ctypes.
However, on my dev machine, I don't have the same hardware so calling the
DLL functions will not wo
Appologies, please read the 2nd last line as:
Can you give me an indication of how you would go about doing this with
TestFixtures? :)
Thanks
Jack
On Fri, Jan 14, 2011 at 2:39 PM, Jack Keegan wrote:
> I'm new to python and have just been looking into a solution for Mocking
> objects. In partic
Hi Jack,
On 14/01/2011 14:39, Jack Keegan wrote:
objects. In particular, at the moment, testing some code that needs to
access hardware IOs using DLLs. I do this using Ctypes.
However, on my dev machine, I don't have the same hardware so calling
the DLL functions will not work as expected. There
Hi Chris,
Thanks for that. I'll give it a go.
Cheers,
Jack
On Fri, Jan 14, 2011 at 2:49 PM, Chris Withers wrote:
> Hi Jack,
>
>
> On 14/01/2011 14:39, Jack Keegan wrote:
>
>> objects. In particular, at the moment, testing some code that needs to
>> access hardware IOs using DLLs. I do this usi
Please make the below change to get past this problem
Change
*ftp.*indexftp.barcap.com
to
indexftp.barcap.com
Regards,
Anurag
On Fri, Jan 14, 2011 at 5:25 PM, Thomas Philips wrote:
> I'm using ftplib for the first time, and am having trouble getting it
> to work. I type
>
> >>> from ftplib
Hi,all
I hope use cStringIO to create virtual file, but my customed function which
is from a shared library imported by ctypes
just accepts a filename(string type) as parameter.
So I'm wondering whether there is any method that make the virtual file
created by cStringIO like a normal file which ha
On Fri, 14 Jan 2011 05:06:15 -0800, leoboiko wrote:
> Of course I searched for one and couldn’t find; that goes without
> saying. Otherwise I wouldn’t even bother writing a message, isn’t it?
You wouldn't say that if you had the slightest idea about how many people
write to newsgroups and web
Thank you for your reply, but I have question about your code. Your defined:
def post_order(self):
for child in self.childs:
yield child
yield self
just for "Node" , not for "Tree", and do
w("doing generator post_order...")
_t = datetime.now()
for item in roo
So I mean, your approach with generators showed good results in terms of
time efficiency 'cos iteration was done for root and root's children.
On 14 January 2011 18:57, Alex Boyko wrote:
> Thank you for your reply, but I have question about your code. Your
> defined:
>
>def post_order(self)
On Fri, Jan 14, 2011 at 5:15 AM, Alex Boyko wrote:
> So, I'd like to know how should I implement (if it's possible of course)
> __iter__ for my tree class based on recursion without generators?
You could try something like this (untested):
from itertools import chain, imap
...
def postorde
14.01.2011, 18:57, "Alex Boyko" :
> 2011/1/14 kost BebiX
>> 14.01.2011, 14:15, "Alex Boyko" :
>>
>>> Dear All!
>>>
>>> I have deal with large unbalanced trees and I have to implement post-order
>>> tree traversal. My first attempt is shown below ("Node" and "Tree" classes)
>>> and based on recur
On Fri, Jan 14, 2011 at 11:07 AM, Ian Kelly wrote:
> class PostOrderIter(object):
>
> def __iter__(self, node):
> self.stack = [(node, 0)]
That __iter__ should actually be __init__, of course.
--
http://mail.python.org/mailman/listinfo/python-list
2011/1/14 kost BebiX :
> Well, isn't tree is a root node and it's children?
And its grandchildren, great-grandchildren, etc. What Alex is saying
is that the implementation you posted traverses the root and its
immediate children, but does not recur any further than that. That is
why it was so fa
14.01.2011, 20:19, "Ian Kelly" :
> 2011/1/14 kost BebiX ;:
>
>> Well, isn't tree is a root node and it's children?
>
> And its grandchildren, great-grandchildren, etc. What Alex is saying
> is that the implementation you posted traverses the root and its
> immediate children, but does not recur a
On 1/13/2011 9:07 AM, Marco Hornung wrote:
Hey,
--
question
--
How can I use a priority queue to schedule jobs wit
Hi there.
I'm trying to develop a program like family tree maker. I have all
information, so there is no need to search on the net. This must be
something like trees. Can someone help me? I'm at the beginning.
Thanks.
--
Ata J. Tabrizi
atae.tabr...@metu.edu.tr
--
http://mail.python.org/mailman/li
Hey,
On 14 Jan 2011 16:07:12 GMT
Steven D'Aprano wrote:
>
> > I also see no reason to reply to a simple question with such
> > discourtesy, and cannot understand why someone would be so aggressive to
> > a stranger.
>
> If you think my reply was aggressive and discourteous, you've got a lot
>
Hello all , I have implemented Elliptic curve prime factorisation
using wikipedia [
http://en.wikipedia.org/wiki/Lenstra_elliptic_curve_factorization].
I think that this code is not optimised and posting for further
improvement. Feel free to comment and if you have any link regarding
Elliptic curv
On Jan 14, 7:39 pm, Ata Jafari wrote:
> Hi there.
> I'm trying to develop a program like family tree maker. I have all
> information, so there is no need to search on the net. This must be
> something like trees. Can someone help me? I'm at the beginning.
> Thanks.
>
> --
> Ata J. Tabrizi
> atae.t
On Fri, 2011-01-14 at 10:57 -0800, John Nagle wrote:
> On 1/13/2011 9:07 AM, Marco Hornung wrote:
> I want to run several jobs on a server. The jobs are being sent by
> users. However, all jobs have a different priority, and high-priority
> jobs should be processed before any low-priority job ge
On Fri, Jan 14, 2011 at 7:52 AM, Cun Zhang wrote:
> Hi,all
> I hope use cStringIO to create virtual file, but my customed function which
> is from a shared library imported by ctypes
> just accepts a filename(string type) as parameter.
>
> So I'm wondering whether there is any method that make the
In article ,
Adam Skutt wrote:
>
>Replacing TkInter with some sort of minimized wxwidgets is a dumb idea
>for some very obvious reasons, reasons that are obvious if you simply
>look at a widget gallery and then the applications you run on your own
>computer. Quite honestly, if you're not capabl
On 14-Jan-11 14:47 PM, Antoine Pitrou wrote:
Hey,
On 14 Jan 2011 16:07:12 GMT
Steven D'Aprano wrote:
I also see no reason to reply to a simple question with such
discourtesy, and cannot understand why someone would be so aggressive to
a stranger.
If you think my reply was aggressive and d
some extempore thought.
Do you know what is CGI?
Worked with Mathematica for 5 hours yesterday. Fantastic! This old
hand can still do something! lol. My plane curve packages soon to be
out n am gonna be rich.
...gosh what godly hours i've spend on Mathematica in 1990s. Surprised
to find that i e
On Wed, Dec 29, 2010 at 5:03 PM, rantingrick wrote:
> On Dec 29, 6:41 pm, Gerry Reno wrote:
>> Also, what do you think about frameworks such as pyjamas? It lets you
>> write in python and compiles everything down to Javascript so it can be
>> used across the Web as well as on the desktop.
>
> H
On Jan 10, 1:43 pm, Alice Bevan–McGregor wrote:
> On 2011-01-10 13:02:09 -0800, MRAB said:
>
> Wikipedia is a Wiki; everyone is free to contribute and correct mistakes.
>
> - Alice.
Except for some of us.
I tried to make a correction to a chemistry Wikipedia entry several
months back. I
I think you need to create a wxApp first. Try adding app = wx.PySimpleApp() at
the beginning.
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 14 Jan 2011 20:47:35 +0100, Antoine Pitrou wrote:
> You would never have reacted this way if the same question had been
> phrased by a regular poster here (let alone on python-dev). Taking cheap
> shots at newcomers is certainly not the best way to welcome them.
You're absolutely correct.
> Seriously, get off of WoW and go write some code. If you'd spent the
> last year programming instead of doing your best Xah Lee impression you
> might have actually made some progress on this.
I'm curious, is Xah Lee some sort of a Usenet meme? Cause this is not the
first time I see his name in
On Jan 14, 8:10 pm, Steven D'Aprano wrote:
> The only other person I can see who has attempted to actually help the OP
> is Stefan Behnel, who tried to get more information about the problem
> being solved in order to better answer the question. The OP has, so far
> as I can see, not responded, al
On 01/14/2011 12:51 PM, Chris Rebert wrote:
On Fri, Jan 14, 2011 at 7:52 AM, Cun Zhang wrote:
Hi,all
I hope use cStringIO to create virtual file, but my customed function which
is from a shared library imported by ctypes
just accepts a filename(string type) as parameter.
So I'm wondering wheth
On 14 Jan 2011 22:10:02 GMT
Steven D'Aprano wrote:
>
> This is good, helpful advice, and far more useful to the OP than just
> ignoring his post. You have jumped to his defense (or rather, you have
> jumped to criticise me) but I see that you haven't replied to his
> question or given him any
On Fri, 14 Jan 2011 06:29:27 -0800 (PST)
leoboiko wrote:
>
> And it generally doesn’t try to pick good places to break lines
> at all, just making the assumption that 1 character = 1 column
> and that breaking on ASCII whitespaces/hyphens is enough. We
> can’t really blame textwrap for that, it
try http://gramps-project.org/, which is created in python.. :)
On Fri, Jan 14, 2011 at 1:39 PM, Ata Jafari wrote:
> Hi there.
> I'm trying to develop a program like family tree maker. I have all
> information, so there is no need to search on the net. This must be
> something like trees. Can so
- Original message -
> Hi there.
> I'm trying to develop a program like family tree maker. I have all
> information, so there is no need to search on the net. This must be
> something like trees. Can someone help me? I'm at the beginning.
> Thanks.
>
Family trees are nothing like trees, a
On Fri, 14 Jan 2011 14:26:09 -0800, leoboiko wrote:
...
> As for taking the time to provide information, I wonder if there was any
> technical problem that prevented you from seeing my reply to Stefan,
> sent Jan 14, 12:29PM?
Presumably, since I haven't got it in my news client. This is not the
On Fri, 14 Jan 2011 11:52:21 -0800, mukesh tiwari wrote:
> Hello all , I have implemented Elliptic curve prime factorisation using
> wikipedia [
> http://en.wikipedia.org/wiki/Lenstra_elliptic_curve_factorization]. I
> think that this code is not optimised and posting for further
> improvement. Fe
On 2011-01-14, Ata Jafari wrote:
> I'm trying to develop a program like family tree maker. I have all
> information, so there is no need to search on the net. This must be
> something like trees. Can someone help me? I'm at the beginning.
I don't know anything specific about family tree software
On Fri, Jan 14, 2011 at 11:52 AM, mukesh tiwari
wrote:
> Hello all , I have implemented Elliptic curve prime factorisation
> using wikipedia [
> http://en.wikipedia.org/wiki/Lenstra_elliptic_curve_factorization].
> I think that this code is not optimised and posting for further
> improvement. Fee
On Jan 15, 7:02 am, Steven D'Aprano wrote:
> On Fri, 14 Jan 2011 11:52:21 -0800, mukesh tiwari wrote:
> > Hello all , I have implemented Elliptic curve prime factorisation using
> > wikipedia [
> >http://en.wikipedia.org/wiki/Lenstra_elliptic_curve_factorization]. I
> > think that this code is not
On Jan 10, 9:24 pm, Dan Stromberg wrote:
> About JavaScript's popularity:
> 1) I've been getting the impression that JavaScript is popular in a
> manner similar to how x86 machine language is popular: That is, it's
> used all over, but few people hand code it (though admittedly, there
> are proba
61 matches
Mail list logo