On 19 Aug, 05:27, Dave Angel da...@ieee.org wrote:
But if you do it that way, it's slower than sequential. And if you have
a multi-core processor, or two processors, or ... then it gets much
slower yet, and slows down other tasks as well.
With the current GIL implementation, for two
On 17 Aug, 17:19, Che M cmpyt...@gmail.com wrote:
Boa (Boa Constructor) is really nice for wxPython GUI
work, but it has some bugs when using Linux that might
be dealbreakers for the user. At least I have had
problems on Ubuntu 8.10 64 bit (but none or very few
I prefer wxFormBuilder over
On 16 Aug, 20:32, Nobody nob...@nowhere.com wrote:
Is there a reason to prefer code over XRC?
There is less boilerplate code required. E.g. event handlers are bound
in the GUI builder. You can access GUI objects as attributes of your
Python class. You don't need to request them from an xml. But
On 16 Aug, 22:59, l...@d@n ranjithpmat...@gmail.com wrote:
Which is the best GUI interface builder with drag and drop
capabilities.
I am using Ubuntu GNU/Linux.
Please help me.
Thank you.
wxFormBuilder
--
http://mail.python.org/mailman/listinfo/python-list
On 16 Aug, 22:59, l...@d@n ranjithpmat...@gmail.com wrote:
Which is the best GUI interface builder with drag and drop
capabilities.
I am using Ubuntu GNU/Linux.
PyGTK -- GLADE
xwPython -- wxFormBuilder
PyQt -- QtDesigner
--
http://mail.python.org/mailman/listinfo/python-list
On 16 Aug, 19:12, Carl Banks pavlovevide...@gmail.com wrote:
If you don't care about the dynamic stuff why don't you just use
Cython? Or quit complaining and just use xrange.
I think you are the only one complaining here.
--
http://mail.python.org/mailman/listinfo/python-list
Version 3.1 of wxFormBuilder can generate wxPython code. I have
previously used wxFormBuilder to generate XRC files for my wxPython
projects. Though still in beta, this might be even better. :-)
http://wxformbuilder.org/
--
http://mail.python.org/mailman/listinfo/python-list
On 16 Aug, 11:45, bartc ba...@freeuk.com wrote:
A for-loop, for iterating over a simple sequence, should be one of the
fastest things in the language.
Anyone experienced with interpreted high-level languages knows this is
not true. Not because iterating a sequence is expensive, but because
the
On 16 Aug, 14:57, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
Well, the alternative would be to have two keywords for looping: one
for your simple incrementing integer loop, and another for a loop that
operates over the elements of some collection type.
A compiler could easily
On 5 Aug, 19:16, Diez B. Roggisch de...@nospam.web.de wrote:
void foo(void *data, size_t length)
The wrapper is supposed to be called with a python (byte)string instance,
which might contain more than one '\0'-character.
So how do I access the raw data of a string?
cdef extern void
On 5 Aug, 21:23, sturlamolden sturlamol...@yahoo.no wrote:
foo(data, length)
Oops, that would be
foo(void * data, length)
--
http://mail.python.org/mailman/listinfo/python-list
On 5 Aug, 15:40, Jesse Noller jnol...@gmail.com wrote:
Sturla;
That bug was fixed unless I'm missing something.
It is still in SVN. Change every call to os._exit to sys.exit
please. :)
On 5 Aug, 21:36, sturlamolden sturlamol...@yahoo.no wrote:
http://svn.python.org/view/python/branches/release26-maint/Lib/multip...
http://svn.python.org/view/python/branches/release31-maint/Lib/multip...
http://svn.python.org/view/python/trunk/Lib/multiprocessing/forking.py?revision
On 5 Aug, 22:07, Piet van Oostrum p...@cs.uu.nl wrote:
Calling os.exit in a child process may be dangerous. It can cause
unflushed buffers to be flushed twice: once in the parent and once in
the child.
I assume you mean sys.exit. If this is the case, multiprocessing needs
a mechanism to chose
On 5 Aug, 22:28, Jesse Noller jnol...@gmail.com wrote:
http://bugs.python.org/issue6653
In the future please use the bug tracker to file and track bugs with,
so things are not as lossy.
Ok, sorry :)
Also see Piet's comment here. He has a valid case against sys.exit in
some cases. Thus it
On 5 Aug, 23:22, Diez B. Roggisch de...@nospam.web.de wrote:
And that gives me the *full* bytestring, not only until the first zero?
I can't try that right now (not at work anymore), but if it's that easy,
that would be great.
It should, and if it does not it is a bug in Cython. The len()
On Aug 5, 4:37 am, erikcw erikwickst...@gmail.com wrote:
It's not always the same traceback, but they are always short like
this. I'm running Python 2.6.2 on Ubuntu 9.04.
Any idea how I can debug this?
In my experience, multiprocessing is fragile. Scripts tend fo fail for
no obvious reason,
On 2 Aug, 15:50, Jizzai jiz...@gmail.com wrote:
Is a _pure_ python program buffer overflow proof?
For example in C++ you can declare a char[9] to hold user input.
If the user inputs 10+ chars a buffer overflow occurs.
Short answer: NO
Bounds checking on sequence types is a protection
On 20 Jul, 18:27, Phillip B Oldham phillip.old...@gmail.com wrote:
We're not looking to start any arguments or religious wars and we're
not asking that python be changed into something its not. We'd simply
like to understand the decision behind the lists and tuple structures.
We feel that in
On 31 Jul, 23:43, Raymond Hettinger pyt...@rcn.com wrote:
More than one person here has
observed that the time to learn to program Pythonically is inversely
proportional to their experience in Java.
I believe it is opposite. The longer the Java experience, the longer
it takes to program
On 29 Jul, 10:14, gregorth gregor.thalham...@gmail.com wrote:
for a scientific application I need to save a video stream to disc for
further post processing.
I have worked a bit on this as well. There are two things that make
scientific applications different form common video encoding:
On 30 Jul, 02:19, MalC0de malc0de.encr...@gmail.com wrote:
actually I mean driver programming under Windows operating system, if
you know, there's A kit name DDK available at microsoft's website for
developing device drivers under C / C++ environment,
Actually, Microsoft has replaced DDK with
On 2 Aug, 04:47, Nobody nob...@nowhere.com wrote:
OTOH, using a for loop when you could use a generator means less work
when you need to make a minor change and a generator is no longer
sufficient.
It's not just that. It is e.g. using a for loop and indexes instead of
a slice. E.g.
for i in
On 31 Jul, 21:31, Masklinn maskl...@masklinn.net wrote:
It's intuitive if you come to Python knowing other languages with
tuples (which are mostly functional, and in which tuples are *never*
sequences/iterables). At the end of the day, and if Guido's intention
truly was what Raymond
On Mar 27, 7:10 am, jesse jberw...@gmail.com wrote:
I give up. I cannot find my memory leak!
That's the penalty for using the Python C API.
http://www.cython.org
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 5, 11:11 am, Stefano stef...@vulcanos.it wrote:
In the end of all i searched in internet and i've found that applications
( even commercial ) written with gtk are more and more than other written
with wx and qt (not only with python)
From a technical point of view, Qt is the superior
On Mar 3, 8:15 pm, Scott David Daniels scott.dani...@acm.org wrote:
Qt: simplest model, well-documented, until very recently not available
on Windows w/o a restrictive license or substantial cost.
As of March 3, Qt is LGPL on all platforms!!!
The problem is PyQt which is still dual
On Feb 20, 12:19 am, Mensanator mensana...@aol.com wrote:
What am I actually seeing? If Python only uses one of the cores,
why do both light up?
Because of OS scheduling. You have more than one process running. The
Python process does not stay on one core. Try to put CPython into a
tight loop
On Feb 19, 4:39 pm, rushen...@gmail.com wrote:
I really wanted to learn python, but as i said i don't want to make a
dead investment. I hope someone can fix these design errors and maybe
can write an interpreter in python :)
Java and Python has different strengths and weaknesses. There is no
On 19 Feb, 03:13, Carl Banks pavlovevide...@gmail.com wrote:
The offset parameter of mmap itself would be useful to map small
portions of gigabyte-sized files, and maybe numpy.memmap can take
advantage of that if the user passes an offset parameter.
NumPy's memmap is just a wrapper for
On 18 Feb, 00:08, Lionel lionel.ke...@gmail.com wrote:
1) What is recarray?
An ndarray of what C programmers know as a struct, in which each
field is accessible by its name.
That is,
struct rgba{
unsigned char r;
unsigned char g;
unsigned char b;
unsigned char a;
};
struct rgba
On Feb 10, 8:38 am, Paul McGuire pt...@austin.rr.com wrote:
Even worse than linear, the function is recursive, which as I
understand it, is inherently a no-no when looking for code that is
parallel-friendly.
There is no way to parallelize Fibonacci numbers computed with linear
time
On Feb 10, 7:28 am, oyster lepto.pyt...@gmail.com wrote:
I mean this
[code]
def fib(n):
if n=1:
return 1
return fib(n-1)+fib(n-2)
Let's rewrite that slightly and see...
def fib(n, _map=None):
if not _map: _map = map
if n 2:
return sum(_map(fib, (n-1,
On 16 Feb, 10:34, rushen...@gmail.com wrote:
And the story begins here. As i search on the net, I have found that
because of the natural characteristics of python such as GIL, we are
not able to write multi threaded programs. Oooops, in a kind of time
with lots of cpu cores and we are not
On 16 Feb, 15:18, rushen...@gmail.com wrote:
As you mentioned, using multi cores makes programs more fast and more
popular. But what about stackless python? Does it interpret same set
of python libraries with Cpython or Does it have a special sub set?
Stackless and CPython have a GIL, Jython
frame = sys._getframe().f_back is the previous stack frame. Is there
any way to execute (with exec or eval) frame.f_code beginning from
frame.f_lasti or frame.f_lineno?
I am trying to spawn a thread that is initialized with the code and
state of the previous stack frame.
S.M.
--
On Jan 22, 8:47 pm, Jeff McNeil j...@jmcneil.net wrote:
What are you trying to accomplish?
On Jan 22, 8:47 pm, Jeff McNeil j...@jmcneil.net wrote:
What are you trying to accomplish? While it's possible to do, I can't
believe it's going to be very safe.
I am trying to implement a
On Jan 21, 12:13 am, sturlamolden sturlamol...@yahoo.no wrote:
Apart from that, an FFT in pure python is going to be atrociously slow
for anything but the shortest signals. I cannot imagine why you want
to do this.
Just to elaborate on this:
The whole purpose of using FFT is speed
On Jan 20, 11:09 pm, debug domelect...@gmail.com wrote:
So far i've managed to put together a chunk of code but I'm not sure
its returning the right values, any ideas?
Don't use the periodogram for frequency analysis; it is not a good
estimate of the power spectrum. According to the
On Jan 16, 8:39 am, Erik Max Francis m...@alcyone.com wrote:
I was thinking of this as well when I saw his post. Inform 7 has some
interesting ideas, but I think the general problem with English-like
programming language systems is that once you get into the nitty gritty
details, you end up
According to a Norwegian publication, Nokia will release Qt under LGPL
as of version 4.5.
If I had stocks in Riverbank Computing ltd., I would sell them now...
For the rest of us, this is fantastic news.
http://digi.no/php/art.php?id=800922
--
On Jan 13, 5:25 pm, Laszlo Nagy gand...@shopzeus.com wrote:
I would like to develop some module for Python for IPC. Socket
programming howto recommends that for local communication, and I
personally experienced problems with TCP (see my previous post: Slow
network).
There are plenty of
On Jan 14, 12:47 pm, Laszlo Nagy gand...@shopzeus.com wrote:
multiprocessing.Queue cannot be used as a general message queue
between arbitrary processes.
Then e.g. use Listener and Client in multiprocessing.connection to
create a named pipe (AF_PIPE). Or use win32pipe.CreateNamedPipe from
On Jan 14, 3:11 pm, drobi...@gmail.com drobi...@gmail.com wrote:
On Jan 14, 7:57 am, sturlamolden sturlamol...@yahoo.no wrote:
According to a Norwegian publication, Nokia will release Qt under LGPL
as of version 4.5.
If I had stocks in Riverbank Computing ltd., I would sell them now
On Jan 9, 6:41 pm, Sion Arrowsmith si...@chiark.greenend.org.uk
wrote:
You've snipped the bit further on in that sentence where the OP
says that the file of interest is 2GB. Do you still want to try
mmap'ing it?
Python's mmap object does not take an offset parameter. If it did, one
could mmap
On Jan 12, 1:52 pm, Sion Arrowsmith si...@chiark.greenend.org.uk
wrote:
And today's moral is: try it before posting. Yeah, I can map a 2GB
file no problem, complete with associated 2GB+ allocated VM. The
addressing is clearly not working how I was expecting it too.
The virtual memory space of
On Jan 7, 2:02 am, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
In Python code, there are no references and no dereferencing.
The why does CPython keep track of reference counts?
You can't, because Python doesn't have references. In a language with
references, that's easy.
On Jan 5, 9:06 pm, Ryan heni...@yahoo.com wrote:
I've been using Python for many years now. It's a wonderful language
that I enjoy using everyday. I'm now interested in getting to know
more about the guts (C/C++) and extending it. But, extending python
still seems like a black art to me.
On Jan 6, 4:32 pm, mark mark.fi...@googlemail.com wrote:
Is it possible to
switch between the custom DSL and the standard Python interpreter?
As far as I can tell, there are three different options:
- Embed a Python and DSL interpreter in the same executable.
- Write the DSL interpreter in
On Jan 6, 4:32 pm, mark mark.fi...@googlemail.com wrote:
I want to implement a internal DSL in Python. I would like the syntax
as human readable as possible.
Also beware that Python is not Lisp. You cannot define new syntax (yes
I've seen the goto joke).
--
On Jan 2, 5:43 pm, Steve Holden st...@holdenweb.com wrote:
Derek Martin wrote:
On Tue, Dec 30, 2008 at 02:21:29PM +, John O'Hagan wrote:
[...]
What the Python community often overlooks, when this discussion again
rears its ugly head (as it seems to every other hour or so), is that
On Jan 2, 11:39 am, Derek Martin c...@pizzashack.org wrote:
What the Python community often overlooks, when this discussion again
rears its ugly head (as it seems to every other hour or so), is that
its assignment model is BIZARRE, as in it's conceptually different
from virtually all other
On Jan 6, 3:35 pm, Dotan Cohen dotanco...@gmail.com wrote:
2009/1/3 Nomen Nescio nob...@dizum.com:
python is great.
No, those are anacondas.
Unless Nomen Nescio is thinking of the giant serpent Python from greek
mythology.
- Python lived in a cave near Delphi. CPython can be embedded in
On Jan 6, 6:51 pm, Jules Stevenson li...@js3d.co.uk wrote:
I don't seem to be able to read the 'out' at all? If I omit redirecting
stdout etc then the output displays fine in the console.
You are redirecting to a file, not a pipe.
Read the file from beginning to end after your process had
On 13 Des, 02:20, Hrvoje Niksic hnik...@xemacs.org wrote:
tmp = mytuple.__getitem__(0)
tmp = tmp.__iadd__(1)
mytuple.__setitem__(0, tmp) # should this always raise an exception?
What do you mean by a sane parser? This is exactly what happens in
current Python.
Yes, but Steve Holden
On 13 Des, 21:26, sturlamolden sturlamol...@yahoo.no wrote:
Python methods always have a return value, even those that seem to do
not - they silently return None. Thus, __iadd__ must return self to
avoid rebinding to None.
Except for immutable types, for which __iadd__ must return a new
On 10 Des, 19:42, cm_gui cmg...@gmail.com wrote:
And it is not just this Python site that is slow. There are many many
Python sites which are very slow. And please don’t say that it could
be the web hosting or the server which is slow — because when so many
Python sites are slower than PHP
On Dec 7, 9:54 am, m...@pixar.com wrote:
How can I make a var parm, where the called function can modify
the value of the parameter in the caller?
def f(x):
x = x + 1
Short ansver:
You can modify function parameters if they are mutable. If they are
immutable any attempt to modify the
On Dec 12, 1:44 pm, Chris Rebert c...@rebertia.com wrote:
Python begs to differ, as those two statements are both semantically
identical in this case:
That is because integers are immutable. When x += 1 is done on an int,
there will be a rebinding. But try the same on say, a numpy array, and
On Dec 12, 1:56 pm, sturlamolden sturlamol...@yahoo.no wrote:
That is because integers are immutable. When x += 1 is done on an int,
there will be a rebinding. But try the same on say, a numpy array, and
the result will be different:
And a consequence of this is, if you have a function like
On Dec 11, 4:25 am, Carl Banks pavlovevide...@gmail.com wrote:
cm_gui is TROLL. And I am not compring it with bots like Aaron
Castironpi Brody. cm_gui is even troller than Xah Lee!
Sure he is a troll, but he also have a point. Python is slower than it
needs to be.
Creating a fast
On Dec 12, 2:34 pm, Hrvoje Niksic hnik...@xemacs.org wrote:
import numpy
t = (numpy.zeros(10),)
t
(array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]),) t[0] += 1
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: 'tuple' object does not support item
On Dec 12, 2:29 pm, sturlamolden sturlamol...@yahoo.no wrote:
Creating a fast implementation of a dynamic language is almost rocket
science. But it has been done. There is Stronghold,
I meant of course Strongtalk...
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 12, 3:04 pm, Luis M. González luis...@gmail.com wrote:
Why don't you guys google a little bit to know what's being done to
address python's slowness??
Nothing is being done, and woth Py3k it got even worse.
It has been mentioned in this thread the pypy project (isn't it enough
for
On Dec 12, 3:08 pm, Marc 'BlackJack' Rintsch bj_...@gmx.net wrote:
No bug because a mutation *is* attempted. ``a += x`` calls `a.__iadd__`
which *always* returns the result which is *always* rebound to the name
`a`. Even with mutable objects where `__iadd__()` simply returns
`self`!
No, a
On Dec 12, 3:27 pm, David Cournapeau courn...@gmail.com wrote:
I want faster function
calls to use with numpy: do you know of any solution ? Pypy certainly
isn't, at least today.
An interesting thing for numpy would be to use CUDA. If we can move
floating point ops to the GPU, a common
On Dec 12, 3:43 pm, Stefan Behnel stefan...@behnel.de wrote:
http://cython.org/
How is the numpy support in Cython going? It was supposed to know
about ndarrays natively. I.e. not treat them as Python objects, but
rather as known C structs. That way an operation like arr[n] would not
result in
On Dec 12, 3:54 pm, Steve Holden st...@holdenweb.com wrote:
sturlamolden wrote:
On Dec 12, 3:08 pm, Marc 'BlackJack' Rintsch bj_...@gmx.net wrote:
No bug because a mutation *is* attempted. ``a += x`` calls `a.__iadd__`
which *always* returns the result which is *always* rebound
On Dec 12, 4:55 pm, sturlamolden sturlamol...@yahoo.no wrote:
def __setitem__(self, index, value):
if _buf[index] is not value: # given that _buf is the tuple's
internal buffer
raise TypeError, 'tuple' object does not support item
assignment
blæh, that should be self._buf[index
On Dec 12, 5:13 pm, Steve Holden st...@holdenweb.com wrote:
It should be the tuple's __setitem__ that was invoked here, not
__iadd__, or the parser is faulty.
OK, so now you are proposing to alter the parser, and possibly the
implementation of the INPLACE_ADD opcode in eval.c, so can you
On Dec 12, 5:13 pm, Steve Holden st...@holdenweb.com wrote:
OK, so now you are proposing to alter the parser, and possibly the
implementation of the INPLACE_ADD opcode in eval.c, so can you give us
the patch for those, please?
That is not where the problem resides.
--
On 8 Nov, 20:35, azrael [EMAIL PROTECTED] wrote:
I am freaking out that I need 5 times more time to make a GUI in
python than in VB.
I find wxFormBuilder nice to work with. wxPython can use XRC-files
from wxFormBuilder.
Note that wx uses sizers (layout managers). While it makes GUIs a bit
On Nov 7, 11:46 am, Paul Boddie [EMAIL PROTECTED] wrote:
As far as I can tell, he wants to keep the data in one place and just
pass a pointer around between execution contexts.
This would be the easiest solution if Python were designed to do this
from the beginning. I have previously stated
On Nov 4, 6:51 pm, Paul Boddie [EMAIL PROTECTED] wrote:
The language features look a lot like what others have already been
offering for a while: keywords for parallelised constructs (clik_for)
which are employed by solutions for various languages (C# and various C
++ libraries spring
On Nov 5, 8:44 pm, Andy O'Meara [EMAIL PROTECTED] wrote:
In a few earlier posts, I went into details what's meant there:
On Nov 6, 6:05 pm, Walter Overby [EMAIL PROTECTED] wrote:
I don't understand how this would help. If these large data
structures reside only in one remote process, then the overhead of
proxying the data into another process for manipulation requires too
much IPC, or at least so Andy
On Nov 7, 12:22 am, Walter Overby [EMAIL PROTECTED] wrote:
I read Andy to stipulate that the pipe needs to transmit hundreds of
megs of data and/or thousands of data structure instances. I doubt
he'd be happy with memcpy either. My instinct is that contention for
a lock could be the quicker
On Nov 7, 2:58 am, 一首诗 [EMAIL PROTECTED] wrote:
Hi, that's because I guess wxpython does not use native windows forms
and could not provide
a handle property.
Huh?
I will make more study.
Take a look at wxFormBuilder. I have a wxPython tutorial in my blog.
On Nov 3, 7:11 pm, Andy O'Meara [EMAIL PROTECTED] wrote:
My hope was that the increasing interest and value associated with
flexible, multi-core/free-thread support is at a point where there's
a critical mass of CPython developer interest (as indicated by various
serious projects specifically
If you are serious about multicore programming, take a look at:
http://www.cilk.com/
Now if we could make Python do something like that, people would
perhaps start to think about writing Python programs for more than one
processor.
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 4, 4:27 pm, Andy O'Meara [EMAIL PROTECTED] wrote:
People
in the scientific and academic communities have to understand that the
dynamics in commercial software are can be *very* different needs and
have to show some open-mindedness there.
You are beware that BDFL's employer is a
Instead of appdomains (one interpreter per thread), or free
threading, you could use multiple processes. Take a look at the new
multiprocessing module in Python 2.6. It has roughly the same
interface as Python's threading and queue modules, but uses processes
instead of threads. Processes are
On Oct 24, 3:58 pm, Andy O'Meara [EMAIL PROTECTED] wrote:
This is discussed earlier in the thread--they're unfortunately all
out.
It occurs to me that tcl is doing what you want. Have you ever thought
of not using Python?
That aside, the fundamental problem is what I perceive a fundamental
On Oct 23, 8:11 pm, John [H2O] [EMAIL PROTECTED] wrote:
datagrid = numpy.zeros(360,180,3,73,20)
On a 32 bit system, try this instead:
datagrid = numpy.zeros((360,180,3,73,20), dtype=numpy.float32)
(if you can use single precision that is.)
--
On Sep 29, 4:56 pm, Alexandru Mosoi [EMAIL PROTECTED] wrote:
how can I block all threads for a specific amount of time? (i need to
sleep whole process for testing purposes). i thought of accessing GIL
and sleep for some amount of time, but I don't know how to do this and
whether GIL is
On Sep 26, 5:45 am, David Cournapeau [EMAIL PROTECTED] wrote:
I am fairly experienced in matlab (have been using it extensively for
5 years in academical context), and now with numpy, and generally,
they are comparable speed-wise. Matlab has some niceties which makes
it faster in some simple
On 26 Sep, 08:43, Terry Reedy [EMAIL PROTECTED] wrote:
That depends on the data structure. Access to a singly-linked list is
by linear scanning from the front.
Which is one reason why mergesort i preferred over quicksort for
lists. Pythons built-in sort is a variant of mergesort and should be
On 25 Sep, 10:08, Duncan Booth [EMAIL PROTECTED] wrote:
A lot of what LINQ does is already easy to do in Python, and most of the
rest can probably be added fairly easily, but it does provide a consistent
framework which may make it easier to do complex LINQ statements than
complex list
On 25 Sep, 06:02, ROSEEE [EMAIL PROTECTED] wrote:
http://pythoncomputer.blogspot.com
I wonder where the usenet cancelbots have gone?
--
http://mail.python.org/mailman/listinfo/python-list
On 25 Sep, 12:06, hrishy [EMAIL PROTECTED] wrote:
var stoogeGuys =
Beginning with the XML source
from xmlGuys in xmlSource.Descendants(Stooge)
Join to the array on the common element stoogeName
join arrayGuys in familyFacts
on xmlGuys.Element(stoogeName).Value
On 25 Sep, 12:06, hrishy [EMAIL PROTECTED] wrote:
[code]
var stoogeGuys =
Beginning with the XML source
from xmlGuys in xmlSource.Descendants(Stooge)
Join to the array on the common element stoogeName
join arrayGuys in familyFacts
on
On 25 Sep, 13:08, hrishy [EMAIL PROTECTED] wrote:
Pardon my ignorance again but id ont see any join in python or did i miss
something ?
It's more Pythonic to use the syntax of dictionary lookups.
--
http://mail.python.org/mailman/listinfo/python-list
On 24 Sep, 19:37, Tim Arnold [EMAIL PROTECTED] wrote:
Am I missing something? Is there a better way?
Use the pyprocessing module (to appear as standard module
multiprocessing in Python 2.6). It has almost the same interface as
Python's threading and Queue standard modules, except you are
On 25 Sep, 14:22, Duncan Booth [EMAIL PROTECTED] wrote:
No Python's syntax is fine. The api's aren't as consistent though:
Microsoft added a common set of extension methods which work on
databases, xml, builtin sequences and can be easily extended to include
other custom sequences.
That is
For those who are interested:
I've updated the cookbook tutorial on the kd-tree:
http://scipy.org/Cookbook/KDTree
It now also includes parallel search for multicore CPUs
(multiprocessing standard module). Even if you are not genuinely
interested in kd-trees, it shows how to do parallel
I have updated the cookbook entry for yesterday to also include
parallel processing for large data sets. Even if you're not interested
in kd-trees, it is a good example of what the new multiprocessing
standard module can do. There are still people being scared by the
GIL, thinking it prevents
On Sep 24, 5:22 pm, hrishy [EMAIL PROTECTED] wrote:
Well wouldn't it be a lot easier to query and join a xml source with a
relational source with LINQ capabilites in Python.
Hmm what am i missing here is there a site that takes all LINQ examples and
does them using list comprehensions and
On Sep 24, 9:11 pm, [EMAIL PROTECTED] wrote:
In the meantime where I
live lot of people will keep using C# instead of Python and CLisp,
natural selection at work indeed.
Please explain to me what Linq can do that Python does not. Put you
emphasis on why this can't be done with a library, and
On Sep 24, 10:59 pm, Duncan Booth [EMAIL PROTECTED]
wrote:
Simple LINQ expressions like the one you gave map easily to Python list
comprehensions. What Microsoft have done though is provide a consistent
implementation which allows you to write complex SQL like expressions which
will work
On Sep 24, 3:17 pm, Marin Brkic [EMAIL PROTECTED] wrote:
Has anyone had a situation like this ? All your inputs and suggestions
are more then welcomed.
Send them the .py file and confirm that it does work. The lack of
Python can be blamed on the incompetent BOFH. Chances are the
situation will
301 - 400 of 771 matches
Mail list logo