Re: Wing vs Netbeans IDE?

2009-05-07 Thread nnp
I've tried Wing but not NetBeans. I would personally recommend Eclipse
with the PyDev plugin. I prefer it to Wing by *far* and if you prefer
Eclipse to NetBeans for Java then it might be worth your while
checking it out. If you take a few minutes to learn a few of the
shortcuts in Eclipse you can really cut down the time to do a lot of
administrative/organisational tasks.

On Windows I remember Eclipse + Pydev being a bit of a memory hog but
on OS X and Linux it works smoothly.

On Thu, May 7, 2009 at 6:24 PM, Lawrence Hanser lhan...@gmail.com wrote:
 Dear Colleagues,

 I have been using NetBeans for a month or so now and am reasonably
 happy with it.  I'm considering other options, and ran across Wing.
 I'm interested in opinions about NetBeans and Wing as IDE for Python.

 Thanks,

 Larry
 --
 http://mail.python.org/mailman/listinfo/python-list


-- 
http://www.unprotectedhex.com
http://www.smashthestack.org
--
http://mail.python.org/mailman/listinfo/python-list


Working with propositional formulae in Python

2009-02-10 Thread nnp
Hey,

I'm currently working with propositional boolean formulae of the type
'A  (b - c)' (for example). I was wondering if anybody knows of a
Python library to create parse trees and convert such formulae to
conjunctive, disjunctive and Tseitin normal forms?

Cheers,
nnp

-- 
http://www.unprotectedhex.com
http://www.smashthestack.org
--
http://mail.python.org/mailman/listinfo/python-list


Re: Is 3.0 worth breaking backward compatibility?

2008-12-07 Thread nnp
Have a read of this http://www.b-list.org/weblog/2008/dec/05/python-3000/

It's a response to questions similar to yours by James Bennett

On Sun, Dec 7, 2008 at 7:22 PM, walterbyrd [EMAIL PROTECTED] wrote:
 IMO: breaking backward compatibility is a big deal, and should only be
 done when it is seriously needed.

 Also, IMO, most of, if not all, of the changes being made in 3.0 are
 debatable, at best. I can not think of anything that is being changed
 that was really a show stopper anyway.

 At best, I am a casual python user, so it's likely that I am missing
 something.
 --
 http://mail.python.org/mailman/listinfo/python-list




-- 
http://www.unprotectedhex.com
http://www.smashthestack.org
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python queue madness

2008-04-03 Thread nnp
Hrm, it sounds likely that I am using something mutable and that is messing
things up. I'll look into it.

As for providing sample code to recreate the problem, I would find it
difficult I think to provide a simple example that accurately reflects what
is truly going on so there wouldn't be much point.

Cheers,
nnp

On Thu, Apr 3, 2008 at 5:39 AM, Gabriel Genellina [EMAIL PROTECTED]
wrote:

 En Wed, 02 Apr 2008 10:52:08 -0300, nnp [EMAIL PROTECTED] escribió:

  Basically I have a system where component 1, 2 and 3 communicate with
  each
  other using two Python Queues, we'll call them R and W. Here is what is
  happening
 
  1 writes data to W and reads from R
  2 reads data from W and writes data it receives from 3 to R (but not
  data it
  receives from 1)
  3 writes to W
 
  The problem is that data being written by 1 to W is appearing back on R.
  I
  have verified that 1 never writes to R and that 2 never writes data it
  receives from 1 to R, by overwriting the put() and put_nowait() methods
  of
  R.
 
  Is there any other way for data to get onto a queue or are there any
  known
  bugs with Python's Queue module that could lead to this kind of
  behaviour?

 Yes, your own code :)
 Perhaps you put mutable objects into the queue, like a list? and later
 modify the list in another place?

 --
 Gabriel Genellina

 --
 http://mail.python.org/mailman/listinfo/python-list




-- 
http://www.smashthestack.org
http://www.unprotectedhex.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Python queue madness

2008-04-02 Thread nnp
Hey guys,

Basically I have a system where component 1, 2 and 3 communicate with each
other using two Python Queues, we'll call them R and W. Here is what is
happening

1 writes data to W and reads from R
2 reads data from W and writes data it receives from 3 to R (but not data it
receives from 1)
3 writes to W

The problem is that data being written by 1 to W is appearing back on R. I
have verified that 1 never writes to R and that 2 never writes data it
receives from 1 to R, by overwriting the put() and put_nowait() methods of
R.

Is there any other way for data to get onto a queue or are there any known
bugs with Python's Queue module that could lead to this kind of behaviour?

-nnp

-- 
http://www.smashthestack.org
http://www.unprotectedhex.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Issue with select.select() and missing data

2008-03-23 Thread nnp
Hi guys,

I have an issue when using select.select(). I have an application that
creates sockets then sends data on them. These sockets are then passed off
to a listener which uses select.select() to detect any responses. For some
reason every socket can only receive one response before my computer begins
to issue ICMP port unreachable messages for that port. The code doing the
listening is below. No sockets are returned in the broken list. Can anyone
spot anything stupid I'm doing in the following code or think of any reason
for this issue?

def __listen(self):

while self.listening and len(self.notify_q_list) != 0:
self.lock.acquire()

r_read, r_write, broken = select(self.socket_list, [], [], .1)
for sock in r_read:
data, addr = sock.recvfrom(2**16)

for function_tuple in self.notify_q_list:
function_tuple[0].put((True, data, 1, addr, 5.0))

self.lock.release()
time.sleep(.1)

for sock in self.socket_list:
sock.close()

self.socket_list = []

Thanks,
nnp

-- 
http://www.smashthestack.org
http://www.unprotectedhex.com
-- 
http://mail.python.org/mailman/listinfo/python-list