Re: C Python extension to export an Function

2016-09-01 Thread dieter
Ganesh Pal writes: > ... > Thanks stefan and Gollwitzer , good to know there are many ways to do this > i.e via cython or SWIG but the C/Python API > is probably the most widely used method > - not for it’s simplicity but for the fact that you can manipulate

Python 3 at Facebook

2016-09-01 Thread Terry Reedy
https://www.youtube.com/watch?v=nRtp9NgtXiA Jason Fried explains how he helped advance 'modern Python', 3.x, from 'impossible' in 2013 to the 'default for new code' today. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: C Python extension to export an Function

2016-09-01 Thread Christian Gollwitzer
Hi Ganesh, Am 01.09.16 um 17:24 schrieb Ganesh Pal: Thanks stefan and Gollwitzer , good to know there are many ways to do this i.e via cython or SWIG but the C/Python API is probably the most widely used method - not for it’s simplicity but for the fact th

Re: C Python extension to export an Function

2016-09-01 Thread Pavel S
If you're familiar with C++, I recommend to have a look at Boost::Python. Sample program: #include #include void world() { std::cout << "hello world" << std::endl; } BOOST_PYTHON_MODULE( hello ) { using namespace ::boost::python; def( "world", &world ); } Usage: python -c "i

Re: C Python extension to export an Function

2016-09-01 Thread Stefan Behnel
Ganesh Pal schrieb am 01.09.2016 um 17:24: > Thanks stefan and Gollwitzer , good to know there are many ways to do this > i.e via cython or SWIG but the C/Python API > is probably the most widely used method It certainly was, years ago, but I honestly doubt

Re: C Python extension to export an Function

2016-09-01 Thread Ganesh Pal
Thanks stefan and Gollwitzer , good to know there are many ways to do this i.e via cython or SWIG but the C/Python API is probably the most widely used method - not for it’s simplicity but for the fact that you can manipulate python objects in your C code. I

Re: Issues with "twistd" in Twisted 16.4.0

2016-09-01 Thread Yuri
On 01/09/16 20:17, Kevin Conway wrote: Hi, you might not get much of an answer for this on the Python mailing list. I suggest sending your question to the Twisted mailing list instead: https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python. On Thu, Sep 1, 2016 at 7:12 AM juraseg wrot

Re: Issues with "twistd" in Twisted 16.4.0

2016-09-01 Thread Kevin Conway
Hi, you might not get much of an answer for this on the Python mailing list. I suggest sending your question to the Twisted mailing list instead: https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python. On Thu, Sep 1, 2016 at 7:12 AM juraseg wrote: > Also, I've tried to find anything i

Re: C Python extension to export an Function

2016-09-01 Thread Christian Gollwitzer
Am 01.09.16 um 14:30 schrieb Ganesh Pal: On Thu, Sep 1, 2016 at 12:32 PM, dieter wrote: Ganesh Pal writes: Iam pretty new to C Python extension , I was able to export few simple modules to python and it look like the cool thing to do ... Maybe, it is a good idea to have a look at "cython"

Re: C Python extension to export an Function

2016-09-01 Thread Stefan Behnel
Ganesh Pal schrieb am 01.09.2016 um 14:30: > On Thu, Sep 1, 2016 at 12:32 PM, dieter wrote: >> Ganesh Pal writes: >>> Iam pretty new to C Python extension , I was able to export few simple >>> modules to python and it look like the cool thing to do ... >> >> Maybe, it is a good idea to have a look

Re: C Python extension to export an Function

2016-09-01 Thread Ganesh Pal
On Thu, Sep 1, 2016 at 12:32 PM, dieter wrote: > Ganesh Pal writes: > > > Iam pretty new to C Python extension , I was able to export few simple > > modules to python and it look like the cool thing to do ... > > Maybe, it is a good idea to have a look at "cython". > > "cython" is a compiler. It

Re: Issues with "twistd" in Twisted 16.4.0

2016-09-01 Thread juraseg
Also, I've tried to find anything in Twisted bug tracker, but I can't find my way in there. -- https://mail.python.org/mailman/listinfo/python-list

Issues with "twistd" in Twisted 16.4.0

2016-09-01 Thread juraseg
Hi all I couldn't find Twisted-specific group, so posting here. Recently Twisted 16.4.0 got released. Yesterday I've tried to upgrade it for my apps and got an error. I've created simple example, which demonstrates it. File service.tac: # You can run thi

Re: Variables visibility for methods

2016-09-01 Thread juraseg
среда, 31 августа 2016 г., 14:09:16 UTC+7 пользователь ast написал: > Hello > > I made few experiments about variables visibility > for methods. > > class MyClass: > a = 1 > def test(self): > print(a) > > obj = MyClass() > obj.test() > > Traceback (most recent call last): > Fi

how to set paramiko to use ssh version 1?

2016-09-01 Thread meInvent bbird
how to set paramiko to use ssh version 1? -- https://mail.python.org/mailman/listinfo/python-list

Re: The Joys Of Data-Driven Programming

2016-09-01 Thread Gregory Ewing
Paul Moore wrote: Is there any "make replacement" out there that focuses more on named sets of actions (maybe with prerequisite/successor type interdependencies), and less on building file dependency graphs? Possibly Gradle might qualify. I only have a hazy understanding of it (basically just w

Re: What's the best way to minimize the need of run time checks?

2016-09-01 Thread Chris Angelico
On Thu, Sep 1, 2016 at 5:12 PM, Gregory Ewing wrote: > Chris Angelico wrote: > >> You might have won the 100m dash, except that we couldn't verify your >> velocity of locomotion without a... run time check. Badumtish. > > > All is not lost. You just need to devise a type system > capable of provin

Re: What's the best way to minimize the need of run time checks?

2016-09-01 Thread Gregory Ewing
Chris Angelico wrote: You might have won the 100m dash, except that we couldn't verify your velocity of locomotion without a... run time check. Badumtish. All is not lost. You just need to devise a type system capable of proving that his time is faster than any other runner in all possible rac

Re: [OT] Altair

2016-09-01 Thread Gregory Ewing
Grant Edwards wrote: The file containing the list of coordinates generated by a CAD program for holes in a circuit board is still often referred to as a "drill tape". Yep, and we talk about "core" memory, use a "tape archive" program to produce compressed files, and have "drives" with no movin

Re: C Python extension to export an Function

2016-09-01 Thread dieter
Ganesh Pal writes: > Iam pretty new to C Python extension , I was able to export few simple > modules to python and it look like the cool thing to do ... Maybe, it is a good idea to have a look at "cython". "cython" is a compiler. It translates Python code enhanced with special annotations into

Re: [OT] Altair

2016-09-01 Thread Gregory Ewing
Christopher Reimer wrote: The first time I came across a paper tape reader when I visited the university as a teenager in 1984. A CNC machine read the paper tape to drill six holes in a piece of metal. I think that would have just been called NC (Numerical Control). CNC (Computer Numerical Con