Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Stefan Behnel
Ramchandra Apte, 02.09.2012 08:10: >> That's reason enough for it. Do you plan to port all the standard > python modules as well, though? > > Well, it should be quite easy because most of the _modules are either C > accelerator (which there is no need to port) or a C wrapper (which should be >

Cython 0.17 released

2012-09-01 Thread Stefan Behnel
Hello everyone, on behalf of the Cython project team, I'm proud to announce the final release of Cython 0.17. This is a major step forward in the development of the Cython programming language that will make life easier for a lot of users, rounds up some rough edges of the compiler and adds (preli

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Ramchandra Apte
On Sunday, 2 September 2012 11:18:38 UTC+5:30, Michael Torrie wrote: > On 09/01/2012 09:15 PM, Ramchandra Apte wrote: > > > It converts to *pure* C/C++ *without* using Python or its API so that it > > can be the same speed as C/C++ > > > > Sounds like a fun project for you. I hope you learn

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Ramchandra Apte
>That's reason enough for it. Do you plan to port all the standard python modules as well, though? Well, it should be quite easy because most of the _modules are either C accelerator (which there is no need to port) or a C wrapper (which should be trivial to port) -- http://mail.python.org/ma

Re: Accessing AST at runtime

2012-09-01 Thread Terry Reedy
On 9/1/2012 10:30 PM, alessandromour...@googlemail.com wrote: Hi, I would like to access the AST of a python object at runtime. I mean, if I have this: def f(x): return x*x/2 Is there any way to interrogate the object f to find out the AST of the expression x*x/2 ? Of course if the definition

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Michael Torrie
On 09/01/2012 09:15 PM, Ramchandra Apte wrote: > It converts to *pure* C/C++ *without* using Python or its API so that it can > be the same speed as C/C++ Sounds like a fun project for you. I hope you learn a lot doing it. That's reason enough for it. Do you plan to port all the standard python

Re: Curses unicode support

2012-09-01 Thread cjgohlke
On Saturday, September 1, 2012 3:41:04 PM UTC-7, Steven D'Aprano wrote: > Thanks to Victor Stinner, the curses module now has improved Unicode > > support. > > > > http://mail.python.org/pipermail/python-dev/2012-September/121569.html > > > > Victor has asked for testers to report any bugs

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Ramchandra Apte
On Tuesday, 31 July 2012 18:16:27 UTC+5:30, Stefan Behnel wrote: > Stefan Behnel, 31.07.2012 07:23: > > > From a look at the source code, it seems hard to bring it together with > > > anything. It looks very monolithic. > > > > Hmm, sorry, I mixed it up with "2c.py", which is yet another of t

Re: interfacing with x86_64 assembler

2012-09-01 Thread Ramchandra Apte
On Sunday, 2 September 2012 06:06:06 UTC+5:30, Chris Angelico wrote: > On Sun, Sep 2, 2012 at 10:10 AM, John Ladasky > > wrote: > > > I haven't seen this joke on the Net in years, does anyone still remember it? > > > > > > "C combines the power of assembly language with the readability and >

Re: Accessing AST at runtime

2012-09-01 Thread Ramchandra Apte
On Sunday, 2 September 2012 08:00:59 UTC+5:30, (unknown) wrote: > Hi, > > > > I would like to access the AST of a python object at runtime. I mean, if I > have this: > > > > def f(x): return x*x/2 > > > > Is there any way to interrogate the object f to find out the AST of the > expressi

Accessing AST at runtime

2012-09-01 Thread alessandromoura35
Hi, I would like to access the AST of a python object at runtime. I mean, if I have this: def f(x): return x*x/2 Is there any way to interrogate the object f to find out the AST of the expression x*x/2 ? Of course if the definition of f were in a file, I could use the ast module to parse it;

Re: Looking for an IPC solution

2012-09-01 Thread Aaron Brady
On Friday, August 31, 2012 2:22:00 PM UTC-5, Laszlo Nagy wrote: > There are just so many IPC modules out there. I'm looking for a solution > > for developing a new a multi-tier application. The core application will > > be running on a single computer, so the IPC should be using shared > > me

Re: interfacing with x86_64 assembler

2012-09-01 Thread Chris Angelico
On Sun, Sep 2, 2012 at 10:10 AM, John Ladasky wrote: > I haven't seen this joke on the Net in years, does anyone still remember it? > > "C combines the power of assembly language with the readability and > maintainability of assembly language." Seen it, and it has validity. But I'd rather work w

Re: interfacing with x86_64 assembler

2012-09-01 Thread John Ladasky
I haven't seen this joke on the Net in years, does anyone still remember it? "C combines the power of assembly language with the readability and maintainability of assembly language." -- http://mail.python.org/mailman/listinfo/python-list

ANN: A new version (0.3.1) of the Python module which wraps GnuPG has been released.

