dieter, 09.05.2013 07:54:
> jamadagni writes:
>> ...
> I cannot help you with "ctypes". But, if you might be able to use
> "cython", then calling callbacks is not too difficult
+1 for using Cython. It also has (multi-)source level gdb support, which
greatly helps in debugging crashes like this one
Serge WEINSTOCK, 16.05.2013 10:55:
> I'm currently writing a C extension module for python using the "raw" C-API.
> I would like to be able to define "nested classes" like in the following
> python code
>
>
> class A:
> class B:
>
Irmen de Jong, 05.07.2013 19:12:
> On 5-7-2013 18:59, Steven D'Aprano wrote:
>> I then block until the threads are all done:
>>
>> while any(t.isAlive() for t in threads):
>> pass
>>
>>
>> Is that the right way to wait for the threads to be done? Should I stick
>> a call to time.sleep() inside
Rotwang, 06.07.2013 21:51:
> On 06/07/2013 20:38, Terry Reedy wrote:
>> "rms has crippling RSI" (anonymous, as quoted by Skip).
>> [...]
>> Let us try Google. Type in RSI and it offers 'RSI medications' as a
>> choice. Sound good, as it will eliminate all the companies with those
>> initials. The t
Hi,
I've been looking for a Python package for formatting international dates,
numbers and monetary values in a web context for a couple of days now, but
the only thing that I could find that looked suitable at first sight was
the Babel package, of which the last release dates back two years, with
Christian Gollwitzer, 10.07.2013 09:03:
> http://www.lua.org/
>
> Very compact (a static binary is about ~200K), clean synatx, relatively
> fast. OTOH, the standard library is of course not so extensive as for Tcl
> or Python.
"not so extensive" is a rather bold understatement. ISTM that most pro
Fábio Santos, 11.07.2013 10:16:
> Guido tweeted that yesterday. It seems interesting. Although I'm not
> comfortable using a subset of the language.
>
> They seem to want to kill the GIL. This could get much more popular when
> they do.
Then don't forget to also take a look at Cython.
Stefan
-
David T. Ashley, 12.07.2013 03:19:
> On Wed, 10 Jul 2013 14:38:51 -0500, Johann Hibschman wrote:
>
>> David T. Ashley writes:
>>
>>> We develop embedded software for 32-bit micros using Windows as the
>>> development platform.
>> ...
>>> I know that Tcl/Tk would do all of the above, but what about
Devyn Collier Johnson, 20.07.2013 03:06:
> I am making a chatbot that I host on Launchpad.net/neobot. I am currently
> converting the engine from BASH code to Python3. I need to convert this for
> cross-platform compatibility. I do not need to use Mplayer; I just show the
> below code to give other
pablobarhamal...@gmail.com, 21.07.2013 12:48:
> El domingo, 21 de julio de 2013 12:31:42 UTC+2, Steven D'Aprano escribió:
>> [steve@ando ~]$ python3.3 -m timeit -s "x = 2.357e7" "x**0.5"
>> 100 loops, best of 3: 0.319 usec per loop
>> [steve@ando ~]$ python3.3 -m timeit -s "x = 2.357e7" -s "fr
Devyn Collier Johnson, 20.07.2013 14:25:
> On 07/20/2013 12:21 AM, Stefan Behnel wrote:
>> Devyn Collier Johnson, 20.07.2013 03:06:
>>> I am making a chatbot that I host on Launchpad.net/neobot. I am currently
>>> converting the engine from BASH code to Python3.
Chris Angelico, 24.07.2013 18:34:
> On Thu, Jul 25, 2013 at 1:57 AM, Ethan Furman wrote:
>> On 07/24/2013 05:51 AM, Oscar Benjamin wrote:
>>> What do you mean? Why would you want to create a temporary list just to
>>> iterate over it explicitly or implicitly (set,
>>> sorted, max,...)?
>>
>> You wo
Peter Otten, 24.07.2013 08:23:
> Ethan Furman wrote:
>> So, my question boils down to: in Python 3 how is dict.keys() different
>> from dict? What are the use cases?
>
> I just grepped through /usr/lib/python3, and could not identify a single
> line where some_object.keys() wasn't either wrappe
Fábio Santos, 16.07.2013 00:54:
>> On 07/15/2013 08:36 AM, Steven D'Aprano wrote:
>>>
>>> Devyn,
>>>
>>> 8 Dihedral is our resident bot, not a human being. Nobody knows who
>>> controls it, and why they are running it, but we are pretty certain that
>>> it is a bot responding mechanically to ke
Ethan Furman, 24.07.2013 20:31:
> On 07/24/2013 10:23 AM, Stefan Behnel wrote:
>> Peter Otten, 24.07.2013 08:23:
>>> Ethan Furman wrote:
>>>>
>>>> So, my question boils down to: in Python 3 how is dict.keys() different
>>>> from dict? What ar
David M. Cotter, 26.07.2013 08:15:
> in my app i initialize python on the main thread, then immediately call
> PyEval_SaveThread() because i do no further python stuff on the main thread.
>
> then, for each script i want to run, i use boost::threads to create a new
> thread, then on that thread
David M. Cotter, 26.07.2013 19:28:
> DOH! as my second thread, i had been using a sample script that i had
> copy-pasted without much looking at it. guess what? it prints the time. and
> yes, it did "from time import time", which explains it all.
Ah, and you were using the same globals dict f
Steven D'Aprano, 28.07.2013 22:51:
> Calling Counter ends up calling essentially this code:
>
> for elem in iterable:
> self[elem] = self.get(elem, 0) + 1
>
> (although micro-optimized), where "iterable" is your data (lines).
> Calling the get method has higher overhead than dict[key], that
Serhiy Storchaka, 29.07.2013 21:37:
> 29.07.13 20:19, Ian Kelly написав(ла):
>> On Mon, Jul 29, 2013 at 5:49 AM, Joshua Landau wrote:
>>> Also, couldn't Counter just extend from defaultdict?
>>
>> It could, but I expect the C helper function in 3.4 will be faster
>> since it doesn't even need to ca
Stefan Behnel, 30.07.2013 08:39:
> Serhiy Storchaka, 29.07.2013 21:37:
>> 29.07.13 20:19, Ian Kelly написав(ла):
>>> On Mon, Jul 29, 2013 at 5:49 AM, Joshua Landau wrote:
>>>> Also, couldn't Counter just extend from defaultdict?
>>>
>>> It cou
Andrew Berg, 18.06.2012 21:24:
> Are there any tools out there that will parse a script and tell me if it
> is compatible with an arbitrary version of Python and highlight any
> incompatibilities? I need to check a few of my scripts that target 3.2
> to see if I can make them compatible with 3.0 an
Dave Angel, 21.06.2012 02:53:
> On 06/20/2012 07:30 PM, gmspro wrote:
>> Is python a interpreted or compiled language?
>
> Ian has given you a good answer. But since you mention java, I'd like
> to point out a few things that are different between the two
> environments. He and I are describing C
gmspro, 23.06.2012 09:02:
> I'm trying to understand the source code of python and how it works
> internally.
> But i can't understand the python C apis.
> Too much macro calling there and python C api.
> I can't understand those.
> I've also read the doc for python C api.
>
> What should i do? W
gmspro, 24.06.2012 10:01:
> Why are some methods/functions named in this way in python? __len__
>
> underscoreunderscoreNAMEunderscoreunderscore
>
> Is there any speciality of naming such methods?
Yes. Look up "special methods" in the documentation.
You may have noticed the correspondence betwe
gmspro, 24.06.2012 10:42:
> I see there are some files here started with underscore(_) , is there any
> convention of something for it?
>
> http://hg.python.org/cpython/file/3b7230997425/Modules
>
> _bisectmodule.c
> [...]
> _winapi.c
>
> Is there any convention or something?
Yes. Please read
gmspro, 24.06.2012 02:16:
> Why is python source code not available on github?
>
> Make it available on github so that we can git clone and work on source code.
github != git.
You can use git to work on the sources if you wish. Just install a
Mercurial plugin for it and clone the code from the s
Saurabh Kabra, 25.06.2012 05:37:
> I have written a script to map a 2D numpy array(A) onto another array(B) of
> different dimension. more than one element (of array A) are summed and
> mapped to each element of array B. To achieve this I create a list where I
> store the index of array A to be ma
gmspro, 24.06.2012 05:46:
> Why has python3 been created as a seperate language where there is still
> python2.7 ?
>
> What's the benifit to make python3 over python2.7 ? I have read this though:
> http://docs.python.org/release/3.0.1/whatsnew/3.0.html
>
> What's wrong editing/customizing/chang
Jeremiah Dodds, 26.06.2012 07:04:
> rantingrickjohn...@gmail.com writes:
>
>> On Monday, June 25, 2012 5:10:47 AM UTC-5, Michiel Overtoom wrote:
>>> It has not. Python2 and Python3 are very similar. It's not like if
>>> you learn Python using version 2, you have to relearn the language
>>> when yo
Devin Jeanpierre, 26.06.2012 08:15:
> On Mon, Jun 25, 2012 at 11:35 PM, Steven D'Aprano
>> Making print a statement in the first place was a mistake, but
>> fortunately it was a simple enough mistake to rectify once the need for
>> backward compatibility was relaxed.
>
> Hmmm, why is the function
J, 26.06.2012 18:30:
> def _reader(self, file, size=4096, delimiter=r"\n{2,}"):
> buffer_old = ""
> while True:
> buffer_new = file.read()
> print(type(buffer_new))
> if not buffer_new:
> break
> lines = re.split(delimi
Chris Angelico, 27.06.2012 13:02:
> On Wed, Jun 27, 2012 at 8:25 PM, Christian Tismer wrote:
>> I think, for the small importance of the print statement in code, it
>> would have made the transition easier, if python 3 was as flexible
>> as python 2.7, with a symmetric
>>
>> "from __past__ import p
Christian Tismer, 27.06.2012 15:15:
> print, function or not, is not important enough to enforce a rewrite
> everywhere because of syntax error. That hides the real semantic
> changes which _are_ important.
>
> So what I would have done is to let it work in an imperfect way. People
> then have the
Serhiy Storchaka, 28.06.2012 07:36:
> On 28.06.12 00:14, Terry Reedy wrote:
>> Another prediction: people who code Python without reading the manual,
>> at least not for new features, will learn about 'u' somehow (such as by
>> reading this list) and may do either of the following, both of which ar
Dan Stromberg, 01.07.2012 21:28:
> On Sun, Jul 1, 2012 at 11:58 AM, Thomas Jollans wrote:
>> On 07/01/2012 08:44 PM, Dan Stromberg wrote:
>>> IronPython, sadly, lacks a python standard library.
>>
>> Beg pardon?
>>
>> https://github.com/IronLanguages/main/tree/master/External.LCA_RESTRICTED/Languag
Miheer Dewaskar, 03.07.2012 13:11:
> I want to make a combinatorial game solver in python.The algorithm is to
> perform Depth First Search (DFS) on the states of the game.
> For DFS I,would need to keep a record of the visited states.What is the
> best data structure for it,keeping in mind that the
Paul Rubin, 04.07.2012 21:37:
> I just came across this (https://gist.github.com/1208215):
>
> import sys
> import ctypes
> pyint_p = ctypes.POINTER(ctypes.c_byte*sys.getsizeof(5))
> five = ctypes.cast(id(5), pyint_p)
> print(2 + 2 == 5) # False
> five.contents[five.content
Mark Lawrence, 10.07.2012 11:42:
> I recall reading in a book in the local library
> of a manager that wouldn't employ people unless they were wearing a new
> pair of shoes. Guess they didn't take many people on.
Managers tend to like wasting resources. Buying a new pair of shoes for
each job int
Martin P. Hellwig, 13.07.2012 09:39:
> On Friday, 13 July 2012 05:03:23 UTC+1, Temia Eszteri wrote:
>> I'm going to be looking into writing a wrapper for the Allegro 5 game
>> development libraries, either with ctypes or Cython. They technically
>> have a basic 1:1 ctypes wrapper currently, but I
Andrew Berg, 15.07.2012 10:34:
> This has probably been discussed before, but why is there an implicit
> conversion to a boolean in if and while statements?
There isn't. This has nothing to do with "if" or "while".
All objects have a truth value in Python, evaluating to True by default
(object),
gaodexiaozh...@gmail.com, 17.07.2012 10:35:
> hi,do you know the PyXML whether can be supported by Jython ?
PyXML is a dead project, don't use it.
You can use ElementTree in Jython, just as in Python.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Matej Cepl, 17.07.2012 11:39:
> On 17/07/12 10:35, gaodexiaozh...@gmail.com wrote:
>>> > I'm trying to parse an xml file with jython (not through java
>>> parsers
>>> > like xerces).
>
> https://code.google.com/p/jython-elementtree/ ???
Note that this ships with Jython 2.5.
Stefan
--
http://ma
Henrik Faber, 23.07.2012 13:23:
> I have a question of which I'm unsure if the specification guarantees
> it. With an arbitrary dictionaty d, are d.keys() and d.values()
> guaraneed to be in the same order? I.e. what I mean is:
>
> # For all dictionaries d:
> assert({ list(d.keys())[i]: list(d.val
Philipp Hagemeister, 23.07.2012 13:40:
> On 07/23/2012 01:23 PM, Henrik Faber wrote:
>> With an arbitrary dictionaty d, are d.keys() and d.values()
>> guaraneed to be in the same order?
>
> Yes. From the documentation[1]:
>
> If items(), keys(), values(), iteritems(), iterkeys(), and itervalues()
Jaroslav Dobrek, 26.07.2012 09:46:
> My problem is solved. What I need to do is explicitly decode text when
> reading it. Then I can catch exceptions. I might do this in future
> programs.
Yes, that's the standard procedure. Decode on the way in, encode on the way
out, use Unicode everywhere in be
Jaroslav Dobrek, 26.07.2012 12:51:
>>> try:
>>> for line in f: # here text is decoded implicitly
>>>do_something()
>>> except UnicodeDecodeError():
>>> do_something_different()
>
> the code above (without the brackets) is semantically bad: The
> exception is not caught.
Sure it is
Philipp Hagemeister, 26.07.2012 14:17:
> On 07/26/2012 01:15 PM, Stefan Behnel wrote:
>>> exits with a UnicodeDecodeError.
>> ... that tells you the exact code line where the error occurred.
>
> Which property of a UnicodeDecodeError does include that information?
>
lipska the kat, 29.07.2012 18:01:
> My most recent experience is with Java. The last project I was involved
> with included 6775 java source files containing 1,145,785 lines of code.
> How do I know this? because I managed to cobble together a python script
> that walks the source tree and counts t
Tim Chase, 29.07.2012 20:28:
> On 07/29/12 12:13, Michael Hrivnak wrote:
>> - Operating system installer: http://fedoraproject.org/wiki/Anaconda
>> - Software repository management: http://pulpproject.org/
>> - Software package installation:
>> http://en.wikipedia.org/wiki/Ubuntu_Software_Center
>>
Rodrick Brown, 30.07.2012 02:12:
> On Jul 29, 2012, at 12:07 PM, lipska the kat wrote:
>> I'm trying to understand where Python fits into the set of commonly
>> available, commercially used languages of the moment.
>
> Python is a glue language much like Perl was 10 years ago. Until the
> GIL is
alex23, 31.07.2012 02:16:
> On Jul 31, 2:42 am, MaxTheMouse wrote:
>> What is the difference between this and Shedskin? Shedskin being a
>> (restricted) python-to-C++ compiler. (http://code.google.com/p/
>> shedskin/) Is the goal to be able to handle any python code or a
>> subset?
>
> There's als
Paul Rubin, 31.07.2012 06:45:
> A real compiler (PyPy) will help Python performance far more than
> multi-core currently can.
That's too general a statement to be meaningful.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Rita, 31.07.2012 14:13:
> I recently inherented a large python process and everything is lovely. As a
> learning experience I would like to optimize the code so I ran it thru the
> profiler
>
> python -m cProfile myscript.py
>
> It seems majority of the time is taking in the deep copy but that se
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 those
Python-to-C compilers with an all too similar name.
https://code
Cyrille Leroux, 31.07.2012 17:01:
> I'm giving pip a try :
>
>
> 1/ Linux (debian lenny)
> - (as root) sh setuptools-0.6c11-py2.7.egg (ok)
> - (as root) cd pip-1.1 ; python setup.py install (ok)
> - pip : ImportError : No module named pkg_resources
> - damn, I guess it's going to be a pain, again
David, 01.08.2012 13:59:
> On 01/08/2012, lipska the kat wrote:
>> On 01/08/12 09:06, Mark Lawrence wrote:
>>>
>>> You complete ignoramus, if it gets poured in advance that's no good to
>>> anybody as it'll go flat. Has to stay in the pump until you're ready to
>>> drink it from the glass. Don't yo
rahul, 02.08.2012 11:50:
> When I use same code base for Python 3.x, then behavior is different.
You might want to take a look at Cython. It moves most of these "funny"
little details off your shoulders.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Prasad, Ramit, 03.08.2012 08:51:
>> I'm in stuck record mode here, but one of the things I really enjoy
>> about reading here is the way things do go off topic. IMHO makes for a
>> far more interesting experience. YMMV.
>
> +1
>
> Ramit
> This email is confidential and subject to important dis
Steven D'Aprano, 04.08.2012 08:15:
> Most people are aware, if only vaguely, of the big Four Python
> implementations:
>
> CPython, or just Python, the reference implementation written in C.
> IronPython, written in .NET.
> Jython, written in Java.
> PyPy, the optimizing implementation written in
Steven D'Aprano, 04.08.2012 09:49:
> On Sat, 04 Aug 2012 08:40:16 +0200, Stefan Behnel wrote:
>> And not to forget Cython, which is the only static Python compiler that
>> is widely used. Compiles and optimises Python to C code that uses the
>> CPython runtime
Mark Lawrence, 04.08.2012 12:05:
> I agree so it's off topic and can't be discussed here. Isn't that right,
> Stefan?
Hmm, in case you are referring to a recent friendly and diplomatic request
of mine regarding a couple of people who were burdening a public high
volume mailing list with a purely
Steven D'Aprano, 04.08.2012 12:54:
> Berp is based on the Glasgow Haskell Compiler, which is a modern,
> efficient, optimizing compiler capable of producing excellent quality
> machine code on Windows, Mac, Linux and many Unixes. It gives you all the
> advantages of a high-level language with hi
Thomas Rachel, 04.08.2012 14:51:
> Am 04.08.2012 11:10 schrieb Stefan Behnel:
>> As long as you don't use any features of the Cython language, it's plain
>> Python. That makes it a Python compiler in my eyes.
>
> Tell that the C++ guys. C++ is mainly a superset of
Stefan Behnel, 04.08.2012 15:53:
> Thomas Rachel, 04.08.2012 14:51:
>> Am 04.08.2012 11:10 schrieb Stefan Behnel:
>>> As long as you don't use any features of the Cython language, it's plain
>>> Python. That makes it a Python compiler in my eyes.
>>
Paul Rubin, 04.08.2012 17:59:
> Stefan Krah writes:
>> In the free software world, apparently many people like C. C is also
>> quite popular in the zero-fault software world: Several verification
>> tools do exist and Leroy et al. are writing a certified compiler for
>> C to plug the hole between t
Paul Rubin, 04.08.2012 20:18:
> Stefan Behnel writes:
>>> C is pretty poor as a compiler target: how would you translate Python
>>> generators into C, for example?
>> Depends. If you have CPython available, that'd be a straight forward
>> extension type.
Paul Rubin, 04.08.2012 22:43:
> Stefan Behnel writes:
>>> Calling CPython hardly counts as compiling Python into C.
>> CPython is written in C, though. So anything that CPython does can be
>> done in C. It's not like the CPython project used a completely unu
Paul Rubin, 05.08.2012 03:38:
> Steven D'Aprano writes:
>> Runtime optimizations that target the common case, but fall back to
>> unoptimized code in the rare cases that the optimization doesn't apply,
>> offer the opportunity of big speedups for most code at the cost of
>> trivial slowdowns whe
Jürgen A. Erhard, 05.08.2012 01:25:
> On Sat, Aug 04, 2012 at 08:40:16AM +0200, Stefan Behnel wrote:
>> Steven D'Aprano, 04.08.2012 08:15:
>>> Most people are aware, if only vaguely, of the big Four Python
>>> implementations:
>>
>> And not to fo
Stefan Behnel, 05.08.2012 07:46:
> Jürgen A. Erhard, 05.08.2012 01:25:
>> None of the other implementations require Python for actually
>> compiling or running Python source.
>
> Nuitka was on the list as well.
Oh, and Stackless was also on Steven's list, as well as W
alex23, 06.08.2012 05:40:
> On Aug 4, 4:15 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> But the Python ecosystem is a lot bigger than just those four. Here are
>> just a few other implementations that you might be interested in:
>
> There's also HotPy:
>
> http://code.google.co
Jürgen A. Erhard, 05.08.2012 14:28:
> On Sun, Aug 05, 2012 at 07:46:59AM +0200, Stefan Behnel wrote:
>> Jürgen A. Erhard, 05.08.2012 01:25:
>>> None of the other implementations require Python for actually
>>> compiling or running Python source.
>>
>> Nu
rusi, 07.08.2012 06:23:
> On Aug 4, 11:15 am, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> Most people are aware, if only vaguely, of the big Four Python
>> implementations:
>
> I think the question about where Cython fits into this, raises the
> need for a complementary list to Ste
Giacomo Alzetta, 10.08.2012 10:20:
> I'm trying to implement a c-extension which defines a new class(ModPolynomial
> on the python side, ModPoly on the C-side).
> At the moment I'm writing the in-place addition, but I get a *really* strange
> behaviour.
You should take a look at Cython. It makes
Giacomo Alzetta, 11.08.2012 08:21:
> I'd prefer to stick to Python and C, without having to put cython
> sources or cython-generated c modules (which I know are almost
> completely unreadable from a human point of view. Or at least the ones I
> saw).
And the cool thing is: you don't have to read t
Giacomo Alzetta, 11.08.2012 10:55:
> Il giorno sabato 11 agosto 2012 08:40:18 UTC+2, Stefan Behnel ha scritto:
>> Giacomo Alzetta, 11.08.2012 08:21:
>>
>>> I'd prefer to stick to Python and C, without having to put cython
>>> sources or cython-genera
Ian, 15.08.2012 21:39:
> On a reasonably fresh (3 day old) install of 64 bit windows 7, I have
> installed the 64 bit Python 2.7.3 from http://www.python.org/download/
>
> Then I installed the 64 bit version of easy_install using
> http://pypi.python.org/pypi/setuptools
>
> And then install lxml
Steven D'Aprano, 16.08.2012 15:58:
>>> NoneType raises an error if you try to create a second instance.
> In my opinion, this is a PITA for None and better behaviour would be to
> return the pre-existing NoneType instance, but I didn't design the
> language.
The time machine strikes again.
Pyth
Ramchandra Apte, 16.08.2012 17:39:
> On 16 August 2012 21:01, Stefan Behnel wrote:
>> Steven D'Aprano, 16.08.2012 15:58:
>>>>> NoneType raises an error if you try to create a second instance.
>>> In my opinion, this is a PITA for None and better behaviour w
Dmitry Arsentiev, 15.08.2012 14:49:
> Has anybody already meet the problem like this? -
> AttributeError: 'module' object has no attribute 'HTML_PARSE_RECOVER'
>
> When I run scrapy, I get
>
> File "/usr/local/lib/python2.7/site-packages/scrapy/selector/factories.py",
> line 14, in
> libxm
Florian Lindner, 31.08.2012 14:03:
> I plan to use the etree.ElementTree XML parser to parse a config file
> in which the order of the elements matter, e.g.:
>
>
>
>
>
> is not equal to:
>
>
>
>
>
> I have found different answers to the question if order matters in XML
> documents. So my
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
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
>
Arnaud Delobelle, 02.09.2012 11:04:
> I'm looking for a way to run Lua scripts in Python, and also send and
> receive data between the two. Something like lunatic-python [1] would
> be ideal. However, so far I haven't been able to build it on the
> machines it's supposed to run on (macs with OS X
Arnaud Delobelle, 02.09.2012 20:34:
> On 2 September 2012 10:49, Arnaud Delobelle wrote:
>> On 2 September 2012 10:39, Alec Taylor wrote:
>>> http://pypi.python.org/pypi/lupa
>>
>> I'll check this out, thanks.
>
> Mmh it seems to be lua 5.1 and more importantly it seems to require a
> custom build
Arnaud Delobelle, 02.09.2012 21:17:
> On 2 September 2012 19:42, Stefan Behnel wrote:
>> Arnaud Delobelle, 02.09.2012 20:34:
>>> On 2 September 2012 10:49, Arnaud Delobelle wrote:
>>>> On 2 September 2012 10:39, Alec Taylor wrote:
>>>>> http://pypi.p
Mariano Reingart, 05.09.2012 18:53, on python-announce-list:
> Context: Dynamically-typed languages cannot take advantage of static
> type information. In this context we would like to study
> the benefit of the introduction of static types *annotations* on
> library design and general robustness.
Roy Smith, 23.09.2012 16:02:
> Andriy Kornatskyy wrote:
>> I have run recently a benchmark of a trivial 'hello world' application for
>> various python web frameworks (bottle,�django, flask, pyramid, web.py,
>> wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might
>> find
>>
Andriy Kornatskyy, 23.09.2012 19:42:
> If we take a look at web application we can split it into at least two
> parts, one that renders things out and the other one that does data
> extraction, e.g. from database (this is what you are pointing at).
>
> If you made a first call to database you get
xDog Walker, 29.09.2012 10:45:
> On Friday 2012 September 28 21:27, you wrote:
>> A tiny bit of googling suggests the following approach:
>> http://stackoverflow.com/questions/3794309/python-ctypes-python-file-object
>> -c-file/3794401#3794401
>
> Thanks for your response.
>
> My "tiny bit of Go
Georg Brandl, 29.09.2012 14:18:
> On behalf of the Python development team, I'm delighted to announce the
> Python 3.3.0 final release.
> [...]
> * PEP 380, syntax for delegating to a subgenerator ("yield from")
Ah, you're so late! Cython has shipped its implementation almost a month
ago! ;)
Stef
Christian Heimes, 29.09.2012 16:06:
> From now on you can't rely
> on the order of an unordered type like dict or set.
Tautologies tend to be true even without a temporal qualification.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Hi everyone,
it's been a while since the last stable release series appeared, so I'm
proud to announce the final release of lxml 3.0.
http://lxml.de/
http://pypi.python.org/pypi/lxml/3.0
Changelog: http://lxml.de/changes-3.0.html
In short, lxml is the most feature-rich and easy-to-use library
Jean-Michel Pichavant, 10.10.2012 11:59:
> Well, the C++ code will end up running on a MIPS on a SOC,
> unfortunately, python is not an option here. The xml to C++ makes a lot
> of sense, because only a small part of the code is generated that way
> (everything related to log & fatal events). Every
Jean-Michel Pichavant, 10.10.2012 17:05:
>> SoC == System On a Chip.
>>
>> It's a single-chip micro-controller embedded inside something that's
>> not a general purpose computer (e.g. it's in a router, or piece of
>> industrial equipment, or whatever). It may only have a couple MB of
>> memory, it
Tharanga Abeyseela, 16.10.2012 05:57:
> i need to delete the following pattern and its parent node from my xml
> file (IF THE SEARCH STRING FOUND)
>
> NC
>
> if i find the above particular string , i need to delete the XML
> elements (parent of the element. problem is i have different
> parent
Marco Nawijn, 16.10.2012 12:17:
> On Tuesday, October 16, 2012 10:11:52 AM UTC+2, aaron.l...@gmail.com wrote:
>> I have a C++ module where I have a defined, working type. How would I
>> make a wrapper for this type to be able to be used in Python? I am
>> familiar(-ish) with the C-API for functions
Marco Nawijn, 16.10.2012 13:46:
> I never worked with Cython (but I know it is very powerful and
> interesting) but in my mind there are slight differences in usage
> scenario between e.g. Boost Python and Cython. For me the idea of Cython
> is that your main code is in Python
Normally, yes. You c
Hi,
note that it's best to reply to responses you get, rather than starting a
new thread on the same topic. It helps in building up context and in
keeping details together at one point in the archive for users who run into
similar problems later.
Tharanga Abeyseela, 17.10.2012 07:47:
> I need to
Alain Ketterlin, 17.10.2012 08:25:
> It looks like you can't get the parent of an Element with elementtree (I
> would love to be proven wrong on this).
No, that's by design. ElementTree allows you to reuse subtrees in a
document, for example, which wouldn't work if you enforced a single parent.
Al
1 - 100 of 1800 matches
Mail list logo