Note that the thread acquires the lock ONCE, repeats several thousand
times an assignment to a *local* variable called GLOBAL_VAR (!), finally
releases the lock and exits. As every thread does the same, they just
run
one after another, they never have a significant overlap.
Ok.
Note that the thread acquires the lock ONCE, repeats several thousand
times an assignment to a *local* variable called GLOBAL_VAR (!), finally
releases the lock and exits. As every thread does the same, they just
run
one after another, they never have a significant overlap.
Ok.
On Mon, 29 Dec 2008 21:13:55 -0500, R. Bernstein wrote:
How do I DRY the following code?
class C():
[snip code]
Move the common stuff into methods (or possibly external functions). If
you really need to, make them private by appending an underscore to the
front of the name.
class C():
On Dec 23, 6:12 pm, Mike Driscoll kyoso...@gmail.com wrote:
On Dec 23, 7:27 am,mynthonmynth...@gmail.com wrote:
On Dec 23, 11:58 am, Aaron Brady castiro...@gmail.com wrote:
On Dec 23, 4:50 am,mynthonmynth...@gmail.com wrote:
Hello! (sorry for my english)
I have a problem with
James Mills schreef:
Ross, the others have informed you that you are not
actually incrementing the count. I'll assume you've
fixed your function now :) ... I want to show you a far
simpler way to do this which takes advantage of
Python's list comprehensions and mappings (which are
really
Using udp to send out message is a convenient way, you may define a
log function like following, and start a udp server to lisen.
#
from socket import *
udpSock = socket(AF_INET,SOCK_DGRAM)
def log(s):
udpSock.sendto(s, ('127.0.0.1', 514))
log('hello')
--
Johannes Bauer a écrit :
(snip)
Even if it took (as you mentioned) a semester of SQL studies - which it
does not - why do you think your syntax is easier? The only person your
proposed syntax is easier for is you. Get over it, learn SQL, and enjoy
the benefits of one unified standard - not
Steven D'Aprano st...@remove-this-cybersource.com.au writes:
On Mon, 29 Dec 2008 21:13:55 -0500, R. Bernstein wrote:
How do I DRY the following code?
class C():
[snip code]
Move the common stuff into methods (or possibly external functions). If
you really need to, make them private by
Patrick Mullen saluk64...@gmail.com writes:
f1(...):
Docstring f1
c = C()
return c.f1(...)
f2(...):
Docstring f2
c = C()
return c.f2(...)
Why not just do either this:
C().f2(..) where you need f2
Yes, this is a little better. Thanks!
--
guys i need info on how to call up different words in a line of a file
using python
example : file = 'this is a python coding group'
i want to assign a xter to this, is, a, python , coding and group
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Simple solution: us result=yourString.split( ) and you get a list with
all the words.
-Original Message-
From: python-list-bounces+rbqg84=motorola@python.org
[mailto:python-list-bounces+rbqg84=motorola@python.org] On Behalf Of
ibpe...@gmail.com
Sent: Tuesday, December 30, 2008
On Dec 30, 11:17 am, Narasimhan Raghu-RBQG84 rbq...@motorola.com
wrote:
Simple solution: us result=yourString.split( ) and you get a list with
all the words.
-Original Message-
From: python-list-bounces+rbqg84=motorola@python.org
hi,
i want to have a broad knowledge on the use of def in python as i
know i might need it
to my string handling and for a lot of things in general.
I will really appreciate anybody who can support my mission of
becoming a python Programmer
as per constant chatting and support or manuals to
thanks brother
i mean how do i particularly assign (u = this)
(y = is)
in the strings up there. i have been able to split strings with any
character sign.
If i'm not wrong this is simple with RE:
In [1]: st = 'this is a python coding group'
In [2]:
aki Although this is not what you are asking but I'm wondering why you
aki need to read CPython implementation.
A couple reasons come to mind:
* education
* want to make it better (extend it, fix bugs, etc)
* want to see how it relates to the implementation of other
On Dec 30, 3:37 pm, ibpe...@gmail.com wrote:
hi,
i want to have a broad knowledge on the use of def in python as i
know i might need it
to my string handling and for a lot of things in general.
I will really appreciate anybody who can support my mission of
becoming a python Programmer
as
ibpe...@gmail.com wrote:
On Dec 30, 11:17 am, Narasimhan Raghu-RBQG84 rbq...@motorola.com
wrote:
Simple solution: us result=yourString.split( ) and you get a list with
all the words.
-Original Message-
From: python-list-bounces+rbqg84=motorola@python.org
On Tue, 30 Dec 2008 11:53:17 +0100, Glauco wrote:
thanks brother
i mean how do i particularly assign (u = this)
(y = is)
in the strings up there. i have been able to split strings with any
character sign.
If i'm not wrong this is simple with
Mark Thomas wrote:
The main difference is that lxml doesn't have CSS selector syntax
Feel free to read the docs:
http://codespeak.net/lxml/cssselect.html
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
However, what makes it really useful is that it does a good job of
handling the broken html that is so commonly found on the web.
BeautifulSoup ?
http://pypi.python.org/pypi/BeautifulSoup/3.0.7a
possibly with ElementSoup ?
Kenneth McDonald wrote:
Ruby has a package called 'hpricot' which can perform limited xpath
queries, and CSS selector queries. However, what makes it really useful
is that it does a good job of handling the broken html that is so
commonly found on the web. Does Python have anything similar,
Hongtian schrieb:
Hi Friends,
My application is written in C/C++ and Python is embed to extend some
functions (several .py files are invoked). But I am confused how to
debug these embed Python? Can I use 'print-debuging'? and where can I
capture the output string?
Or Python can support 'break'
On Dec 30, 8:20 am, Stefan Behnel stefan...@behnel.de wrote:
Mark Thomas wrote:
The main difference is that lxml doesn't have CSS selector syntax
Feel free to read the docs:
http://codespeak.net/lxml/cssselect.html
Don't know how I missed that...
So lxml is pretty much an exact equivalent
hello,
I'm running scripts, with the execute function (Python 2.5),
and it seems that triple quoted strings are not allowed.
Is there a workaround,
or is this a fundamental problem of the exec-function ?
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
I'm using this method to read from a socket:
def read_data(self,size):
Read data from connection until a given size.
res =
fd = self.socket.fileno()
while not self.stop_requested.isSet():
remaining = size - len(res)
if remaining=0:
Stef Mientki wrote:
hello,
I'm running scripts, with the execute function (Python 2.5),
and it seems that triple quoted strings are not allowed.
Is there a workaround,
or is this a fundamental problem of the exec-function ?
If you think about it, it should be obvious that you can't
I got this message when I tried to send something to this list, through
my ISP's SMTP server:
snip
This Message was undeliverable due to the following reason:
Each of the following recipients was rejected by a remote mail server.
The reasons given by the server are included to help you
Laszlo Nagy wrote:
I'm using this method to read from a socket:
def read_data(self,size):
Read data from connection until a given size.
res =
fd = self.socket.fileno()
while not self.stop_requested.isSet():
remaining = size - len(res)
Laszlo:
Read the message again. There's nothing the list admins can do about
this, you'll have to contact postmas...@chello.at to have them remove
the blacklisting, since it's their server that's imposing it.
regards
Steve
Laszlo Nagy wrote:
I got this message when I tried to send something
The development team is pleased to announce the release of CubicWeb
3.0.0 (nicknamed ShowTime).
What is CubicWeb?
-
With CubicWeb, the Semantic Web is a construction game!
CubicWeb_ is a semantic web application framework, licensed under the
LGPL, that
empowers developers to
En Tue, 30 Dec 2008 01:32:48 -0200, Carl Banks pavlovevide...@gmail.com
escribió:
Gabriel Genellina wrote:
A problem with metaclasses is when you have intermediate subclasses that
are not meant to be registered, but the metaclass applies equally to all
of them.
Not the way I wrote it. If
On Tue, 30 Dec 2008, Aaron Brady wrote:
[...]
On a technicality, to avert a flaming, change the value of 'b' is an
ambiguous phrase. There are two interpretations of change what 'b'
refers to and change what 'b' refers to. Even in spoken language,
I don't think that emphasis can resolve them
On Dec 29, 9:08 pm, James Mills prolo...@shortcircuit.net.au
wrote:
On Tue, Dec 30, 2008 at 12:52 PM, Aaron Brady castiro...@gmail.com wrote:
On Dec 29, 7:40 pm, James Mills prolo...@shortcircuit.net.au
wrote:
On Tue, Dec 30, 2008 at 11:34 AM, Aaron Brady castiro...@gmail.com wrote:
The
Steve Holden wrote:
Laszlo:
Read the message again. There's nothing the list admins can do about
this, you'll have to contact postmas...@chello.at to have them remove
the blacklisting, since it's their server that's imposing it.
Maybe it is my bad English but this part:
Ask your
Ask your Mail-/DNS-Administrator to correct HELO and DNS MX
settings and to get removed from DNSBLs; in
bogusmx.rfc-ignorant.org
Please reply to postmas...@chello.at if you feel this message to
be in error.
I went to rfc-ignorant.org and looked up
On Dec 30, 2:48 pm, Steve Holden st...@holdenweb.com wrote:
Stef Mientki wrote:
hello,
I'm running scripts, with the execute function (Python 2.5),
and it seems that triple quoted strings are not allowed.
Is there a workaround,
or is this a fundamental problem of the exec-function ?
Hello everyone,
This time I decided to test communication overhead in multithreaded /
multiprocess communication. The results are rather disappointing, that
is, communication overhead seems to be very high. In each of the
following functions, I send 10,000 numbers to the function / 10 threads
On Dec 30, 8:21 am, John O'Hagan m...@johnohagan.com wrote:
On Tue, 30 Dec 2008, Aaron Brady wrote:
[...]
On a technicality, to avert a flaming, change the value of 'b' is an
ambiguous phrase. There are two interpretations of change what 'b'
refers to and change what 'b' refers to. Even
Hi,
Can anybody recommend an approach for loading and parsing Excel
spreadsheets in Python. Any well known/recommended libraries for this?
The only thing I found in a brief search was
http://www.lexicon.net/sjmachin/xlrd.htm,
but I'd rather get some more input before going with something I
On Dec 30, 9:46 am, mk mrk...@gmail.com wrote:
Hello everyone,
This time I decided to test communication overhead in multithreaded /
multiprocess communication. The results are rather disappointing, that
is, communication overhead seems to be very high. In each of the
following functions, I
On Dec 30, 10:07 am, andyh...@gmail.com andyh...@gmail.com wrote:
Hi,
Can anybody recommend an approach for loading and parsing Excel
spreadsheets in Python. Any well known/recommended libraries for this?
The only thing I found in a brief search
washttp://www.lexicon.net/sjmachin/xlrd.htm,
Aaron Brady wrote:
snips
def threadsemfun():
sem = threading.Semaphore()
def threadlockfun():
sem = threading.Semaphore()
You used a Semaphore for both lock objects here.
Right... I corrected that (simply changed to threading.Lock() in
threadlockfun) and the result is
mk mrk...@gmail.com wrote:
This time I decided to test communication overhead in multithreaded /
multiprocess communication. The results are rather disappointing, that
is, communication overhead seems to be very high. In each of the
following functions, I send 10,000 numbers to the
Hello Skip,
Thank you for your response.
Your posting reminds me that we, Python community as a whole, owe a
great deal to Python developers.
The problem is ...
The more you work on Python, the harder you can go back to C or C++
world.
I use SWIG, instead. I think SWIG is a good way to mix two
On Dec 29, 1:06 pm, Aaron Brady castiro...@gmail.com wrote:
Hi all,
About a year ago, I posted an idea I was having about thread
synchronization to the newsgroup. However, I did not explain it well,
and I really erred on the side of brevity. (After some finagling, Mr.
Bieber and I decided
r wrote:
On Dec 30, 10:07 am, andyh...@gmail.com andyh...@gmail.com wrote:
Hi,
Can anybody recommend an approach for loading and parsing Excel
spreadsheets in Python. Any well known/recommended libraries for this?
The only thing I found in a brief search
I have both 2.4 and 2.5 interpreters installed on a linux box. The
PythonPath is set to :
PYTHONPATH=/usr/lib64/portage/pym:/prod/bacula/local/lib64/python2.4/site-pa
ckages:/prod/bacula/local/lib/python2.4/site-packages
My main script is getting called like so:
python2.4 cleanup.py wrkstnbs
Laszlo Nagy ha scritto:
I'm using this method to read from a socket:
def read_data(self,size):
Read data from connection until a given size.
res =
fd = self.socket.fileno()
while not self.stop_requested.isSet():
remaining = size - len(res)
Duck typing is called that way because If it looks like a duck and
quacks like a duck, it must be a duck. I think it would be good to
have also If the programmer wants to deal with it like a duck, it
must be a duck
I mean, some tasks are rather boring in python when compared with php,
for
On Dec 30, 3:04 am, mynthon mynth...@gmail.com wrote:
On Dec 23, 6:12 pm, Mike Driscoll kyoso...@gmail.com wrote:
On Dec 23, 7:27 am,mynthonmynth...@gmail.com wrote:
On Dec 23, 11:58 am, Aaron Brady castiro...@gmail.com wrote:
On Dec 23, 4:50 am,mynthonmynth...@gmail.com wrote:
Tino Wildenhain wrote:
r wrote:
On Dec 30, 10:07 am, andyh...@gmail.com andyh...@gmail.com wrote:
Hi,
Can anybody recommend an approach for loading and parsing Excel
spreadsheets in Python. Any well known/recommended libraries for this?
The only thing I found in a brief search
On Dec 30, 9:30 am, ibpe...@gmail.com wrote:
how do i get along with this task of extracting multiples folder and
generating their names individually in a their respective files as
they were generated.
Are you talking about unzipping an archive or walking a directory? If
the former, see the
On Dec 30, 10:07 am, andyh...@gmail.com andyh...@gmail.com wrote:
Hi,
Can anybody recommend an approach for loading and parsing Excel
spreadsheets in Python. Any well known/recommended libraries for this?
The only thing I found in a brief search
washttp://www.lexicon.net/sjmachin/xlrd.htm,
Jose Mora wrote:
Duck typing is called that way because If it looks like a duck and
quacks like a duck, it must be a duck. I think it would be good to
have also If the programmer wants to deal with it like a duck, it
must be a duck
I mean, some tasks are rather boring in python when compared
In article
6e1bfdea0812301042x70ab57capf99ce73d364d5...@mail.gmail.com,
Jose Mora try...@gmail.com wrote:
[...]
I mean, some tasks are rather boring in python when compared with php,
for example, let's imagine we have a dictionary that contains
dictionaries that contain the times that a key
On Dec 30, 11:16 am, prueba...@latinmail.com wrote:
On Dec 29, 1:06 pm, Aaron Brady castiro...@gmail.com wrote:
snip
My idea is to create a 'Relation' class. The details are basically
open, such as whether to back it with 'sqllite3', 'shelve', 'mmap', or
just mapping and sequence objects;
On Tue, 30 Dec 2008 19:19:08 +0100, Francesco Bochicchio bock...@virgilio.it
wrote:
[snip]
If you are interested in socket errors, you should
also fill the third 'fd-set' in the select call, and after select returns
check that fd is not in it anymore:
ready = select.select( [fd],[], [fd] )
I have a list and would like to parse the list appending each list
item to the end of a variable on a new line.
for instance
mylist = ['something\n', 'another something\n', 'something again\n']
then parse mylist to make it appear in my variable in this format:
myvar =
something
another
mk mrk...@gmail.com wrote:
CMIIW, but I believe your timing function includes the time to launch
the actual processes and threads, create the synch. objects, etc. You
might try it again, creating them first, starting the timer, then
loading them.
Except I don't know how to do that using
On Dec 30, 11:31 am, wx1...@gmail.com wrote:
I have a list and would like to parse the list appending each list
item to the end of a variable on a new line.
for instance
mylist = ['something\n', 'another something\n', 'something again\n']
then parse mylist to make it appear in my variable
I have a list and would like to parse the list appending each list
item to the end of a variable on a new line.
for instance
mylist = ['something\n', 'another something\n', 'something again\n']
then parse mylist to make it appear in my variable in this format:
myvar =
something
another
Hi, I've looked around for a way to allow a python console from within
a wxPython application, but have only found stuff on embedded/
extending python with C/C++ or wxWidgets in C++, but not wxPython.
Is this easy to do? Can someone point me in the right direction?
Also, typically when you
Jose Mora a écrit :
Duck typing is called that way because If it looks like a duck and
quacks like a duck, it must be a duck.
or at least something close enough...
I think it would be good to
have also If the programmer wants to deal with it like a duck, it
must be a duck
DWIM[1] just
On Tue, 2008-12-30 at 11:31 -0800, wx1...@gmail.com wrote:
I have a list and would like to parse the list appending each list
item to the end of a variable on a new line.
for instance
mylist = ['something\n', 'another something\n', 'something again\n']
then parse mylist to make it
On Dec 30, 1:52 pm, 5lvqbw...@sneakemail.com wrote:
Hi, I've looked around for a way to allow a python console from within
a wxPython application, but have only found stuff on embedded/
extending python with C/C++ or wxWidgets in C++, but not wxPython.
Is this easy to do? Can someone point
ibpe...@gmail.com wrote:
On Dec 30, 2:48 pm, Steve Holden st...@holdenweb.com wrote:
Stef Mientki wrote:
hello,
I'm running scripts, with the execute function (Python 2.5),
and it seems that triple quoted strings are not allowed.
Is there a workaround,
or is this a
5lvqbw...@sneakemail.com wrote:
Hi, I've looked around for a way to allow a python console from within
a wxPython application, but have only found stuff on embedded/
extending python with C/C++ or wxWidgets in C++, but not wxPython.
Is this easy to do? Can someone point me in the right
On Tue, 30 Dec 2008 21:16:39 +0100, Stef Mientki stef.mien...@gmail.com wrote:
ibpe...@gmail.com wrote:
On Dec 30, 2:48 pm, Steve Holden st...@holdenweb.com wrote:
Stef Mientki wrote:
hello,
I'm running scripts, with the execute function (Python 2.5),
and it seems that triple quoted
I have Section 4.4.1 of SICP rattling around in my head (database
queries), and I'm trying to come up with a simple dictionary-based
database in Python to represent circuit diagrams. My main confusion
isn't one of implementation, but a matter of big thinking,
fundamentally, about the problem.
On Dec 23, 9:51 pm, Ivan Illarionov ivan.illario...@gmail.com wrote:
On Dec 23, 11:22 pm, Ivan Illarionov ivan.illario...@gmail.com
wrote:
On 23 дек, 16:44, carsn carsten.kr...@gmail.com wrote:
Hey all,
anybody know, if there´s a way to specify the kerning of a font, when
you
On 2008-12-30, Francesco Bochicchio bock...@virgilio.it wrote:
3. AFAIK (sorry, I feel acronym-ly today ;), there is no difference in
select between blocking and non-blocking mode. The difference is in the
recv (again, assuming that you use TCP as protocol, that is AF_INET,
SOCK_STREAM),
On Tue, 30 Dec 2008 14:41:17 -0600, Grant Edwards gra...@visi.com wrote:
On 2008-12-30, Francesco Bochicchio bock...@virgilio.it wrote:
3. AFAIK (sorry, I feel acronym-ly today ;), there is no difference in
select between blocking and non-blocking mode. The difference is in the
recv (again,
On Tue, 30 Dec 2008 15:55:51 -0500, Jean-Paul Calderone exar...@divmod.com
wrote:
On Tue, 30 Dec 2008 14:41:17 -0600, Grant Edwards gra...@visi.com wrote:
On 2008-12-30, Francesco Bochicchio bock...@virgilio.it wrote:
3. AFAIK (sorry, I feel acronym-ly today ;), there is no difference in
Bruno Desthuilliers wrote:
Aaron Brady a écrit :
Hi all,
(snip)
I don't think relational data can be read and written very easily in
Python.
Did you try SQLAlchemy or Django's ORM ?
[...]
Using an ORM when you don't grasp the relational model and/or the SQL
query language is futile.
On Wed, Dec 31, 2008 at 7:21 AM, Stef Mientki stef.mien...@gmail.comwrote:
5lvqbw...@sneakemail.com wrote:
Hi, I've looked around for a way to allow a python console from within
a wxPython application, but have only found stuff on embedded/
extending python with C/C++ or wxWidgets in C++,
Stef Mientki wrote:
ibpe...@gmail.com wrote:
On Dec 30, 2:48 pm, Steve Holden st...@holdenweb.com wrote:
Stef Mientki wrote:
hello,
I'm running scripts, with the execute function (Python 2.5),
and it seems that triple quoted strings are not allowed.
Is there a
Stef Mientki wrote in news:mailman.6399.1230668197.3487.python-
l...@python.org in comp.lang.python:
And, by the way, exec is a *statement*, not a function!
exec ( Init_Code, PG.P_Globals )
I've really doubt that this is a statement,
unless I don't understand what a statement
5lvqbw...@sneakemail.com wrote:
Hi, I've looked around for a way to allow a python console from within
a wxPython application, but have only found stuff on embedded/
extending python with C/C++ or wxWidgets in C++, but not wxPython.
Is this easy to do? Can someone point me in the right
On Dec 30, 3:22 pm, Gandalf goldn...@gmail.com wrote:
I'm searching the win32gui hooks for a function to get the windowClass
position any idea?
thanks!
Try looking in the docs:
http://docs.activestate.com/activepython/2.4/pywin32/win32gui.html
I think the GetWindowPlacement() might be what
Gerhard Häring a écrit :
Bruno Desthuilliers wrote:
Aaron Brady a écrit :
Hi all,
(snip)
I don't think relational data can be read and written very easily in
Python.
Did you try SQLAlchemy or Django's ORM ?
[...]
Using an ORM when you don't grasp the relational model and/or the SQL
On Dec 30, 12:35 pm, 5lvqbw...@sneakemail.com wrote:
I have Section 4.4.1 of SICP rattling around in my head (database
queries), and I'm trying to come up with a simple dictionary-based
database in Python to represent circuit diagrams. My main confusion
isn't one of implementation, but a
Aaron Brady a écrit :
On Dec 30, 11:16 am, prueba...@latinmail.com wrote:
(snip)
You really do like to reinvent the wheels do you? :-) Nothing wrong
with that. Just be aware that most people that really need what you
are proposing are probably already using mature feature rich libraries
for
On Dec 31, 5:48 am, Mike Driscoll kyoso...@gmail.com wrote:
On Dec 30, 10:07 am, andyh...@gmail.com andyh...@gmail.com wrote:
Hi,
Can anybody recommend an approach for loading and parsing Excel
spreadsheets in Python. Any well known/recommended libraries for this?
The only thing I
Steve Holden wrote:
I'd like the console to be a bidirectional representation of what's
going on in the gui, plus a general purpose evaluation environment
where you can manipulate application data via some api which is
automatically exposed to the console when the application opens up.
I'm
Announcing PyYAML-3.08
A new release of PyYAML is now available:
http://pyyaml.org/wiki/PyYAML
This release features complete support for Python 3. For
compatibility notes between Python 2 and Python 3 versions,
please see
On Dec 30, 11:41 am, 5lvqbw...@sneakemail.com wrote:
conc = lambda x,y: x[:] + y # concatenate 2 lists without side effects
mylist = ['something\n', 'another something\n', 'something again\n']
myvar = reduce(conc, mylist)
print myvar
conc? side effects? Missing Lisp much? ;-)
Let's try
On Dec 30, 3:41 pm, Steve Holden st...@holdenweb.com wrote:
5lvqbw...@sneakemail.com wrote:
Hi, I've looked around for a way to allow a python console from within
a wxPython application, but have only found stuff on embedded/
extending python with C/C++ or wxWidgets in C++, but not
Steven D'Aprano a écrit :
(snip)
Avoiding early exits is an over-reaction to the Bad Old Days of spaghetti
code.
Mostly, yes. It can also be a way to help avoiding resource leaks
(memory or whatever) - just like try/finally blocks or the 'with'
statement in Python.
But used wisely, early
En Tue, 30 Dec 2008 06:16:23 -0200, k3xji sum...@gmail.com escribió:
As GLOBAL_LOOP_COUNT is 1000, now this is making a bottleneck on
the readers. I had assumed that as everythread is given only 100
bytecodes to execute, that it will be enough to have a 1 value for
this number to let
On Tue, Dec 30, 2008 at 7:10 PM, Roel Schroeven
rschroev_nospam...@fastmail.fm wrote:
Hm, you just changed an O(n) algorithm to an O(n**2) algorithm. No big
deal for short strings, but try your solution on a string with length
1 and see the difference. On my computer the O(n) version takes
akineko wrote:
The more you work on Python, the harder you can go back to C or C++
world.
I use SWIG, instead. I think SWIG is a good way to mix two worlds.
If you find it hard to go from Python back to C, you should have a look at
Cython.
http://cython.org/
Stefan
--
On Wed, Dec 31, 2008 at 12:29 AM, Aaron Brady castiro...@gmail.com wrote:
James, Hi. I'm glad you asked; I never know how out there my
comments are (but surmise that feedback is always a good thing). What
I was thinking was, I didn't know Virtual Synchrony, and I've never
used Erlang, but
On Dec 31, 5:05 am, Kelly, Brian brian.ke...@uwsp.edu wrote:
I have both 2.4 and 2.5 interpreters installed on a linux box. The
PythonPath is set to :
PYTHONPATH=/usr/lib64/portage/pym:/prod/bacula/local/lib64/python2.4/site-pa
ckages:/prod/bacula/local/lib/python2.4/site-packages
My main
On Dec 31, 6:41 am, 5lvqbw...@sneakemail.com wrote:
On Dec 30, 11:31 am, wx1...@gmail.com wrote:
I have a list and would like to parse the list appending each list
item to the end of a variable on a new line.
for instance
mylist = ['something\n', 'another something\n', 'something
James Mills wrote:
On Tue, Dec 30, 2008 at 7:10 PM, Roel Schroeven
rschroev_nospam...@fastmail.fm wrote:
Hm, you just changed an O(n) algorithm to an O(n**2) algorithm. No big
deal for short strings, but try your solution on a string with length
1 and see the difference. On my computer the
library, as I'm looking to learn to fish, so to speak, and to learn a
bit about the biology of fish.
I'm going to break rule #1 of your requirements but in an unexpected
way. Rather than studying PostgreSQL, MySQL, or Oracle, why don't you
crack open the topic of relational database theory
Hi all,
I'm pleased to announce the release of circuits-1.0b1
Overview
==
circuits is an event-driven framework with a focus on Component
Software Architectures where System Functionality is defined in
Components. Components communicate with one another by propagating
events throughout the
On Wed, Dec 31, 2008 at 9:15 AM, MRAB goo...@mrabarnett.plus.com wrote:
(snip)
A while back I posted a Python implementation of 'bag' (also called a
multiset). The code would then become something like:
What complexity is this ?
cheers
James
--
En Tue, 30 Dec 2008 18:16:39 -0200, Stef Mientki stef.mien...@gmail.com
escribió:
ibpe...@gmail.com wrote:
the message Steven sent you is ok to explain how to work with triple
quote
Yes, but not to work around my problem.
I guess I've to remove all triple quoted strings from my code.
Why
Just resolved the issue (turned out to be an issue with linked ncurses
libraries). If others run into this discussion of the solution can be found
at:
http://bugs.python.org/issue4787
Cheers! -Damian
On Mon, Dec 29, 2008 at 10:30 PM, Damian Johnson atag...@gmail.com wrote:
It seems as if the
1 - 100 of 241 matches
Mail list logo