2012-09-01 Thread Vinay Sajip
A new version of the Python module which wraps GnuPG has been released. What Changed? = This is a minor enhancement and bug-fix release. See the project website ( http://code.google.com/p/python-gnupg/ ) for more information. Summary: Better support for status messages from GnuPG. Sup

Re: Async client for PostgreSQL?

2012-09-01 Thread jwp
On Friday, August 31, 2012 10:17:18 PM UTC-7, Laszlo Nagy wrote: > Is there any extension for Python that can do async I/O for PostgreSQL As others point out, the easiest route is using one of the blocking drivers with threads and "emulate" async operations. However, the low-level parts of py-p

Re: Async client for PostgreSQL?

2012-09-01 Thread Werner Thie
On 9/1/12 9:28 AM, Laszlo Nagy wrote: Hi does running on tornado imply that you would not consider twisted http://twistedmatrix.com ? If not, twisted has exactly this capability hiding long running queries on whatever db's behind deferToThread(). All right, I was reading its documentation h

Re: Async client for PostgreSQL?

2012-09-01 Thread Laszlo Nagy
Hi does running on tornado imply that you would not consider twisted http://twistedmatrix.com ? If not, twisted has exactly this capability hiding long running queries on whatever db's behind deferToThread(). All right, I was reading its documentation http://twistedmatrix.com/documents/10

Re: PipeController v0.1 - experimental tool to simulate simple UNIX-style pipes in Python

2012-09-01 Thread Ian Kelly
Resending to the list... On Sep 1, 2012 12:19 PM, "Ian Kelly" wrote: > On Sep 1, 2012 9:37 AM, "Ramchandra Apte" wrote: > > Doesn't the pipes module already do this? > > No, that deals with actual Unix pipes. This appears to be about pipelined > processing within a single program and not IPC; th

Re: Async client for PostgreSQL?

2012-09-01 Thread Werner Thie
On 8/31/12 7:17 PM, Laszlo Nagy wrote: Is there any extension for Python that can do async I/O for PostgreSQL with tornadoweb's ioloop? Something like: class MainHandler(tornado.web.RequestHandler): @tornado.web.asynchronous def get(self): pg_connection.(long_taking_query_sql,par

Re: KAJOL SEX VIDEOS'''''''''''''''''''

2012-09-01 Thread raipervaiz786
On Thursday, August 2, 2012 9:35:25 PM UTC+5, devi wrote: > KAJAL SEX VIDEOS > > http://maxworkerds.co.cc -- http://mail.python.org/mailman/listinfo/python-list

Re: PipeController v0.1 - experimental tool to simulate simple UNIX-style pipes in Python

2012-09-01 Thread Ramchandra Apte
On Friday, 31 August 2012 03:27:54 UTC+5:30, vasudevram wrote: > I wrote PipeController recently to experiment with doing UNIX-style pipes in > Python. > > > > Blog post about it: > > > > http://jugad2.blogspot.in/2012/08/pipecontroller-v01-released-simulating.html > > > > The blog post

Re: interfacing with x86_64 assembler

2012-09-01 Thread Ramchandra Apte
On Friday, 31 August 2012 19:28:11 UTC+5:30, Grant Edwards wrote: > On 2012-08-31, Mark Lawrence wrote: > > > On 31/08/2012 14:40, lipska the kat wrote: > > > > >> I was hacking away at some x86_64 assembler today > > >> when I found myself obsessively indenting my code > > >> by EXACTLY 4

Twisted 12.2.0 released

2012-09-01 Thread Ashwini Oruganti
On behalf of Twisted Matrix Laboratories, I am honored to announce the release of Twisted 12.2. Highlights for this release include: * To be able to work on Python3 support, Python 2.5 is no longer supported. * twisted.mail.imap4 now serves BODYSTRUCTURE responses which provide more informat

Re: Looking for an IPC solution

2012-09-01 Thread Wolfgang Keller
> There are just so many IPC modules out there. I'm looking for a > solution for developing a new a multi-tier application. The core > application will be running on a single computer, so the IPC should > be using shared memory (or mmap) and have very short response times. Probably the fastest I/R

Re: Tkinter bug in Entry widgets on OS X

2012-09-01 Thread Arnaud Delobelle
On 1 September 2012 11:30, Peter Otten <__pete...@web.de> wrote: > Arnaud Delobelle wrote: >> It would be good if I could intercept the key press event and cancel its >> action on the Entry widget. It's easy to intercept the key event, but I >> haven't found out how to prevent the funny characters

Re: to know binary

2012-09-01 Thread Laszlo Nagy
On 2012-09-01 06:15, contro opinion wrote: there is a only line in the file nanmed test: 1234 when i open it whit xxd xxd test what i get is : 000: 3132 3334 0a 1234. can you explain it ? At offset zero (00): chr(0x31) + chr(0x32)+ chr(0x33)+ chr(0x33)+ chr

Re: how to get character hex number?

2012-09-01 Thread Tim Chase
On 09/01/12 03:49, Mark Lawrence wrote: > On 01/09/2012 04:50, Tim Chase wrote: >> Well, in 3.1.3 at least, using the u"..." notation dies on me with >> an invalid syntax. > > The u"..." notation has been reintroducd for Python 3.3 Nice to know--it makes writing backwards compat. code just a bit

Re: Tkinter bug in Entry widgets on OS X

2012-09-01 Thread Peter Otten
Arnaud Delobelle wrote: > On Friday, 31 August 2012, Dennis Lee Bieber wrote: > >> On Fri, 31 Aug 2012 15:41:01 GMT, Alister >> >> > >> declaimed the following in gmane.comp.python.general: >> >> > I agree that it is unexpected in a single line entry box but isn't the >> 1st >> > rule of user in

Re: Tkinter bug in Entry widgets on OS X

2012-09-01 Thread Arnaud Delobelle
On Friday, 31 August 2012, Dennis Lee Bieber wrote: > On Fri, 31 Aug 2012 15:41:01 GMT, Alister > > > > declaimed the following in gmane.comp.python.general: > > > I agree that it is unexpected in a single line entry box but isn't the > 1st > > rule of user interface design to assume the user is

Re: how to get character hex number?

2012-09-01 Thread Mark Lawrence
On 01/09/2012 04:50, Tim Chase wrote: Well, in 3.1.3 at least, using the u"..." notation dies on me with an invalid syntax. However, as Ian suggests, you can do my_str = "english" "".join("%02x" % c for c in my_str.encode("ascii")) or whatever other encoding you want instead of "ascii".