I have installed Gary Bishop's readline library and Thomas
Heller's cypes; I have Python 2.4 ActiveState distribution.
When I try to import readline I get the following error:
C:\Programmi>python
ActivePython 2.4 Build 243 (ActiveState Corp.) based on
Python 2.4 (#60, Nov 30 2004, 09:34:21) [MSC v
John Machin wrote:
Test:
!for k in range(1000):
!open('foo' + str(k), 'w')
I ran that and watched it open 2 million files and going strong ...
until I figured that files are closed by Python immediately because
there's no reference to them ;-)
Here's my code:
#!/usr/bin/env python
import os
: Otherwise, you may want to look at a specialized data structure for
: doing mutiple keyword matching; I had an older module that wrapped
: around a suffix tree:
:http://hkn.eecs.berkeley.edu/~dyoo/python/suffix_trees/
: It looks like other folks, thankfully, have written other
: implementat
Philip,
more often than not, all needed was included in Python years ago.
Especially:
> I wonder if anyone has any thoughts not on where Python should go but
> where it should stop?
The answer is included within the standard library. On any Python command
prompt type:
>>>import this
The Zen
gf gf wrote:
> I read that lower() is deprecated. Unfortunately, I
> can't find the preferred way of lowercasing a string.
> What is it?
Instead of string.lower(s), use s.lower()
--
http://mail.python.org/mailman/listinfo/python-list
Andrew MacIntyre wrote:
If you can, I'd suggest posting a bug report on SF against 2.4 to see
whether you can encourage the installer builder to upgrade BSD DB -
though do be certain to check what's in 2.4.1c1 first.
It's 4.2.52, and I don't think I'm going to use anything else for 2.4.1.
In fact
Gianluca Sartori wrote:
> Hi guys,
>
> What web framework do you suggest to develop with? I had a look both
at
> Nevow and Quixote. These seemes to be the most appreciated by the
> community. Anyway, I had no luck looking for a complete and coherent
> documentation.
>
> Thanks for any suggestion,
You should definitely have a look at Zope 3. There is good
documentation available and it can do a lot of good stuff.
--
http://mail.python.org/mailman/listinfo/python-list
gf gf wrote:
I read that lower() is deprecated.
Most of the functions in the string module are deprecated, yes. They
have been replaced by string methods on the string objects themselves.
These methods are *not* deprecated.
In [1]: s = 'I aM a hApPY lITtLe STRing thAt WAnTS to Be loWEr CaSE.'
I
Martin v. Löwis wrote:
Vincent Wehren wrote:
is there a reason why msiexec iterates through what looks like all (?)
files and directories in/under the destination directory? There is
massive file I/O going on there (OK, by now you know I didn't
de-install 2.4 before trying ;-)) which explains th
Hello Everyone,
I am new to python and I am trying to get a program
to close a application when the Escape Key is pressed.
This is the code that I used
-
from Tkinter import *
class Application(Frame):
def createWidgets(self):
self.lab =
I've created a ghetto-ized ComboBox that should work nicely for Tkinter
(unfortunately no dropdown capabilities yet).
I've found why it's such a pain in the @ss to create one. You have to
re-create common methods and make sure they're mapped to the right
component (inside this widget are frame, en
Binny,
The only way I could think to get this done was like so:
from Tkinter import *
class Application: # take away the inherited class
def end(self, event):
self.master.destroy()
def createWidgets(self):
self.lab = Label(text="Hello World")
Or if you prefer you can download it here:
http://www.seritt.org/pub/tkinter/Tkinter-03132005.py
Replace your Tkinter.py with this one. Make sure you back up your old
one in case you decide mine sucks.
Thanks,
Harlin
--
http://mail.python.org/mailman/listinfo/python-list
jrlen balane wrote:
> the hardware is a school project that uses a microcontroller for
"light dimming"
> the message command "67" will tell the microcontroller (PIC16F877) to
> do a command (to control the intensity of a lamp)
> the message command "70" should tell the GUI that the microcontroller
Daniel Yoo wrote:
>
> Here you go:
>
> http://hkn.eecs.berkeley.edu/~dyoo/python/ahocorasick/
>
> This provides an 'ahocorasick' Python C extension module for doing
> matching on a set of keywords. I'll start writing out the package
> announcements tomorrow.
>
Looks good.
However:
tree.sea
[EMAIL PROTECTED] wrote:
L=[['A', 100], ['B', 300], ['A', 400], ['B', -100]]
I want to aggregate these lists, i.e. to reduce L to
L=[['A', 500], ['B', 200]] #500 = 100+400, 200=300-100
"""
from itertools import groupby
from operator import itemgetter
[(key, sum(item[1] for item in sublist))
for ke
"Earl Eiland" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> os.path.getsize(Inputdirectory + '\\' + Filename) works, but
> os.path.getsize(Inputdirectory + '\\' + Filename.split('.') + '.ext')
> Fails reporting "no such file or directory
> InputDirectory\\Filename.ext".
> os.path.g
That shouldn't happen AFAICT. Check line 108 in keysyms.py and make
sure it says "vk = VkKeyScan(ord(char))".
--
http://mail.python.org/mailman/listinfo/python-list
Gensek wrote:
Thanks, guys, it works now. I couldn't have done it without your
generous help.
You're welcome! Any time.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
Stephen Waterbury wrote:
> Diez B. Roggisch wrote:
>> ... corba is 10-100 times faster over
>> the network than soap/xmlrpc. ...
>
> I'm not challenging these statistics (because I don't know),
> but I would be interested in the source. Are you referring
> to the results of an actual benchmark,
"Wim Goffin" wrote:
>>> Hi,
hello,
>>> I'm trying to get a bitmap onto a button, but I can't.
>>> Can anyone tell me where to look for a solution?
>>>
>>> The call I use is this one:
>>> self.b = Button(toolbar, text="nieuw", bitmap="@/test.xbm",
>>> width=20, command=self.print_msg)
>>>
>>> The
Thank you for your very good and interesting answer Raymond. In the
Itertool library there are functions not really simple to use/remember,
but a flatten() and a partition() can probably be easy to remember
(your window() function is probably a sliding window, so it's not a
partition(), I presume).
Binny V A wrote:
Hello Everyone,
I am new to python and I am trying to get a program
to close a application when the Escape Key is pressed.
Here is a version that works. The changes from yours:
- Bind , not
- Bind the key to the root, not the frame
- Define a quit() method that takes an event par
Hi,
I've tried to execute from the buffer (C-c C-c) this python script:
s=''
s=raw_input('Enter a string:')
but I got this error:
Enter a string:Traceback (most recent call last):
File "", line 2, in ?
EOFError: EOF when reading a line
I'm using Xemacs 21.5.19 compiled on Fedora Core 3 --with-mul
I have a test app that I am creating an Innosetup script for.
Everything works great except for the fact that my icons (start menu
and desktop) are not starting the executable in the appropriate
directory. This is causing problems because it can't find "icon.ico"
and other stuff. When I go and manu
Harlin Seritt wrote:
I have a test app that I am creating an Innosetup script for.
Everything works great except for the fact that my icons (start menu
and desktop) are not starting the executable in the appropriate
directory. This is causing problems because it can't find "icon.ico"
and other stuf
the assembly program for the microcontroller is created by a
classmate. he based the protocol for the serial program from a
protocol he found in the internet. unfortunately, i can't find the
fpdf file, guess i'll just ask him later when he comes back.
On 13 Mar 2005 03:28:43 -0800, John Machin <[E
The default character set used by MySQL for the connection is latin1.
If you control the server, you can configure this in the system my.cnf.
Otherwise, it is possible to set it in a local configuration file and
use the read_default_file option to connect to set it.
http://dev.mysql.com/doc/mysql/
That line seems right. The function is
def char_to_keyinfo(char, control=False, meta=False, shift=False):
vk = VkKeyScan(ord(char))
if vk & 0x == 0x:
print 'VkKeyScan("%s") = %x' % (char, vk)
raise ValueError, 'bad key'
if vk & 0x100:
shift = True
if vk & 0x200:
con
How can I load a module (written in C as a shared
library (.so)) through "PyRun_SimpleString"?
I've tried "from import *", but a got a
message: ImportError: No module named
Thanks in advance.
Erocha
Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://
Thanks Will! That did the trick.
--
http://mail.python.org/mailman/listinfo/python-list
Possibly. Is the ` sign available as an unmodified key?
--
http://mail.python.org/mailman/listinfo/python-list
Thank you all so much for the generous dollop of help: the dictionary
suggestion is particularly helpful. The problem arises as follows: A
software application stores the securities held in a portfolio in a
.csv file, one row per security, with three colulmns.
The first has a security identifier o
Thanks Steve! Your observation was spot-on. Changed to the correct
SMTP
host name, and it's all set.
The error message 'Connection refused' got me thinking that the SMTP
server
wouldn't allow this or required some authentication, or etc.
Chuck
--
http://mail.python.org/mailman/listinfo/python
Eduardo Rodrigues wrote:
> How can I load a module (written in C as a shared
> library (.so)) through "PyRun_SimpleString"?
>
> I've tried "from import *", but a got a
> message: ImportError: No module named
You can't do this. You have to either wrap the module - which is possible in
several w
[EMAIL PROTECTED] wrote:
Thank you all so much for the generous dollop of help: the dictionary
suggestion is particularly helpful. The problem arises as follows: A
software application stores the securities held in a portfolio in a
.csv file, one row per security, with three colulmns.
The first has
Hi All,
I need in help for configuring python news site in Mozilla Thunderbird.
What is the address of Python newsgroup site ?
Any other newsgroups related to Python or any programming language will
be appreicated.
Regards,
Kanthi
--
http://mail.python.org/mailman/listinfo/python-list
Bengt Richter wrote:
Sorry for jumping in with a largely irrelevant comment. I didn't look
at the code, just sought to illustrate the 6/18 thing further, in a kneejerk
reaction.
Though BTW FWIW the visual sequence of glyphs representing the data was more a
str output
than repr, I guess:
>>> repr
Dennis Lee Bieber wrote:
rx_data1=0
while (rx_data1 != 0x46):
rx_data1 = ser.read(1)
(rx_command) = unpack('1B', rx_data1)
Isn't this unpack rather redundant -- assuming ser.read(1) only
reads one byte, then rx_data1 and rx_command would be identical.
Brain fart... unpack converts the raw
[EMAIL PROTECTED] wrote:
What I am trying to do is get information
from a raised custom exception. I am catching the exception in a
main() function but it was actually raised in a separate module
function. It would be nice if I could print out where the exception
was raised from (module.functio
I'd say Nevow! For apache setup, you might be interested in my wsgi [1]
implementation.
[1]
http://twistedmatrix.com/pipermail/twisted-web/2005-March/001293.html
--
http://mail.python.org/mailman/listinfo/python-list
D H wrote:
Ask on the wxpython or python-tutor list instead of this one. You'll
get better help than there as you've already found out.
Not likely. IMHO he got the best help he could possibly
have gotten, but clearly that's debatable. :-)
The only thing I'd agree with is what Michael Hoffman sai
I have a tkinter 'Text' and 'Scrollbar' connected and working
normally. When a new line of text is inserted (because I'm monitoring
an output stream), I'd like the text and scrollbar to be scrolled to
the bottom, so the latest line of text is always shown. How to do
this? Thanks,
--
Benjamin Ru
Hi,
I'm using NumPy to build an array of a
list of names that will be of multiple
dimensions.I did do a google on this
subject, but couldn't find what I was looking
for. The problem I'm having is there are
space between each character in each name.
To fix this
I used the attribute 'tostring'. Thi
D H wrote:
Peter Hansen wrote:
Dave Zhu wrote:
Is there any survey on scripting languages? I would
like to get information on several scripting languages
including Python, Perl, Ruby, Tcl, etc.
What kind of information? ...
See the other responses to his question.
Why would I want to do that? Did
Almost this exact parser, called fourFn.py, is included in the examples
with pyparsing (at http://pyparsing.sourceforge.net). Since it is pure
Python, you can extend the grammar with whatever builtin functions you
like. But it *is* a parser, not just a short cut.
-- Paul
--
http://mail.python.
Hello,
Sorry for this maybe stupid newbie question but I didn't find any
answer in all my readings about python:
With urllib, using urlretrieve, it's possible to get the number of
blocks transferred and the total size of the file.
Is it possible to get those informations with urllib2 ?
( I have
@ sir Peter
so you mean that it is correct (at least on the unpack() part)
when i run this program on IDLE , Python 2.3 (enthought edition),
nothing is outputted on the shell, until i decide to close the shell,
wherein it tells me if i would like to kill a process...
import serial
import string
Wow, thanks so much guys!
"Michael Spencer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Brian Kazian wrote:
>> Thanks for the help, I didn't even think of that.
>>
>> I'm guessing there's no easy way to handle exponents or logarithmic
>> functions? I will be running into thes
i am working on an MDIParentFrame and MDIChildFrame. Now, what i want
to do is make the ChildFrame not that easy to close by removing the
close button (the X on the right most corner of the window) if this is
possible...
how am i going to do this?
--
http://mail.python.org/mailman/listinfo/python
Hi there,
we have started with some people from our LUG (Linux User Group) a 'little'
project, called LMMS (Linux Multimedia System). When it's 'finished' it
shall be a window-manager for use on TV and handle with joysticks/gamepads.
As the name says, it is for multimedia-applications, like list
No, I don't even know how to get it under Windows (usually I use
Linux). Switching to the US keyboard
does not help, anyway. I get the same error.
Michele
--
http://mail.python.org/mailman/listinfo/python-list
On 13 Mar 2005 01:13:00 -0800, [EMAIL PROTECTED] wrote:
>You should definitely have a look at Zope 3. There is good
>documentation available and it can do a lot of good stuff.
But then, the thing I hate about Zope, is that source code is not
accessible with normal development tools since it's stu
Marek Franke wrote:
> Hi there,
>
> we have started with some people from our LUG (Linux User Group) a
'little'
> project, called LMMS (Linux Multimedia System). When it's 'finished'
it
> shall be a window-manager for use on TV and handle with
joysticks/gamepads.
>
> As the name says, it is for mu
Joe wrote:
> On 13 Mar 2005 01:13:00 -0800, [EMAIL PROTECTED] wrote:
>
>>You should definitely have a look at Zope 3. There is good
>>documentation available and it can do a lot of good stuff.
>
> But then, the thing I hate about Zope, is that source code is not
> accessible with normal developm
Hello all, I am still needing some help on this code, I have gone a bit
further on it. Thank you for the help. I am trying to understand how to
make the file searchable and how I am to make the deposit and withdrawl
interact with the transaction class.
class Account:
def __init__(self, initia
> Be sure to check out freevo at http://freevo.sourceforge.net/ as it is
> quite similar to what you are describing and they are quite far along.
>
> max
Yes, there are a lot of projects like LMMS, just take a look at
www.freshmeat.net or www.sourceforge.net. Or MythTV is something like LMMS
too.
On Sun, 13 Mar 2005 10:46:52 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
>Bengt Richter wrote:
>> Sorry for jumping in with a largely irrelevant comment. I didn't look
>> at the code, just sought to illustrate the 6/18 thing further, in a kneejerk
>> reaction.
>> Though BTW FWIW the visual seq
Marek Franke wrote:
too. The whole project is just for fun. Afaik Freevo and/or MythTV are
written in C/C++ and don't have any support for joysticks (afaik!). And the
Freevo is pure python already ;)
Greetings, Roland
--
http://mail.python.org/mailman/listinfo/python-list
I am sure this is old news, the syntax of python is crazy to me.
There I said it, I'm sure I'll get over it or around it.
I was trying to make a whois script work and was unable.
May be someone with lint-like eyes can tell what's wrong.
Using xemacs I had hoped that python mode would do more
for
> >Have you read the BDFL's "Python Optional Typechecking Redux" ?
>
> Yes.
>
> >(http://www.artima.com/weblogs/viewpost.jsp?thread=89161)
> >It's usage of adapt assumes that "a class is a protocol", so I
> >guess that it does not work with the new version of PEP 246.
>
> Why not? There's nothin
On Sun, 13 Mar 2005 09:25:43 -0800, jrlen balane wrote:
> i am working on an MDIParentFrame and MDIChildFrame. Now, what i want
> to do is make the ChildFrame not that easy to close by removing the
> close button (the X on the right most corner of the window) if this is
> possible...
>
> how am i
Hello!
You should at least close the 'try' block, which you started
at line 68 (if i'm not mistaken):
def _whois(domainname, whoisserver):
s = None
## try until we are connected
while s == None:
try:
There is no corresponding 'except' till DomainRecord class
definition.
Philip Smith wrote:
>
> Conventions on type conversion are just one example. Without using
> strict coding conventions the richness of the language could, and
> often did, result in ambiguity. In my experience too C++ has
> defeated its own object (eg portability) - I've given up in many
> cases
Stefan Behnel schreef:
> Meaning: Put the assembler into the doc-string of a function. Then
> use a decorator to run the assembler on the function's __doc__ string
> and build an assembly function that takes the same arguments to make
> the assembly function directly callable.
That would 'disa
On 13 Mar 2005 11:22:54 -0800, [EMAIL PROTECTED] wrote:
>I am sure this is old news, the syntax of python is crazy to me.
>There I said it, I'm sure I'll get over it or around it.
>
>I was trying to make a whois script work and was unable.
>
>May be someone with lint-like eyes can tell what's wron
Benjamin Rutt wrote:
I have a tkinter 'Text' and 'Scrollbar' connected and working
normally. When a new line of text is inserted (because I'm monitoring
an output stream), I'd like the text and scrollbar to be scrolled to
the bottom, so the latest line of text is always shown. How to do
this? Th
Harlin Seritt wrote:
I've created a ghetto-ized ComboBox that should work nicely for Tkinter
(unfortunately no dropdown capabilities yet).
I've found why it's such a pain in the @ss to create one. You have to
re-create common methods and make sure they're mapped to the right
component (inside this
"Fredrik Bertilsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I am trying to overload the "and" operatior, but my __and__ method is
> never called.
That is because, properly speaking, 'and' and 'or' are, in Python, in-line
flow-control keywords (related to 'if' and 'else'),
Kent Johnson wrote:
Binny V A wrote:
Hello Everyone,
I am new to python and I am trying to get a program to close a
application when the Escape Key is pressed.
Here is a version that works. The changes from yours:
- Bind , not
These amount to the same thing AFAIK
- Bind the key to the root, not
"Raymond Hettinger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> FWIW, requests for additions to the itertools module have not fallen on
> deaf
> ears. There are no arbitrary restraints on building out this module.
> Each
> request has gotten careful thought and a couple of th
Martin Franklin wrote:
Harlin Seritt wrote:
I've created a ghetto-ized ComboBox that should work nicely for Tkinter
(unfortunately no dropdown capabilities yet).
I've found why it's such a pain in the @ss to create one. You have to
re-create common methods and make sure they're mapped to the right
Marek Franke wrote:
Hi there,
we have started with some people from our LUG (Linux User Group) a 'little'
project, called LMMS (Linux Multimedia System). When it's 'finished' it
shall be a window-manager for use on TV and handle with joysticks/gamepads.
As the name says, it is for multimedia-appl
Marek Franke wrote:
Hi there,
we have started with some people from our LUG (Linux User Group) a 'little'
project, called LMMS (Linux Multimedia System). When it's 'finished' it
shall be a window-manager for use on TV and handle with joysticks/gamepads.
As the name says, it is for multimedia-appl
On Mon, 07 Mar 2005 16:06:46 -0500, rbt wrote:
> Earl Eiland wrote:
>> In Linux, if I make the first line #!/path/to/Python, all I have to do
>> to execute the program is type ./FileName (assuming my pwd is the same
>> as FileName). what's the Windows equivalent?
>> Earl
>>
>> On Mon, 2005-03-07
Paul Rubin wrote:
"Marc H." <[EMAIL PROTECTED]> writes:
I'm fairly new to python, and don't know much of its inner working so
I wonder if someone could explain to me why it is so much faster in
python to open a file and load it in a list/array ?
My guess is readlines() in Python is separating on n
A. Klingenstein schrieb:
I embedded Python in a Windows C++ program. Now I want to debug my
embedded scripts which of course won't run in any IDE process.
Commercial IDEs like WingIDE can attach to external processes by
importing a module in the scripts. Is there a debugger capable of this
whic
Jan Rienyer Gadil wrote:
> @ sir Peter
> so you mean that it is correct (at least on the unpack() part)
No he doesn't mean that at all. All it means is that minor scuffles
have broken out among the spectators. Don't worry about them, batons &
water cannon will fix them; you concentrate on the foo
> I'd say Nevow! For apache setup, you might be interested in my wsgi [1]
> implementation.
Hi Sridhar,
Are you aware of Nevow's "integrability" with the webservers (CGIHTTPServer
in particular) that come packaged with Python itself ?
Thanks,
/venkat
--
http://mail.python.org/mailman/listinfo
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Simon John wrote:
>> If you're using a GUI, then that may help you decode the platform too -
>> for example wxPython has wx.Platform, there's also platform.platform()
>> , sys.platform and os.name
>>
>> You could try impo
John Machin <[EMAIL PROTECTED]> wrote:
: tree.search("I went to alpha beta the other day to pick up some spam")
: could use a startpos (default=0) argument for efficiently restarting
: the search after finding the first match
Ok, that's easy to fix. I'll do that tonight.
--
http://mail.python
Haveing problems writeing a program then running it in python 2.3.5
interpreter. Called the program test.py used chmod to make it
executable in linux
#! /usr/bin/python
print 2** 8
print 'the bright side ' + 'of life'
>>> python test.py
File "", line 1
python test.py
^
Syntax
Martin v. Löwis schreef:
> Larry argues that a license should be legally meaningful, and
> legally clear - or else there is little point in formulating
> a license in the first place.
This is difficult to do right, if you have to consider all the laws in
different countries...
--
JanC
"Be str
Sorry, I guess that I wasn't clear. I've made a module
using swig that wrap functions written in C. If I load
that module in python using:
>>> from import *
it works fine. But if I execute this same command
using PyRun_SimpleString in another code written in C,
it doesn't work, i.e. I can't load
[EMAIL PROTECTED] wrote:
The error message 'Connection refused' got me thinking that the SMTP
server wouldn't allow this or required some authentication, or etc.
In case this isn't clear yet: the "connection refused" error happens
in TCP sockets if the remote machine is turned on, but offers no ser
Well, just modify the source in that case.
--
http://mail.python.org/mailman/listinfo/python-list
"Jan Ekström" wrote:
> Here is the error.
> IDLE 1.1
> >>> python
>
> Traceback (most recent call last):
> File "", line 1, in -toplevel-python
> NameError: name 'python' is not defined
> >>>
this should be a success install report! not an error.
start coding and see what happens.
>>> print "He
"Harlin Seritt" wrote:
> I've created a ghetto-ized ComboBox that should work nicely for
> Tkinter
> (unfortunately no dropdown capabilities yet).
>
how about:
>>> import Tix
>>> print Tix.ComboBox.__doc__
ComboBox - an Entry field with a dropdown menu. The user can select a
choice by either
Martin Franklin <[EMAIL PROTECTED]> writes:
> text.yview_pickplace("end")
Thank you, works perfectly!
--
Benjamin Rutt
--
http://mail.python.org/mailman/listinfo/python-list
JanC wrote:
This is difficult to do right, if you have to consider all the laws in
different countries...
Right. So he points out that his explanations are for US copyright law
only, and then that legislation even in different US states, or perhaps
even in districts, might be different. Therefore,
Richie Hindle wrote:
I could try again, but maybe there's some useful information you can get
from the partially upgraded environment. Here's how the \python24
directory looks:
I tried to reproduce it, and failed - if the DLL is not in use, it is
updated correctly; if it is in use, a window pops u
JanC wrote:
[an example of using decorators to control pyasm]
Another (perhaps wacky) approach would be to change the assembler source syntax
enough to make it legal Python - in particular, this means parenthesizing the
arguments - then it can just be stored in-line with other Python source. Thi
john wrote:
Haveing problems writeing a program then running it in python 2.3.5
interpreter. Called the program test.py used chmod to make it
executable in linux
#! /usr/bin/python
print 2** 8
print 'the bright side ' + 'of life'
>>> python test.py
File "", line 1
python test.py
Hi
I have a python script under linux, I wonder if I can be converted to
an executable or not?
Richard
--
http://mail.python.org/mailman/listinfo/python-list
I have a dictionary. Each key contains a list. I am using the
contents of the list to build a portion of a command line.
However, before I can build the command line, I have to make sure that
the command isn't too long. This means that I have to step through
each item in the list twice: once to
The following script does not behave as expected. I wanted
to terminate the 'mythread' thread after 5 seconds.
What I see is the threading.Thread call blocking until the
15 second sleep is done. Suggestions?
import threading
from time import sleep
class FooClass:
def
"Martin Franklin" wrote:
> Benjamin Rutt wrote:
> > I have a tkinter 'Text' and 'Scrollbar' connected and working
> > normally. When a new line of text is inserted (because I'm
> > monitoring
> > an output stream), I'd like the text and scrollbar to be scrolled
> > to
> > the bottom, so the late
Daniel Yoo wrote:
John Machin <[EMAIL PROTECTED]> wrote:
: tree.search("I went to alpha beta the other day to pick up some spam")
: could use a startpos (default=0) argument for efficiently restarting
: the search after finding the first match
Ok, that's easy to fix. I'll do that tonight.
I have a
[JanC]
> The code below makes it possible to write assembler code for
different
> architectures (in case pyasm ever supports that ;) and also a Python
> code version to use when running on a system where no assembler code
> can be used. It prints:
[Michael]
> Another (perhaps wacky) approach woul
1 - 100 of 139 matches
Mail list logo