I'm pleased to announce Peggy 0.01
Get it at http://www.florian-diesch.de/software/peggy/
Peggy helps you to use resources inside a package, especially
resources used by PyGtk classes, like images or glade files. It works
for zipped eggs or packages just somewhere in sys.path.
Peggy is a thin
updated Python bindings for ITT's IDL
http://www.its.caltech.edu/~mmckerns/software.html
# Version
0.7c1: 03/05/09
added support for idl_7.0
installs with setuptools, if available
more gentle install dependency failure
slight change in license
NOTE:
The new install script tries to
A new stable release of the Python bindings for GTK+ has been released.
The new release is available from ftp.gnome.org and its mirrors
as soon as its synced correctly:
http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.14/
Blurb:
GTK+ is a toolkit for developing graphical applications that run
On Wed, Mar 4, 2009 at 11:42 PM, andrew cooke and...@acooke.org wrote:
Not sure where to ask this, but how do I edit my PyPI page?
http://pypi.python.org/pypi/LEPL/2.0 doesn't have any text compared to
http://pypi.python.org/pypi/pypp/0.0.2 (selected at random). How do I the
Benefits,
Hi Josh,
http://www.pythonocc.org/ However, I'm
not entirely clear on the license for this so that might be an issue.
We're using a French license for the moment, but will move to something more
standard soon. PythonOCC ( the current SVN version ) wraps 85% of the
OpenCASCADE kernel.
Hi,
I'm working with a C++ module ( CGAL, comp.geom. with exact arithmic )
and am having troubles finding a way to override how the modules returns
objects. What I'm trying to do is to extend the Facet class, but when I try
to use my version of the class, the parent class is still being returned
Apparently not (this will probably change, but see
http://pypi.python.org/pypi/LEPL/2.0.1 which is currently displaying
restructured text literally)
Thanks,
Andrew
Chris Rebert wrote:
On Wed, Mar 4, 2009 at 11:42 PM, andrew cooke and...@acooke.org wrote:
Not sure where to ask this, but how
On 4 Mar, 00:40, Peter Billam pe...@www.pjb.com.au wrote:
http://wiki.wxwidgets.org/WxWidgets_Compared_To_Other_Toolkits
seemed surprisingly even-handed.
On 2009-03-04, Paul Boddie p...@boddie.org.uk wrote:
I don't have a horse in this race, but apart from needing to
update that page based
On Mar 5, 6:47 pm, jjh jhirono2...@yahoo.com wrote:
On Jan 14, 10:01 pm, marco.m.peter...@gmail.com wrote:
[snipped]
Sorry to bring this back up.
The correct thing to do is to start a NEW post. Marco's problem is
nothing to do with yours.
I'm a newbie trying to run 2to3 on
Windows. I ran
On Feb 23, 12:43 pm, Tim Chase python.l...@tim.thechases.com wrote:
I stumbled across this oddity and was hoping folks on the list
might be able to provide a little understanding:
# swap scalars
x,y = 1,2
x,y = y,x
x,y
(2, 1)
# swap lists
a,b = [1,2,3],[4,5,6]
a,b = b,a
On Mar 5, 2:27 am, jelle feringa jelleferi...@gmail.com wrote:
Hi,
I'm working with a C++ module ( CGAL, comp.geom. with exact arithmic )
and am having troubles finding a way to override how the modules returns
objects. What I'm trying to do is to extend the Facet class, but when I try
to
I have a core loop that is critical to performance. The code is at
http://www.acooke.org/lepl/api/lepl.parser-pysrc.html#trampoline
If I write a separate optimised version of that function for when
monitor is empty, with all the if monitor tests removed, the profiler
(cProfile) indicates a 10%
mattia wrote:
Note how get_roulette_wheel() is now completeley independent of the
concrete problem you are using it for.
Ok, but also a lot more memory consuming ;-)
I don't think so. Python references objects; therefore the list
[tiny_little_thing]*N
does not consume more memory than
Hello everybody
After many little programs now I must prepare a serious desktop application
.
Without discussing about licensing but only from the technical point of view
I have tried wx,wt,gtk graphical gui to build 'normal gui apps ' and
everyone goes well.
In the end of all i searched in
Hi Aaron,
Thanks so much for your feedback.
Regardless of CGAL's dictionary, it instantiates a Facet.
True, when I add attributes to it, they are disregarded when looping
through the facets later on.
Depending on the details, you may need only to cut-and-paste your own
'make_triangle'
Hi, I just wondered how many Packages are in the Python Package Index.
I could not find any counter, but I found that there is a category
overview on http://pypi.python.org/pypi?%3Aaction=browse .
A quick look at the HTML told me that the number of Packages per
Category is listed surrounded by
Catherine Heathcote wrote:
I am reading an XML file (code at the end if it helps) and all goes well
except I am getting the http response code printed. So everything (hat
works of course) has 200 OK on the first line. Am I missing some
simple way of surprising this, or should I just delete
On Thu, 05 Mar 2009 09:37:49 +, Catherine Heathcote wrote:
I am reading an XML file (code at the end if it helps) and all goes well
except I am getting the http response code printed. So everything (hat
works of course) has 200 OK on the first line. Am I missing some
simple way of
Catherine Heathcote catherine.heathc...@gmail.com wrote in message
news:n3nrl.2951$lc7.2...@text.news.virginmedia.com...
=
I am reading an XML file (code at the end if it helps) and all goes well
except I am
getting the http response code printed.
I suggest you comment out line 22. The
Thanks for the comments on this topic. I shall read the thread suggest by
Tim and avoid the book. (I did look for reviews on Amazon, but I used
amazon.co.uk, so I missed the Perl book reviews).
I also emailed the company to ask more about the 'Python Certification' that
the book title alluded
Il Thu, 05 Mar 2009 10:46:58 +0100, Peter Otten ha scritto:
mattia wrote:
Note how get_roulette_wheel() is now completeley independent of the
concrete problem you are using it for.
Ok, but also a lot more memory consuming ;-)
I don't think so. Python references objects; therefore the
Has anybody encountered problems running pydoc with version 2.6.1?
I'm getting an error message that pydoc cannot import namedtuple
(details below).
(I'm running under 64-bit Windows Vista, although that probably is not
important.)
Here's my batch file, pydoc_test.bat:
On Mar 5, 1:29 pm, steve.ferg.bitbuc...@gmail.com wrote:
Has anybody encountered problems running pydoc with version 2.6.1?
I'm getting an error message that pydoc cannot import namedtuple
(details below).
(I'm running under 64-bit Windows Vista, although that probably is not
important.)
mattia wrote:
Il Thu, 05 Mar 2009 10:46:58 +0100, Peter Otten ha scritto:
mattia wrote:
Note how get_roulette_wheel() is now completeley independent of the
concrete problem you are using it for.
Ok, but also a lot more memory consuming ;-)
I don't think so. Python references
jelle feringa wrote:
Hi,
I'm working with a C++ module ( CGAL, comp.geom. with exact arithmic )
and am having troubles finding a way to override how the modules returns
objects. What I'm trying to do is to extend the Facet class, but when I try
to use my version of the class, the parent class
On Mar 5, 1:48 pm, yino...@gmail.com wrote:
On Mar 5, 1:29 pm, steve.ferg.bitbuc...@gmail.com wrote:
Has anybody encountered problems running pydoc with version 2.6.1?
I'm getting an error message that pydoc cannot import namedtuple
(details below).
(I'm running under 64-bit Windows
Hendrik van Rooyen wrote:
Steve Holden ste.nweb.com wrote:
My well-known-search-engine-foo must be at an all-time low today. *Is*
there an index and I can't see for looking?
typing in python weekly at google gives me:
Python-URL!The bookmark for this page is:
Hello ~
I'm new with python, what my problem is, I have a binary file, I want
to read first 2 bytes and convert it to host byte order, then write it
to another file.
I try to use 'socket' and 'struct', but somehow i can not get it
working fine:
for example, totally I'm not sure if my steps is
Hendrik van Rooyen a écrit :
S Arrowsmith si...intbox.UUCP wrote:
Small integers get a similar treatment:
a = 256
b = 256
a is b
True
a = 257
b = 257
a is b
False
This is weird - I would have thought that the limit
of small would be at 255 - the biggest number to
fit in a byte. 256
CGAL.Facet = OtherFacet
CGAL.Polyhedron.Facet = OtherFacet
p = CGAL.Polyhedron_3()
You're not creating Facet object here, not even Polyhedron.Facet.
Right, which is not the point; I'm trying to override the Facet, a topological
entity of which a Polyhedron is composed of .
( vertex -
Avetis KAZARIAN a écrit :
Well, it's not about curiosity, it's more about performance.
Steve Holden wrote:
(snip)
So, don't try to translate concepts from one language to another.
I'll try ;]
Also and FWIW:
1/ Python has some very handy tools when it comes to perfs - like a
couple
Evan wrote:
Hello ~
I'm new with python, what my problem is, I have a binary file, I want
to read first 2 bytes and convert it to host byte order, then write it
to another file.
I try to use 'socket' and 'struct', but somehow i can not get it
working fine:
for example, totally I'm
Heya,
I am reading an XML file (code at the end if it helps) and all goes well
except I am getting the http response code printed. So everything (hat
works of course) has 200 OK on the first line. Am I missing some
simple way of surprising this, or should I just delete the 1st line
before
Thanks everyone!
Matko ;)
Thanks
Matko ivastipan...@inet.hr wrote in message
news:gojkfo$2p...@gregory.bnet.hr...
Hello!
Can someone help me to understand the following code:
uv_face_mapping = [[0,0,0,0] for f in faces]
Thank You very much!
Matko from Croatia
--
abhinayaraj.r...@emulex.com wrote:
Thank you for the suggestions.
Some little reading gave the idea and it works well too. :)
Here is the code:
fileIN = open(test.txt)
count = 0
for line in fileIN:
data= line
if '' in data:
count = 4
elif '###'
(answering to the OP)
En Wed, 04 Mar 2009 07:36:01 -0200, abhinayaraj.r...@emulex.com escribió:
I am a beginner in Python. In fact, beginner to coding/ scripting.
Here is a scenario, I need to code. Need your help on this:
Your first task here should be to refine the specs - too much
jelle feringa wrote:
CGAL.Facet = OtherFacet
CGAL.Polyhedron.Facet = OtherFacet
p = CGAL.Polyhedron_3()
You're not creating Facet object here, not even Polyhedron.Facet.
Right, which is not the point; I'm trying to override the Facet, a topological
entity of which a Polyhedron is composed
On Thu, Mar 5, 2009 at 7:26 AM, Evan xdi...@gmail.com wrote:
Hello ~
I'm new with python, what my problem is, I have a binary file, I want
to read first 2 bytes and convert it to host byte order, then write it
to another file.
Have you checked out socket.htons, socket.ntohs, etc ?
--
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 5, 9:40 pm, Michael Rudolf spamfres...@ch3ka.de wrote:
Hi, I just wondered how many Packages are in the Python Package Index.
I could not find any counter,
Main page (http://pypi.python.org/pypi), right at the top:
The Python Package Index is a repository of software for the Python
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Evan wrote:
inp='\x04\x00'
out = socket.ntohs(struct.unpack('H',inp[:2])[0]))
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: argument 1 must be string or read-only buffer, not int
Your approach is nearly right.
On Thu, Mar 5, 2009 at 3:32 AM, andrew cooke and...@acooke.org wrote:
Apparently not (this will probably change, but see
http://pypi.python.org/pypi/LEPL/2.0.1 which is currently displaying
restructured text literally)
Did you put the ReST in the description or the long_description? Take
a
On Jan 15, 6:43 am, James Mills prolo...@shortcircuit.net.au
wrote:
...
That is a good idea :) Windows teaches you nothing!
Not true. Windows teaches you the art of the workaround...
--
http://mail.python.org/mailman/listinfo/python-list
ah! thanks very much. that is obviously what i need to do.
i am pretty sure i was doing the wrong thing, but am now at work. i'll
check this tonight.
thanks again,
andrew
David Stanek wrote:
On Thu, Mar 5, 2009 at 3:32 AM, andrew cooke and...@acooke.org wrote:
Apparently not (this will
On Mar 5, 9:50 pm, Philipp Hagemeister phi...@phihag.de wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Evan wrote:
inp='\x04\x00'
out = socket.ntohs(struct.unpack('H',inp[:2])[0]))
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: argument 1 must
Am Thu, 5 Mar 2009 05:38:58 -0800 (PST)
schrieb John Machin sjmac...@lexicon.net:
Main page (http://pypi.python.org/pypi), right at the top:
The Python Package Index is a repository of software for the Python
programming language. There are currently 5883 packages here.
Ooops... totally
On Mar 5, 6:15 am, Steve Holden st...@holdenweb.com wrote:
Hendrik van Rooyen wrote:
Steve Holden ste.nweb.com wrote:
My well-known-search-engine-foo must be at an all-time low today. *Is*
there an index and I can't see for looking?
typing in python weekly at google gives me:
Aahz wrote:
In article mailman.9538.1234633556.3487.python-l...@python.org,
Terry Reedy tjre...@udel.edu wrote:
for line in open('char.txt'):
if line.find('sweet') != -1 or line.find('blue') != -1:
print(line)
For any recent Python, this should be:
if 'sweet' in line or 'blue' in
Thank you so much for your guidance, Bruno.
This should help me in a long way.
Here is the code I have written.
path = raw_input(\nEnter location eg. c:/buffer/test.txt : \n)
fileIN = open(path)
count = 0
for line in fileIN:
data= line
if '' in data:
Hello list,
I need to keep x number of instances of an external applications
running, say /bin/x, but also kill and restart each one after y seconds.
What would be the best way to do this (with python 2.5.x)?
I'm thinking of having a list of running pids, then have a thread check
if len(list)
I have two objects obj1 and obj2. Inside obj1 there is an attribute for
success (obj1.success) and for containing other objects (obj1.data)
I am using setattr() to add obj2 as an attribute to obj1.data
(obj1.data.obj2) this is working fine.
My problem is when someone changes a variable in obj2
Ghirai wrote:
I need to keep x number of instances of an external applications
running, say /bin/x, but also kill and restart each one after y seconds.
What would be the best way to do this (with python 2.5.x)?
easy_install supervisor
it should do everything for you
--
On Mar 5, 8:44 am, nuwandame nuwand...@hotmail.com wrote:
I have two objects obj1 and obj2. Inside obj1 there is an attribute for
success (obj1.success) and for containing other objects (obj1.data)
I am using setattr() to add obj2 as an attribute to obj1.data
(obj1.data.obj2) this is working
Michael Rudolf wrote:
Hi, I just wondered how many Packages are in the Python Package Index.
fwiw
http://bitbucket.org/djerdo/musette/src/tip/tools/download-pypi.py
regards
G.
--
http://mail.python.org/mailman/listinfo/python-list
hi john..
You're missing the issue, so a little clarification...
I've got a number of test parsers that point to a given classlist site.. the
scripts work.
the issue that one faces is that you never know if you've gotten all of
the items/links that you're looking for based on the XPath
Il Thu, 05 Mar 2009 12:54:39 +0100, Peter Otten ha scritto:
mattia wrote:
Il Thu, 05 Mar 2009 10:46:58 +0100, Peter Otten ha scritto:
mattia wrote:
Note how get_roulette_wheel() is now completeley independent of the
concrete problem you are using it for.
Ok, but also a lot more
I have a function that stops execution of a thread, and this function
is registered with atexit.register. A simple example module is
included at the end of this post, say its called test.py. If I do the
following in the interactive interpreter, the thread stops executing
as I hoped:
from test
En Thu, 05 Mar 2009 07:39:20 -0200, andrew cooke and...@acooke.org
escribió:
I have a core loop that is critical to performance. The code is at
http://www.acooke.org/lepl/api/lepl.parser-pysrc.html#trampoline
If I write a separate optimised version of that function for when
monitor is
k,thanks all.
l=map(lambda x: '%02x' %ord(x),d)
s=string.join(l,sep='')
PS#. Endedup learning little bit of Lambda functions. :-)
Scott David Daniels Thanks for your wisdom about the spaces.
Its a 3 liner code-snippet!
--
http://mail.python.org/mailman/listinfo/python-list
Actually, this problem can also be seen by running this code as a
script, it hangs up if the sys.exit lines are commented, and exits
normally if uncommented.
import atexit
import threading
import time
class MyThread(threading.Thread):
def __init__(self):
vibgyorbits wrote:
l=map(lambda x: '%02x' %ord(x),d)
s=string.join(l,sep='')
PS#. Endedup learning little bit of Lambda functions. :-)
That's so 2007...
The 2.5-esque way to write that is
s = ''.join('%02x' % ord(x) for x in d)
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 5, 9:24 am, Marco Mariani ma...@sferacarta.com wrote:
vibgyorbits wrote:
l=map(lambda x: '%02x' %ord(x),d)
s=string.join(l,sep='')
PS#. Endedup learning little bit of Lambda functions. :-)
That's so 2007...
The 2.5-esque way to write that is
s = ''.join('%02x' % ord(x) for x
Gabriel Genellina wrote:
En Thu, 05 Mar 2009 07:39:20 -0200, andrew cooke and...@acooke.org
escribió:
I have a core loop that is critical to performance. The code is at
http://www.acooke.org/lepl/api/lepl.parser-pysrc.html#trampoline
If I write a separate optimised version of that function
Ghirai ghi...@ghirai.com writes:
Does this sound reasonable, or is there an easier way?
Use something like daemontools or upstart. Don't roll your own.
--
http://mail.python.org/mailman/listinfo/python-list
Il Wed, 04 Mar 2009 21:30:54 +0100, Peter Otten ha scritto:
mattia wrote:
Hi everyone, I'm new to python and I want to create some simple code in
order to code the classical genetic algorithm example: given a
population of chromosomes, encoded using 1 and 0, find the chromosome
with the
Aaron Brady wrote:
On Mar 5, 8:44 am, nuwandame nuwand...@hotmail.com wrote:
I have two objects obj1 and obj2. Inside obj1 there is an attribute for
success (obj1.success) and for containing other objects (obj1.data)
I am using setattr() to add obj2 as an attribute to obj1.data
Evan xdi...@gmail.com wrote in message
news:79582a34-5d0b-49b2-8c1e-4139324ff...@b38g2000prf.googlegroups.com...
Hello ~
I'm new with python, what my problem is, I have a binary file, I want
to read first 2 bytes and convert it to host byte order, then write it
to another file.
There is a
On 05 Mar 2009 07:44:44 -0800
Paul Rubin http://phr...@nospam.invalid wrote:
Ghirai ghi...@ghirai.com writes:
Does this sound reasonable, or is there an easier way?
Use something like daemontools or upstart. Don't roll your own.
--
Alright, i'll have a look at those as well as
On Mar 5, 9:51 am, nuwandame nuwand...@hotmail.com wrote:
Aaron Brady wrote:
On Mar 5, 8:44 am, nuwandame nuwand...@hotmail.com wrote:
I have two objects obj1 and obj2. Inside obj1 there is an attribute for
success (obj1.success) and for containing other objects (obj1.data)
I am using
bruce wrote:
hi john..
You're missing the issue, so a little clarification...
I've got a number of test parsers that point to a given classlist site.. the
scripts work.
the issue that one faces is that you never know if you've gotten all of
the items/links that you're looking for based on the
Hendrik van Rooyen wrote:
S Arrowsmith si...intbox.UUCP wrote:
Small integers get a similar treatment:
a = 256
b = 256
a is b
True
a = 257
b = 257
a is b
False
This is weird - I would have thought that the limit
of small would be at 255 - the biggest number to
fit in a byte. 256 takes
Hi everybody,
I have programmed a python package, and I would like to use distutils with
it. My package has the following structure after doing sdist and build:
$ python setup.py sdist
[...]
$ python setup.py build
[...]
$ tree
.
|-- MANIFEST
|-- MANIFEST.in
|-- README
|-- build
| `-- lib
|
don't know if this is useful, but setuptools is a plug-in replacement for
distutils that makes this kind of thing easier (i think).
http://peak.telecommunity.com/DevCenter/setuptools
andrew
TP wrote:
Hi everybody,
I have programmed a python package, and I would like to use distutils with
Aaron Brady wrote:
On Mar 5, 9:51 am, nuwandame nuwand...@hotmail.com wrote:
Aaron Brady wrote:
On Mar 5, 8:44 am, nuwandame nuwand...@hotmail.com wrote:
I have two objects obj1 and obj2. Inside obj1 there is an attribute for
success (obj1.success) and for containing other objects (obj1.data)
Terry Reedy wrote:
Hendrik van Rooyen wrote:
S Arrowsmith si...intbox.UUCP wrote:
Small integers get a similar treatment:
a = 256
b = 256
a is b
True
a = 257
b = 257
a is b
False
This is weird - I would have thought that the limit
of small would be at 255 - the biggest number to fit in
If I have a list and I what to make changes to it.a = [1,2,3,4,5,6,7,8,9]
and maybe I want to drop the odd and double the even numbers and I will
need to do this repeatedly.
How is this best done? That is as a function or class. All I know how to do
is
def doubleeven(alist):
blist = [2*x for
On Mar 4, 2:49 pm, MRAB goo...@mrabarnett.plus.com wrote:
Fab86 wrote:
On Mar 4, 1:40 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 03 Mar 2009 23:11:30 -0200, Fab86 fabien.h...@gmail.com escribió:
On Mar 4, 12:00 am, MRAB goo...@mrabarnett.plus.com wrote:
Fab86 wrote:
On
Piet van Oostrum wrote:
Andre Engels andreeng...@gmail.com (AE) wrote:
AE On Wed, Mar 4, 2009 at 11:02 AM, lone_eagle icym...@gmail.com wrote:
Can someone suggest a easy method to do the inverse of dict(zip(x,y))
to get two lists x and y?
So, if x and y are two lists, it is easier to make a
What happens if you simply call
my_thread.setDaemon(True)
(or in Python 2.6):
my_thread.daemon = True
? That is the documented way to exit worker threads when you want the
application to exit. From the threading module docs:
The entire Python program exits when no alive
Hello,
I am currently working on my program which send queries to Yahoo and
then saves them into a flatfile. The problem I have is that I need to
conduct 200 searches and Yahoo typically times out during the search
with an error. I have caught the error and told it to time.sleep(10)
however I can
mattia wrote:
The last question: how can I improve readability in this piece of code?
def crossover(pop, prob=0.6):
With a crossover probability cross over the parents to form new
offspring. If no crossover was performed, offspring is the exact copy
of parents.
cpop
Hi,
I wanted to learn Python from scratch and start off with Version 3.
Since I already know PHP very well, I thought it would be nice to start
off with a small web-project.
But what's the way to bring python3 to the Web?
mod_python isn't available, cgi is said to be slow, mod_wsgi looks
abhinayaraj.r...@emulex.com a écrit :
ot
Please, don't top-post, and learn to quote snip
(if you don't know what top-posting is, google is your friend).
/ot
Thank you so much for your guidance, Bruno.
This should help me in a long way.
Here is the code I have written.
path =
Hi,
Fab86 wrote:
Hello,
I am currently working on my program which send queries to Yahoo and
then saves them into a flatfile. The problem I have is that I need to
conduct 200 searches and Yahoo typically times out during the search
with an error. I have caught the error and told it to
On Thu, 05 Mar 2009 18:13:05 +0100, Johannes Permoser ee...@yahoo.de wrote:
Hi,
I wanted to learn Python from scratch and start off with Version 3.
Since I already know PHP very well, I thought it would be nice to start
off with a small web-project.
But what's the way to bring python3 to the
I really like the look of Sphinx BUT I want autogenerated
documentation like Epydoc/doxygen. Does anyone know of a frontend for
Sphix that will make it work like Epydoc?
Paul
--
http://mail.python.org/mailman/listinfo/python-list
Fab86 wrote:
Is it possible to get the program to catch the exception, wait 10
seconds, then carry of from where it was rather than starting again?
something like this? probably works in PASCAL as well :)
i=0
while i len(stuff):
try:
do_with(stuff[i])
except SomeError:
Johannes Permoser a écrit :
Hi,
I wanted to learn Python from scratch and start off with Version 3.
Since I already know PHP very well, I thought it would be nice to start
off with a small web-project.
But what's the way to bring python3 to the Web?
mod_python isn't available, cgi is said to
On Mar 5, 12:02 pm, s...@pobox.com wrote:
What happens if you simply call
my_thread.setDaemon(True)
(or in Python 2.6):
my_thread.daemon = True
? That is the documented way to exit worker threads when you want the
application to exit. From the threading module docs:
The
hi..
the url i'm focusing on is irrelevant to the issue i'm trying to solve at
this time.
i think an approach will be to fire up a number of parsing attempts, and to
track the returned depts/classes/etc... in theory (hopefully) i should be
able to create a process to build a kind of statistical
On Mar 5, 2009, at 12:31 PM, bruce wrote:
hi..
the url i'm focusing on is irrelevant to the issue i'm trying to
solve at
this time.
Not if we're to understand the situation you're trying to describe.
From what I can tell, you're saying that the target site displays
different results
On Thu, Mar 5, 2009 at 6:01 PM, Tino Wildenhain t...@wildenhain.de wrote:
Still I'd like to see an application where this really matters (that
keys() and values() match in order)
I think there are many such applications, but also that in each of
those cases it's a mis-programming of something
On Mar 5, 5:23 pm, Marco Mariani ma...@sferacarta.com wrote:
Fab86 wrote:
Is it possible to get the program to catch the exception, wait 10
seconds, then carry of from where it was rather than starting again?
something like this? probably works in PASCAL as well :)
i=0
while i
Fab86 wrote:
On Mar 4, 2:49 pm, MRAB goo...@mrabarnett.plus.com wrote:
Fab86 wrote:
On Mar 4, 1:40 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Tue, 03 Mar 2009 23:11:30 -0200, Fab86 fabien.h...@gmail.com escribió:
On Mar 4, 12:00 am, MRAB goo...@mrabarnett.plus.com wrote:
Fab86
mattia wrote:
... The last question: how can I improve readability in this piece of code?
def crossover(pop, prob=0.6):
With a crossover probability cross over the parents to form new
offspring. If no crossover was performed, offspring is the exact copy of
parents.
cpop =
Johannes Permoser wrote:
But what's the way to bring python3 to the Web?
mod_python isn't available, cgi is said to be slow, mod_wsgi looks
complicated...
WSGI is the right way to go. It's *the* Python standard for web
application interfaces. You don't need mod_wsgi and Apache to run a WSGI
On Mar 5, 6:01 pm, Tino Wildenhain t...@wildenhain.de wrote:
Piet van Oostrum wrote:
Andre Engels andreeng...@gmail.com (AE) wrote:
AE On Wed, Mar 4, 2009 at 11:02 AM, lone_eagle icym...@gmail.com wrote:
Can someone suggest a easy method to do the inverse of dict(zip(x,y))
to get two
Philip Semanchuk wrote:
On Mar 5, 2009, at 12:31 PM, bruce wrote:
hi..
the url i'm focusing on is irrelevant to the issue i'm trying to solve at
this time.
Not if we're to understand the situation you're trying to describe. From
what I can tell, you're saying that the target site displays
On Thu, Mar 5, 2009 at 7:07 PM, psykeedelik icym...@gmail.com wrote:
I usually get properties that I compute, in a dictionary like property
= [key1: val1, key2:val2, ...] and then I usually want to plot them in
pylab, which AFAIK requires x and y as lists for the plot argument.
Then I need to
On Thu, Mar 5, 2009 at 7:46 PM, Andre Engels andreeng...@gmail.com wrote:
If the dict = {key1: val1, key2: val2, ...}, you can do:
for key in dict:
plot(key,dictionary[key])
Of course I meant:
for key in dict:
plot(key,dict[key])
--
André Engels, andreeng...@gmail.com
--
1 - 100 of 240 matches
Mail list logo