Hi,
In my application, I have some configurable information which is used
by different processes. currently I have stored configration in a
conf.py file as name=value pairs, and I am importing conf.py file to
use this variable. it works well
import conf
print conf.SomeVariable
but if I need to c
En Mon, 05 May 2008 00:31:45 -0300, Barclay, Ken <[EMAIL PROTECTED]> escribió:
> I attended David Beazley's awe-inspiring tutorial on the use of
> generators in systems programming:
>http://www.dabeaz.com/generators/
> http://www.dabeaz.com/generators/>
>I used his approach to write a web tool tha
En Mon, 05 May 2008 00:33:12 -0300, skunkwerk <[EMAIL PROTECTED]> escribió:
> i'm redirecting the stdout & stderr of my python program to a log.
> Tests i've done on a simple program with print statements, etc. work
> fine. however, in my actual program i get weird output like this:
>
> 2008-05-0
I have a little robot project I'm programming in python using the
Lynxmotion SSC-32 servo controller via serial. I'd like to use a USB
game controller (PS2 style) to control the robot.
I've read a number of threads about the difficulty of using USB
without extensive understanding of the way it wo
En Mon, 05 May 2008 00:09:02 -0300, hdante <[EMAIL PROTECTED]> escribió:
> Isn't this guy a bot ? :-) It's learning fast. I believe there is a
> "frame" in C, composed of its stack and globals. For generators in C,
> you may look for "coroutines". For example, see:
>
> http://www.chiark.greenend.
[EMAIL PROTECTED] writes:
> file.truncate(X) will truncate the file to at most X bytes (i.e.
> leave the first X bytes of the file and throw away the rest).
Yes, by (IIRC) asking the filesystem to do this in a simple operation.
Most (all?) filesystems support this operation either directly or wit
On Sun, 04 May 2008 22:06:42 -0700, s0suk3 wrote:
> file.truncate(X) will truncate the file to at most X bytes (i.e. leave
> the first X bytes of the file and throw away the rest). Is there a way
> to throw away, say, the first X bytes of the file, and leave the rest?
> (Without opening the same f
file.truncate(X) will truncate the file to at most X bytes (i.e. leave
the first X bytes of the file and throw away the rest). Is there a way
to throw away, say, the first X bytes of the file, and leave the rest?
(Without opening the same file for reading, reading and processing,
overwriting the fi
En Sun, 04 May 2008 17:01:15 -0300, lev <[EMAIL PROTECTED]> escribió:
>> * Change indentation from 8 spaces to 4
> I like using tabs because of the text editor I use, the script at
> the end is with 4 though.
Can't you configure it to use 4 spaces per indent - and not use "hard" tabs?
>> * R
En Sun, 04 May 2008 11:56:14 -0300, joop renes <[EMAIL PROTECTED]> escribió:
> i hope this is the right list for the following question of a c++
> hacker,python newbie. i have a library in c++ to which i want to add a
> python GUI and other python stuff.The library has multithreading
> components,
Hello,
I attended David Beazley's awe-inspiring tutorial on the use of
generators in systems programming:
http://www.dabeaz.com/generators/
http://www.dabeaz.com/generators/>
I used his approach to write a web tool that can display search results
from different log files. But the resulting s
i'm redirecting the stdout & stderr of my python program to a log.
Tests i've done on a simple program with print statements, etc. work
fine. however, in my actual program i get weird output like this:
2008-05-04 20:20:44,790 DEBUG Grabbing message from queue, if any
2008-05-04 20:20:44,790 DEBUG
notbob <[EMAIL PROTECTED]> writes:
> Am I likely to receive any help, here, or is there another irc,
> forum, etc, that might better serve a complete amateur such as
> myself. Thnx.
This forum is particularly welcoming to newbies, I've found. Go ahead
and start a new thread for any Python questio
A 'generator function' -- a function that when called returns a generator
object, a specific type of iterator, is a rather Python specific concept.
Better to think, I think, in terms of writing an iterator 'class' (in C,
struct with associated function). Looking at the implementation of two o
On May 4, 8:11 am, [EMAIL PROTECTED] wrote:
> On May 4, 12:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > En Sun, 04 May 2008 01:08:34 -0300, Marc 'BlackJack' Rintsch <[EMAIL
> > PROTECTED]> escribió:
>
> > > On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
>
> > >> I'm act
On May 4, 6:59 am, Protected <[EMAIL PROTECTED]> wrote:
> On May 4, 12:18 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > On May 4, 5:22 am, Protected <[EMAIL PROTECTED]> wrote:
>
> > > I had previously ran the import line. I prepended it to the example
> > > code I'm trying to run every time but it did not
On May 4, 6:45 pm, notbob <[EMAIL PROTECTED]> wrote:
> I'm trying to learn how to program. I'm using:
>
> How to Think Like a Computer Scientist
>
> Learning with Python
> 2nd Edition
>
> Am I likely to receive any help, here, or is there another irc, forum, etc,
> that might better serve a comple
adolfo <[EMAIL PROTECTED]> writes:
> I downloaded and installed Phyton 2.52 (it works), numpy-1.0.4.win32-
> py2.5, and scipy-0.6.0.win32-py2.5
>
> I can´t get Numpy to show up at Python´s IDLE, or command line. If I
> do:
>
> import Numeric
> # I get
> Traceback (most recent call last):
Gary Herron <[EMAIL PROTECTED]> writes:
> The test was meant to simulate the OP's problem, but even with your suggestion
> of using numpy, it *still* fails!
Well, although I haven't tested it extensively, it doesn't appear to fail for
me, with numpy 1.02 and an AMD Athlon(tm) XP 2800+ under lin
On May 4, 7:45 pm, notbob <[EMAIL PROTECTED]> wrote:
> I'm trying to learn how to program. I'm using:
>
> How to Think Like a Computer Scientist
>
> Learning with Python
> 2nd Edition
>
> Am I likely to receive any help, here, or is there another irc, forum, etc,
> that might better serve a comple
I'm trying to match against Event.type for KeyPress and ButtonPress.
Currently I'm using integer constants (2 and 4). Are these constants
defined anywhere? The docs talk about KeyPress and ButtonPress, but I
don't see them in any of the Tkinter source files. Are these just
magic values that come ou
I downloaded and installed Phyton 2.52 (it works), numpy-1.0.4.win32-
py2.5, and scipy-0.6.0.win32-py2.5
I can´t get Numpy to show up at Python´s IDLE, or command line. If I
do:
import Numeric
# I get
Traceback (most recent call last):
File "", line 1, in
import Numeric
Import
There is also the python tutor list:
http://mail.python.org/mailman/listinfo/tutor
Which is more geared toward beginners. Although I am subscribed to both
lists, and they are both matched by the same filter for me so I wont know
the difference... But there may be people who are not subscribed t
En Sun, 04 May 2008 12:58:25 -0300, Duncan Booth <[EMAIL PROTECTED]> escribió:
> Szabolcs Horvát <[EMAIL PROTECTED]> wrote:
>
>> I thought that it would be very nice if the built-in sum() function used
>> this algorithm by default. Has this been brought up before? Would this
>> have any disadvan
notbob <[EMAIL PROTECTED]> writes:
> Am I likely to receive any help, here, or is there another irc, forum, etc,
> that might better serve a complete amateur such as myself. Thnx.
You're very likely to receive help here. Or at the very least, people will
point you at the best place to get it. F
En Sun, 04 May 2008 08:11:35 -0300, <[EMAIL PROTECTED]> escribió:
> On May 4, 12:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>> En Sun, 04 May 2008 01:08:34 -0300, Marc 'BlackJack' Rintsch <[EMAIL
>> PROTECTED]> escribió:
>>
>> > On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
>
I'm trying to learn how to program. I'm using:
How to Think Like a Computer Scientist
Learning with Python
2nd Edition
Am I likely to receive any help, here, or is there another irc, forum, etc,
that might better serve a complete amateur such as myself. Thnx.
nb
--
http://mail.python.org/m
hey Jeff Sandys sandysj at juno.com
did you manage to get your game up for download it sounds really interesting i
love "home made games"
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
On May 4, 5:22 am, Protected <[EMAIL PROTECTED]> wrote:
I'm pasting the code in IDLE and using Windows XP
Tkinter doesn't work if you type the statements in IDLE it doesn't
> work because IDLE is itself a Tkinter app.
Actually, _because_ IDLE is a Tkint
En Sun, 04 May 2008 03:35:05 -0300, George Sakkis <[EMAIL PROTECTED]> escribió:
> On May 4, 2:04 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>> En Sun, 04 May 2008 02:17:07 -0300, dave <[EMAIL PROTECTED]> escribió:
>>
>> > I made a function that takes a word list (one word per line, text fil
> >
> Thank you very much for your comprehensive answer and detailed informations,
> David; I really appreciate it!
You're welcome.
>
> As for the number of items, there would be approx. 34 000 calls of execute()
> in my present code, in the final version probably more; I think executmany
> is mo
I have both python2.4 and python2.5 as executables, and "python" as a
symbolic link to python2.4. This is the default setup if you install
both from the Debian repositories, so probably with Ubuntu as well.
If you like you can change "python" to point to either one (or to any
other program, if you
WxWidgets, Tkinter, PyQT are all cross platform. Also have a look at
http://wiki.python.org/moin/GuiProgramming
for more GUI frameworks.
RCB
>On May 4, 4:59 am, Protected <[EMAIL PROTECTED]> wrote:
> On May 4, 12:18 pm, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > On May 4, 5:22 am, Protected <[EMAIL
adolfo schrieb:
I am reviewing various visualization programs (Scipy, PYGNL, etc) and
IDE´s. Some run on Python 2.4 others in 2.5.
Can I have both installed at the same time if I don´t run them
concurrently?
Now in Windows XP soon on Ubuntu 8
Appreciating your help,
Yes you can. However you
I am reviewing various visualization programs (Scipy, PYGNL, etc) and
IDE´s. Some run on Python 2.4 others in 2.5.
Can I have both installed at the same time if I don´t run them
concurrently?
Now in Windows XP soon on Ubuntu 8
Appreciating your help,
Adolfo
--
http://mail.python.org/mailman/lis
David wrote:
Hi list.
I've never used unicode in a Python script before, but I need to now.
I'm not sure where to start. I'm hoping that a kind soul can help me
out here.
My current (almost non-existant) knowledge of unicode:
From the docs I know about the unicode string type, and how to decl
globalrev schrieb:
import pygame
pygame.mixer.music.load(example1.mp3)
pygame.mixer.music.play(loops=1, start=0.0)
Traceback (most recent call last):
File "C:\Python25\myPrograms\pygameProgs\musicexp.py", line 3, in
pygame.mixer.music.load(example1.mp3)
NameError: name 'example1' is not
Gilly wrote:
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.
I would reall
Hi list.
I've never used unicode in a Python script before, but I need to now.
I'm not sure where to start. I'm hoping that a kind soul can help me
out here.
My current (almost non-existant) knowledge of unicode:
>From the docs I know about the unicode string type, and how to declare
string type
>
>
> Thank you very much for your comprehensive answer and detailed
informations, David; I really appreciate it!
As for the number of items, there would be approx. 34 000 calls of execute()
in my present code, in the
final version probably more; I think executmany is more efficient
here, if there
On May 4, 7:49 am, David <[EMAIL PROTECTED]> wrote:
> > > D compiles to efficient machine code so Python is at a disadvantage
> > > even if you use the same syntax (see my first example). You can make
> > > the Python version faster, but beware of premature optimization.
>
> > This time I don't
import pygame
pygame.mixer.music.load(example1.mp3)
pygame.mixer.music.play(loops=1, start=0.0)
Traceback (most recent call last):
File "C:\Python25\myPrograms\pygameProgs\musicexp.py", line 3, in
pygame.mixer.music.load(example1.mp3)
NameError: name 'example1' is not defined
example1 is
Threading was recommended to me as a way to time things:
http://docs.python.org/lib/timer-objects.html
Dunno if that helps you.
-Chuckk
On Sun, May 4, 2008 at 8:11 PM, Gilly <[EMAIL PROTECTED]> wrote:
> Hi
> I am trying to create an application that uses some form of input to
> create a midi fil
Joseph <[EMAIL PROTECTED]> wrote:
> All: I have written a program to query Amazon with ISBN and get the
> book details. I would like to extend so that I can read ISBN from the
> barcode (I will take a photo of the same using webcam or mobile). Are
> there any opensource/free SDK doing the same?
In article <[EMAIL PROTECTED]>,
Gary Herron <[EMAIL PROTECTED]> wrote:
>
>However, the upshot of all of this is that one must maintain extreme
>skepticism. Unless you know both your Python code and any extension
>modules you call, and you know them at a level necessary to find such
>details,
Gilly skrev:
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.
Perhaps cso
> * Remove newlines introduced by email
> * Move imports to start of file
used imports of the edited script you sent.
> * Change indentation from 8 spaces to 4
I like using tabs because of the text editor I use, the script at
the end is with 4 though.
> * Move main() to bottom of script
> *
Gilly schrieb:
On May 4, 9:14 pm, David <[EMAIL PROTECTED]> wrote:
On Sun, May 4, 2008 at 7:11 PM, Gilly <[EMAIL PROTECTED]> wrote:
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
Carl Banks wrote:
On May 4, 12:03 pm, Gary Herron <[EMAIL PROTECTED]> wrote:
Alexander Schmolck wrote:
Gary Herron <[EMAIL PROTECTED]> writes:
But... It's not!
A simple test shows that. I've attached a tiny test program that shows this
extremely clearly. Please run
On 4 Mag, 19:18, Francesco Bochicchio <[EMAIL PROTECTED]> wrote:
> On Sun, 04 May 2008 08:49:55 -0700, Giampaolo Rodola' wrote:
> > Hi there,
> > since the socket.socket.family attribute has been introduced only in
> > Python 2.5 and I need to have my application to be backward compatible
> > with
On May 4, 9:14 pm, David <[EMAIL PROTECTED]> wrote:
> On Sun, May 4, 2008 at 7:11 PM, Gilly <[EMAIL PROTECTED]> wrote:
> > Hi
> > I am trying to create an application that uses some form of input to
> > create a midi file.
> > I would like for this to be a 'real time' process. In other words, I
On May 4, 2:13 pm, Carl Banks <[EMAIL PROTECTED]> wrote:
> However, what I said was not wholly untrue: code in C extensions is
> protected by the GIL and thus not interruptable, unless it either
> releases the GIL, or calls back into Python code (which is apparently
> what numpy scalars do).
And,
> block. Is there any better way to get the HTTP Error code using urllib2
> lib. Something like know the exact response number (200, 404 etc) without
> the above block.
Python libraries usually throw exceptions to indicate error conditions.
If this is a problem in your app then can write a wra
2008/5/4 David <[EMAIL PROTECTED]>:
> > What I want is display a window with a image, the user select a region
> of
> > the image, and the region value is passed to my program, my program
> slice
> > the image region, and analyze it.
> >
>
> If it's your apps own window, then getting a rectangle s
On May 4, 12:03 pm, Gary Herron <[EMAIL PROTECTED]> wrote:
> Alexander Schmolck wrote:
> > Gary Herron <[EMAIL PROTECTED]> writes:
>
> >> But... It's not!
>
> >> A simple test shows that. I've attached a tiny test program that shows
> >> this
> >> extremely clearly. Please run it and watch it f
On Sun, May 4, 2008 at 7:11 PM, Gilly <[EMAIL PROTECTED]> wrote:
> Hi
> I am trying to create an application that uses some form of input to
> create a midi file.
> I would like for this to be a 'real time' process. In other words, I
> want to be able to begin playing the midi file before I fin
> What I want is display a window with a image, the user select a region of
> the image, and the region value is passed to my program, my program slice
> the image region, and analyze it.
>
If it's your apps own window, then getting a rectangle selected by the
user is simple.
1) Make skeleton x/g
On May 5, 1:16 am, Thorsten Kampe <[EMAIL PROTECTED]> wrote:
> * ZeeGeek (Sun, 4 May 2008 08:59:05 -0700 (PDT))
>
> > Hi, what's the default localedir for gettext module on windows? In
> > Linux, it's /usr/share/locale. Where should I put the *.mo file in
> > order to make the translation work?
>
>
Hi,
2008/5/4 David <[EMAIL PROTECTED]>:
> On Sun, May 4, 2008 at 5:28 PM, Valerio Valerio <[EMAIL PROTECTED]> wrote:
> > I can grab the image, I need a way of grab the region size with the
> mouse,
> > a easy way of the user select a region of the image to analyze,
> something
> > like the "Rec
>
> Another way would be to listen to all events sent through X, and act
> based on the mouse events. VNC does something similar.
>
See the 'record_demo.py' example that comes with python-xlib.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, May 4, 2008 at 5:28 PM, Valerio Valerio <[EMAIL PROTECTED]> wrote:
> I can grab the image, I need a way of grab the region size with the mouse,
> a easy way of the user select a region of the image to analyze, something
> like the "Rectangle selection tool" of gimp.
>
I assume what you w
* ZeeGeek (Sun, 4 May 2008 08:59:05 -0700 (PDT))
> Hi, what's the default localedir for gettext module on windows? In
> Linux, it's /usr/share/locale. Where should I put the *.mo file in
> order to make the translation work?
%PYTHONHOME%\share\locale
Thorsten
--
http://mail.python.org/mailman/lis
Hi
I am trying to create an application that uses some form of input to
create a midi file.
I would like for this to be a 'real time' process. In other words, I
want to be able to begin playing the midi file before I finish writing
it, and continue writing as it plays.
I would really appreciate an
On Sun, 04 May 2008 08:49:55 -0700, Giampaolo Rodola' wrote:
> Hi there,
> since the socket.socket.family attribute has been introduced only in
> Python 2.5 and I need to have my application to be backward compatible
> with Python 2.3 and 2.4 I'd like to know how could I determine the
> family of
Anton81 schrieb:
I have a directory structure like
NS/dir1/file1.py
NS/dir2/file2.py
This *must* be wrong or at least not the full directory listing - please
read
http://docs.python.org/tut/node8.html
if in the python shell I type
import NS.dir1.file1
it works, however typing
import N
I have a directory structure like
NS/dir1/file1.py
NS/dir2/file2.py
if in the python shell I type
import NS.dir1.file1
it works, however typing
import NS.dir2.file2
fails with
ImportError: No module named dir2.file2
Any ideas what could go wrong?
Directory permissions seem to be OK.
--
htt
2008/5/4, Giampaolo Rodola' <[EMAIL PROTECTED]>:
> For now I've been able to determine the family by using:
>
> # self.socket = a connected socket.socket instance
> ip, port = self.socket.getsockname()[0:2]
> af = socket.getaddrinfo(ip, port)[0][0]
>
> ...but I'd like to know if some other sol
Alexander Schmolck <[EMAIL PROTECTED]> wrote:
> Gary Herron <[EMAIL PROTECTED]> writes:
>
>> But... It's not!
>>
>> A simple test shows that. I've attached a tiny test program that
>> shows this extremely clearly. Please run it and watch it fail.
>
> In [7]: run ~/tmp/t.py
> final count: 200
Alexander Schmolck wrote:
Gary Herron <[EMAIL PROTECTED]> writes:
But... It's not!
A simple test shows that. I've attached a tiny test program that shows this
extremely clearly. Please run it and watch it fail.
In [7]: run ~/tmp/t.py
final count: 200
should be: 200
(I
Hi, what's the default localedir for gettext module on windows? In
Linux, it's /usr/share/locale. Where should I put the *.mo file in
order to make the translation work?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Szabolcs Horvát <[EMAIL PROTECTED]> wrote:
> I thought that it would be very nice if the built-in sum() function used
> this algorithm by default. Has this been brought up before? Would this
> have any disadvantages (apart from a slight performance impact, but
> Python is a high-level languag
=
PyPy Berlin Sprint (17-22nd May 2008)
=
The next PyPy sprint will be in the crashed `c-base space station`_,
Berlin, Germany, Earth, Solar System. Thi
I can grab the image, I need a way of grab the region size with the mouse,
a easy way of the user select a region of the image to analyze, something
like the "Rectangle selection tool" of gimp.
Regards,
--
Valério Valério
http://www.valeriovalerio.org
2008/5/4 David <[EMAIL PROTECTED]>:
> O
On May 3, 7:05 pm, sturlamolden <[EMAIL PROTECTED]> wrote:
> On May 3, 10:13 pm, hdante <[EMAIL PROTECTED]> wrote:
>
> > I believe that moving this to third party could be better. What about
> > numpy ? Doesn't it already have something similar ?
>
> Yes, Kahan summation makes sence for numpy arra
On Sunday 04 May 2008, Lance Gamet wrote:
> Hi,
> about 3 years ago I did a bit of Qt3 and 4 on C++, now I am trying to do
> something in python.
>
> A QMainWindow subclass as my mainwindow. Its basically a frame with no
> widgets of its own.
>
> Several QWidget subclasses each representing a mode
Hi all
I can not creat a usable audio file in the aiff format. The example code
below creates a wav file that I can listen to just fine. However, I just get
noise when I listen to the resulting aiff file. Is this a byte order
problem? I am using Python 2.5.2 on Windows XP. Any guidance on this iss
hi,
i hope this is the right list for the following question of a c++
hacker,python newbie. i have a library in c++ to which i want to add a
python GUI and other python stuff.The library has multithreading
components, while python uses a reference counted memory model. Usually
mixing reference coun
D'Arcy J.M. Cain wrote:
On Tue, 29 Apr 2008 15:03:23 -0400
"J. Cliff Dyer" <[EMAIL PROTECTED]> wrote:
Or, if you aren't sure how many colors you'll be using, try the more
robust:
bg[z % len(bg)]
Good point although I would have calculated the length once at the
start rather than each time thr
Hi there,
since the socket.socket.family attribute has been introduced only in
Python 2.5 and I need to have my application to be backward compatible
with Python 2.3 and 2.4 I'd like to know how could I determine the
family of a socket.socket instance which may be AF_INET or AF_INET6.
Is there some
On Sun, May 4, 2008 at 4:25 PM, Valerio Valerio <[EMAIL PROTECTED]> wrote:
> Hi,
>
> anyone know a Python library to grab the size of a selected image region
> (the selection will be made with the mouse), that work in Linux ?
You might be able to use this tool:
http://freshmeat.net/projects/gtksh
Hi,
anyone know a Python library to grab the size of a selected image region
(the selection will be made with the mouse), that work in Linux ?
I found a module to do that in the PIL library but only work in Windows -
http://www.pythonware.com/library/pil/handbook/imagegrab.htm
Thanks in advance.
Hello!
I'm pleased to announce version 0.10.1, a bugfix release of 0.10 branch
of SQLObject.
What is SQLObject
=
SQLObject is an object-relational mapper. Your database tables are described
as classes, and rows are instances of those classes. SQLObject is meant to be
easy to u
Hello!
I'm pleased to announce version 0.9.6, a minor bug fix release of SQLObject.
What is SQLObject
=
SQLObject is an object-relational mapper. Your database tables are described
as classes, and rows are instances of those classes. SQLObject is meant to be
easy to use and qu
On Sun, May 4, 2008 at 1:41 PM, Joseph <[EMAIL PROTECTED]> wrote:
> All: I have written a program to query Amazon with ISBN and get the
> book details. I would like to extend so that I can read ISBN from the
> barcode (I will take a photo of the same using webcam or mobile). Are
> there any open
On Sun, May 4, 2008 at 2:48 PM, Vladimir Kropylev <[EMAIL PROTECTED]> wrote:
> please remove me from this list, thanks
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Follow that link (http://mail.python.org/mailman/listinfo/python-list)
and see the "Python-list Subscribers" section
Gary Herron <[EMAIL PROTECTED]> writes:
> But... It's not!
>
> A simple test shows that. I've attached a tiny test program that shows this
> extremely clearly. Please run it and watch it fail.
In [7]: run ~/tmp/t.py
final count: 200
should be: 200
(I took the liberty to correct yo
> > D compiles to efficient machine code so Python is at a disadvantage
> > even if you use the same syntax (see my first example). You can make
> > the Python version faster, but beware of premature optimization.
>
> This time I don't agree with this "premature optimization" thing. My
> origi
please remove me from this list, thanks
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to use the pylab plot command on my laptop running Ubuntu
6.06 (Dapper). Although the plot command works fine on my XP desktop
at work, I cannot open the plot window on the laptop. I edited
matplotlibrc to change interactive: to "True". In idle, I entered the
commands:
>>> from
Eh, I forgot the attachment.
#!/usr/bin/env python
import md5
from glob import glob
from optparse import OptionParser
from os import chdir, path, rename, remove
from sys import argv
def check(checksums):
checksums = open(checksums, 'r')
chgfiles = {}
msngfiles = []
for fline in ch
On Sun, May 4, 2008 at 4:43 AM, lev <[EMAIL PROTECTED]> wrote:
> Can anyone provide some advice/suggestions to make a script more
> precise/efficient/concise, etc.?
Hi, I started tidying up the script a bit, but there are some parts I
don't understand or look buggy. So I'm forwarding you the vers
On May 4, 12:18 pm, [EMAIL PROTECTED] wrote:
> On May 4, 5:22 am, Protected <[EMAIL PROTECTED]> wrote:
>
> > I had previously ran the import line. I prepended it to the example
> > code I'm trying to run every time but it did not help, still nothing
> > happens. With or without var before 'root'. I
[EMAIL PROTECTED] writes:
> George Sakkis:
>> A faster algorithm is to create a 'key' for each word, defined as the
>> tuple of ord differences (modulo 26) of consecutive characters.
>
> Very nice solution, it uses the same strategy used to find anagrams,
> where keys are
> "".join(sorted(word))
>
All: I have written a program to query Amazon with ISBN and get the
book details. I would like to extend so that I can read ISBN from the
barcode (I will take a photo of the same using webcam or mobile). Are
there any opensource/free SDK doing the same? As it is a hobby
project, I don't like to spe
On May 4, 12:33 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sun, 04 May 2008 01:33:45 -0300, Jetus <[EMAIL PROTECTED]> escribió:
>
> > Is there a good place to look to see where I can find some code that
> > will help me to save webpage's links to the local drive, after I have
> > used
On May 4, 5:22 am, Protected <[EMAIL PROTECTED]> wrote:
> I had previously ran the import line. I prepended it to the example
> code I'm trying to run every time but it did not help, still nothing
> happens. With or without var before 'root'. I'm pasting the code in
> IDLE and using Windows XP as w
On May 4, 12:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sun, 04 May 2008 01:08:34 -0300, Marc 'BlackJack' Rintsch <[EMAIL
> PROTECTED]> escribió:
>
> > On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
>
> >> I'm actually curious if there's a way to write a generator function
>
cocobear wrote:
> On 5月3日, 下午7时17分, cocobear <[EMAIL PROTECTED]> wrote:
>> How to deal with multiple databases in an file. I want to get the
>> content of several databases.
(...)
> Anybody can help me?
I believe you can only have one database per file with the Python
abstraction... But you c
George Sakkis:
> A faster algorithm is to create a 'key' for each word, defined as the
> tuple of ord differences (modulo 26) of consecutive characters.
Very nice solution, it uses the same strategy used to find anagrams,
where keys are
"".join(sorted(word))
Such general strategy to look for a pos
David:
> What do you mean by best possible? Most efficient? Most readable?
What's a good wine? It's not easy to define what's "good/best". In
such context it's a complex balance of correct, short, fast and
readable (and more, because you need to define a context. This context
refers to Psyco too)
1 - 100 of 116 matches
Mail list logo