In <[EMAIL PROTECTED]>, IamIan wrote:
> years = ["199%s" % x for x in range(0,10)]
> years += ["200%s" % x for x in range(0,10)]
>
> I haven't had any luck doing this in one line though. Is it possible?
In [48]: years = map(str, xrange(1999, 2011))
In [49]: years
Out[49]:
['1999',
'2000',
'20
howa wrote:
> I have compiled python 2.5 from source
>
> i.e.
>
> ./configure
> make
> make install
>
>
> but when i try to install another package require python, seems it
> can't regonize python...
>
> e.g..
>
>
> /usr/bin/python is needed by xyz
Does "/usr/bin/python" exist ?
Why haven
[EMAIL PROTECTED] wrote:
> If this were just a tool for me, it wouldn't matter. My concern is
> distribution. If anybody who wants to run my software then they also
> have to go through all the trouble to install these extensions, none
> of which seem to have decent instructions. I'm an old-tim
Steve,
As always, thanks for your consistent help on matters big and small.
I've managed to solve the problem, although I'm scared b/c the bug is still
elusive.
I dumped and deleted my seperate Access DBs, created new ones and tried
running the scripts on old data (that these scripts were able to
python help,
A client is using win xp home.
my program contains;
shutil.copyfile(n, 'prn')
This runs fine on win xp pro but they are getting
the following traceback.
File "LOP_PRT_10.pyc", line 170, in __init__
File "LOP_PRT_10.pyc", line 188, in Fprint1
File "shutil.pyc", line 47, in
On Apr 18, 12:23 pm, Anton Vredegoor <[EMAIL PROTECTED]>
wrote:
(snipped)
> But still, the 'while True:' loop and the 'try-except' clause and the
> explicit StopIteration are not necessary ...
>
> from collections import deque
>
> def xsplitter(seq, pred):
> Q = deque(),deque()
> it = i
Hi, thanks for the answer,
> From: Gabriel Genellina <[EMAIL PROTECTED]>
> Subj: Re: unicode data - accessing codepoints > on narrow python builts
> Datum: 18.4.2007 21:33:11
>
>
> py> x=u"\N{GOTHIC LETTER AHSA}"
> py> ord(x)
> Traceback (most recent
[EMAIL PROTECTED] napisał(a):
> If this were just a tool for me, it wouldn't matter. My concern is
> distribution. If anybody who wants to run my software then they also
> have to go through all the trouble to install these extensions, none
> of which seem to have decent instructions. I'm an ol
Dnia Wed, 18 Apr 2007 19:38:26 +0100, Michael Hoffman napisał(a):
> Grzegorz Ślusarek wrote:
>> Hi all. I have situation that I have value that holds price and I must show
>> this price using national specification(e.g. thousands_sep). Any idea how
>> this can be done under python 2.4.4? I saw tha
Soren,
For future reference, you might want to direct weave-related questions
to the [EMAIL PROTECTED] mailing list.
> def cartPolFast(xlen, ylen, x_c, y_c):
>
> res = zeros((xlen,ylen))
>
> code = """
> {
> int xlen, ylen, x_c, y_c;
This line is unnecessary, because weave expose
> The rumours on "problems installing GUI toolkits" are greatly exagerated
Not at all !!
As an experienced computer user,
I yesterday installed a well known Python package on a clean winXP machine,
and it costed me be about 1.5 .. 2 hours !!
There are always unexpected situations,
I think softwa
[EMAIL PROTECTED] wrote:
>> Tile is available right now in Tk as an extension package, and a Tkinter
>> wrapper for it can be found here:
>>
>> http://tkinter.unpythonic.net/wiki/TileWrapper
>
> That site seems to be down (500 Internal Server Error).
>
>
>> Tile will be integrated into Tk's core
On Apr 18, 10:07 pm, Peter Wang <[EMAIL PROTECTED]> wrote:
> Soren,
>
> For future reference, you might want to direct weave-related questions
> to the [EMAIL PROTECTED] mailing list.
>
> > def cartPolFast(xlen, ylen, x_c, y_c):
>
> > res = zeros((xlen,ylen))
>
> > code = """
> > {
> >
Greg Corradini wrote:
[actually, her wrote it here but I moved it to the bottom]
> Steve Holden wrote:
>> Greg Corradini wrote:
>>> Hello All,
>>> A few weeks ago, I wrote two scripts using mx.ODBC on an Access DB. Among
>>> other things, both scripts create new tables, perform a query and then
>>>
I haven't experimented with it myself, but you'll probably find what
you need here. (Only works on original mac python distribution)
[sean:~] sean% python
Python 2.3.5 (#1, Aug 12 2006, 00:08:11)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "licens
On Apr 18, 12:28 pm, elventear <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I know this is not the best place to ask this but I haven't had luck
> in the Biopython forums with my questions, so I'll just try here.
>
> I want to use the Martel package to do some parsing. I've found it to
> be very powerfu
how to write text on canvas. i know that i need to use canvas.create_text, but
how to write text than when i create_text?
or how to access object ID in canvas and change some options?
thanks in advance!
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 18, 11:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > I'd say that the best bet is to learn swig and similar
> > bridging, expanding, and embedding mechanisms.
> > Python GUI programming is likely to involve either
> > python hooking into frameworks like Cocoa, Qt, or
> > wxWidget
Hi, thanks for your answer,
I'll try to check the source of unicodedata;
Using the wide Unicode build seems to be a kind of overkill for now, as for the
vast majority of my uses, the BMP is enough. I was rather looking for some
"lower-cost" alternatives for those rare cases, when I need higher mu
jim-on-linux wrote:
> python help,
>
> A client is using win xp home.
>
> my program contains;
>shutil.copyfile(n, 'prn')
>
> This runs fine on win xp pro but they are getting
> the following traceback.
>
> File "LOP_PRT_10.pyc", line 170, in __init__
> File "LOP_PRT_10.pyc", line 188,
>> I wouldn't mind using just Tkinter, despite it's primative look,
>> except that it doesn't support more advanced widgets like "notebook".
When Tile becomes part of the core Tk library, it should be accessible
from Tkinter as well. Tile has a nice notebook widget. See
http://tktable.sourcefor
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
.
.
.
>I wouldn't mind using just Tkinter, despite it's primative look,
>except that it doesn't support more advanced widgets like "notebook".
___
Hillary Schwartz
Applications Specialist, IT - Development
Lerner, Sampson & Rothfuss, LPA
Phone: (513) 241-3100 x3138
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
Can you please suggest a technique in Python where we can spawn few number
of worker threads and later map them to a function/s to execute individual
Jobs.
Any references would be helpful..
Thanks
Moin
--
http://mail.python.org/mailman/listinfo/python-list
Microsoft Antigen for Exchange found a message matching a filter. The message
is currently Detected.
Message: "Python_list Digest_ Vol 43_ Issue 299"
Filter name: "KEYWORD= spam: xxx "
Sent from: "[EMAIL PROTECTED]"
Folder: "SMTP Messages\Inbound And Outbound"
Location: "ITURAN/First Administrativ
On Apr 18, 3:43 pm, Gigs_ <[EMAIL PROTECTED]> wrote:
> how to write text on canvas. i know that i need to use canvas.create_text, but
> how to write text than when i create_text?
> or how to access object ID in canvas and change some options?
>
> thanks in advance!
All you need to do is canvas.cre
From the introduction to PyObjC, the Python-Objective-C bridge on Mac OS X:
"As described in Objective-C for PyObjC users the creation of
Objective-C objects is a two-stage process. To initialize objects, first
call a class method to allocate the memory (typically alloc), and then
call an init
On 17 Apr 2007 06:56:05 -0700, [EMAIL PROTECTED] wrote:
So many of the talking-head rants about VPI are idiotic.
1) bomb scares should have ak\lerted officials --blah blah blah
The fact is that on a large university campus bomb threats
are almost as common as exams! (there is a
Kevin Walzer wrote:
> From the introduction to PyObjC, the Python-Objective-C bridge on Mac
> OS X:
>
> "As described in Objective-C for PyObjC users the creation of
> Objective-C objects is a two-stage process. To initialize objects, first
> call a class method to allocate the memory (typical
>>> None >= 0
False
>>> None <= 0
True
Explanation appreciated.
Thanks,
Alan Isaac
--
http://mail.python.org/mailman/listinfo/python-list
howa wrote:
> I have compiled python 2.5 from source
>
> i.e.
>
> ./configure
> make
> make install
By default, configure uses /usr/local as the "prefix", not /usr...
> but when i try to install another package require python, seems it
> can't regonize python...
>
> e.g..
>
>
> /usr/bin/python is
In article <[EMAIL PROTECTED]>,
S.Mohideen <[EMAIL PROTECTED]> wrote:
>
>Can you please suggest a technique in Python where we can spawn few number
>of worker threads and later map them to a function/s to execute individual
>Jobs.
You can see an example for a web spider on my Python website.
--
James Stroud wrote:
> This appears more or less unique to Objective C. It looks that with
> PyObjC, you have to interact with the Objective C runtime to manage
> memory. This is not required, thankfully, with any other GUI tookits
> I've seen.
>
> I think the main difference is that PyObjC is
"Alan G Isaac" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| >>> None >= 0
| False
| >>> None <= 0
| True
|
| Explanation appreciated.
Should be in the reference manual section on comparisons.
--
http://mail.python.org/mailman/listinfo/python-list
Alan G Isaac wrote:
> >>> None >= 0
> False
> >>> None <= 0
> True
>
> Explanation appreciated.
>
> Thanks,
> Alan Isaac
>
I've read and found that 'None' comparisons is not always a good idea.
Better to:
from types import NoneType
x = None
if type( x ) == NoneType:
# true
< code >
el
En Wed, 18 Apr 2007 11:48:06 -0300, pabloski <[EMAIL PROTECTED]> escribió:
> I noted that if I define c.proxy and c.url as costants e.g. c.url =
> "http://www.google.com/search?blah blah" and c.proxy =
> "127.0.0.1:8080" it works
>
> However if I define them as described before pycurl raises t
On Apr 18, 5:19 pm, Steven Howe <[EMAIL PROTECTED]> wrote:
> Alan G Isaac wrote:
> > >>> None >= 0
> > False
> > >>> None <= 0
> > True
>
> > Explanation appreciated.
>
> > Thanks,
> > Alan Isaac
>
> I've read and found that 'None' comparisons is not always a good idea.
> Better to:
> from types
On Apr 18, 3:19 pm, Steven Howe <[EMAIL PROTECTED]> wrote:
> I've read and found that 'None' comparisons is not always a good idea.
> Better to:
> from types import NoneType
>
> x = None
> if type( x ) == NoneType:
> # true
> < code >
> else:
> # false; do something else.
> < more c
[EMAIL PROTECTED] wrote:
>
> If Python doesn't declare an official Gui system, then it'll be
> fragmented, inconsistent, and unsupportable.
I don't agree. GUI frameworks are somewhat like Web frameworks, object-
relational mappers, and all the other things that work in different
ways, work better
Hello all,
I have a small script which attempts to write to the user.log syslog
import logging, logging.handlers
logger = logging.getLogger('bender')
handler = logging.handlers.SysLogHandler(('localhost',
logging.handlers.SYSLOG_UDP_PORT),
logging.handlers.SysLogHandler.LOG_USER)
formatter = log
On Apr 18, 8:50 am, [EMAIL PROTECTED] (Alex Martelli) wrote:
> The special methods need to be on the type -- having attributes of those
> names on the instance doesn't help (applies to all special methods in
> the normal, aka newstyle, object model; legacy, aka classic, classes,
> work by slightly
[EMAIL PROTECTED] wrote:
> On Apr 18, 3:19 pm, Steven Howe <[EMAIL PROTECTED]> wrote:
>> I've read and found that 'None' comparisons is not always a good idea.
>> Better to:
>> from types import NoneType
>>
>> x = None
>> if type( x ) == NoneType:
>> # true
>> < code >
>> else:
>> # fal
Alan G Isaac wrote:
> >>> None >= 0
> False
> >>> None <= 0
> True
>
> Explanation appreciated.
>
> Thanks,
> Alan Isaac
>
So that we can sort lists of objects, even when the objects of are
different types, Python guarantees to supply a unique and consistent
ordering of any two objects. The
[EMAIL PROTECTED] wrote:
> On Apr 18, 3:19 pm, Steven Howe <[EMAIL PROTECTED]> wrote:
>
>> I've read and found that 'None' comparisons is not always a good idea.
>> Better to:
>> from types import NoneType
>>
>> x = None
>> if type( x ) == NoneType:
>> # true
>> < code >
>> else:
>>
[EMAIL PROTECTED] wrote:
> Try it with
>
> def test():
> L = 'a', 1, 2, 'a'
> it1, it2 = xsplitter(L, lambda x: x == 'a')
> print it1.next()
> print it2.next()
> print it1.next()
> print it2.next()
>
>
> The last print statement raises StopIteration...
> We, however, exp
Steven Howe wrote:
> Alan G Isaac wrote:
>> >>> None >= 0
>> False
>> >>> None <= 0
>> True
>>
>> Explanation appreciated.
>>
>> Thanks,
>> Alan Isaac
>>
> I've read and found that 'None' comparisons is not always a good idea.
> Better to:
> from types import NoneType
>
> x = None
> if type(
On Apr 18, 10:34 am, [EMAIL PROTECTED] wrote:
> I thought import used relative paths from either the python executable
> or the script being executed. I have a script pulling in code from an
> arbitrary directory. How is this happening?
>
> It's a RHEL 4 environment by the way. I couldn't find a
Right. I've got a really, really annoying/difficult/time consuming
problem with my development environment. I'm using django to build a
web app with paypal integration. My server is hosted remotely, and it
is receiving IPN (payment notifications) POST requests from Paypal.
I've checked on google an
Hello again, I don't blame anyone for not answering my last post, since I
obviously hadn't spent much time researching, but I've come a little ways
and have another question.
How can I better format text output to a QTextEdit object? I'm inserting
5 columns into each row. When I write the info
En Wed, 18 Apr 2007 18:09:03 -0300, Schwartz, Hillary
<[EMAIL PROTECTED]> escribió:
?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
After calling whatever it is that is writing to standard output/error,
do:
import sys
sys.stdout.flush()
sys.stderr.flush()
This should cause any buffered data to be immediately flushed to the
main Apache error log, ie., don't look in any virtual host logs, check
the main one.
Graham
On A
Here's an example where you are trying to import a function in one of
your .py files--when that .py file is not in the current directory:
import sys
sys.path.append("/Users/me/2testing/dir1/")
#directory that contains the file
import test1 #name of file without .py extension
test1.greet()
--
Carsten Haese wrote:
> On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote:
>> Does anyone know if there is a way to make a Python COM object
>> act like a proper iterator in VB/Delphi?
>
> I don't use COM, VB, or Delphi, but Google turned up these two
> references:
> http://msdn.microsoft.com/li
En Wed, 18 Apr 2007 15:08:24 -0300, Grzegorz Ślusarek <[EMAIL PROTECTED]>
escribió:
> Hi all. I have situation that I have value that holds price and I must
> show
> this price using national specification(e.g. thousands_sep). Any idea how
> this can be done under python 2.4.4? I saw that func
> On Windows, the easiest way to install Tile is to grab it from
> ActiveState's Tcl distribution
> (http://www.activestate.com/products/activetcl/) and then place it with
> the Tcl/Tk bits that come with Python. The Tcl/Tk build for Windows that
> python.org provides doesn't ship with Tile. You'l
> "Tile" has already been mentioned in this thread, and I know
> there'll be at least one more follow-up on the subject. Tile
> includes a ("native"!) notebook, as well as a combobox, tree-
> view, ... http://wiki.tcl.tk/11075>.
It seems that Tile does include a "notebook" widget but it's pure Tc
> As I've said often enough on the topic of Web frameworks, picking
> winners gives only a temporary victory to those who want to avoid
> making decisions. It's better to provide people with a means of making
> an informed choice, and it should be realised that people will
> approach this choice fr
[EMAIL PROTECTED] wrote:
>> "Tile" has already been mentioned in this thread, and I know
>> there'll be at least one more follow-up on the subject. Tile
>> includes a ("native"!) notebook, as well as a combobox, tree-
>> view, ... http://wiki.tcl.tk/11075>.
>
> It seems that Tile does include a "
[EMAIL PROTECTED] wrote:
>> On Windows, the easiest way to install Tile is to grab it from
>> ActiveState's Tcl distribution
>> (http://www.activestate.com/products/activetcl/) and then place it with
>> the Tcl/Tk bits that come with Python. The Tcl/Tk build for Windows that
>> python.org provides
Since the Tkinter wiki is still down, here is the Tile wrapper I maintain:
###
November 2006: Posted by Kevin Walzer, [EMAIL PROTECTED] Based on
Tile wrapper by Martin Franklin. This version updates the wrapper to
reflect changes in Tile commands, and adds support for Tile-based frames
The spawn* and exec* functions appear to escape asterisks, I'm
guessing all shell characters too, before the spawn/exec'ed process
sees them. Is there a way around this?
Not sure if this is a bug or a "feature".
user$ touch test.txt
user$ ls -l *
-rw-r--r-- 1 user user 0 Apr 18 18:30 test.tx
This should be saved as "Tile.py." Sorry.
###
November 2006: Posted by Kevin Walzer, [EMAIL PROTECTED] Based on
Tile wrapper by Martin Franklin. This version updates the wrapper to
reflect changes in Tile commands, and adds support for Tile-based frames
(ttk::frame). Freely reusable.
Instead of starting IDLE as I normally do, I started the Python
interpreter and tried to run a program. I got a Python prompt (>>>),
and then tried unsuccessfully to run a Python script named Script1.py
that runs perfectly well in IDLE. Here's what I did:
>>>Script1.py
Traceback (most recent call
On Apr 19, 12:31 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> After calling whatever it is that is writing to standard output/error,
> do:
>
> import sys
> sys.stdout.flush()
> sys.stderr.flush()
>
> This should cause any buffered data to be immediately flushed to the
> main Apache error
On Thu, 19 Apr 2007 01:32:36 +0100, [EMAIL PROTECTED] wrote
(in article <[EMAIL PROTECTED]>):
> Instead of starting IDLE as I normally do, I started the Python
> interpreter and tried to run a program. I got a Python prompt (>>>),
> and then tried unsuccessfully to run a Python script named Script
Are there any open source search engines written in python for indexing a
given collection of (internal only) html pages? Right now I'm talking
about dozens, but hopefully it'll be hundreds or thousands at some point.
I'm thinking some sort of CGI script, with perhaps a cron job that updates
the
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Should be in the reference manual section on comparisons.
Only to this extent:
http://www.python.org/doc/2.4/ref/comparisons.html
objects of different types always compare unequal, and are ordered
consiste
[EMAIL PROTECTED] wrote:
> The spawn* and exec* functions appear to escape asterisks, I'm
> guessing all shell characters too, before the spawn/exec'ed process
> sees them.
No. It is the shell that ordinarily processes these characters and gives
them a special meaning. On most systems, ls does no
[EMAIL PROTECTED] wrote:
> Instead of starting IDLE as I normally do, I started the Python
> interpreter and tried to run a program. I got a Python prompt (>>>),
> and then tried unsuccessfully to run a Python script named Script1.py
> that runs perfectly well in IDLE. Here's what I did:
>
Sc
On Apr 19, 1:52 am, dbee <[EMAIL PROTECTED]> wrote:
> On Apr 19, 12:31 am, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > After calling whatever it is that is writing to standard output/error,
> > do:
>
> > import sys
> > sys.stdout.flush()
> > sys.stderr.flush()
>
> > This should ca
On Apr 18, 8:55 pm, Dan Stromberg <[EMAIL PROTECTED]> wrote:
> Are there any open source search engines written in python for indexing a
> given collection of (internal only) html pages? Right now I'm talking
> about dozens, but hopefully it'll be hundreds or thousands at some point.
>
> I'm think
An iterator is an object with a .__iter__ method that returns self and a
.next method that either returns an object or raises StopIteration.
One very good way to get an iterator from an iterable is for .__iter__ to
be a generator function. When called, it returns an generator with
.__iter__ a
On Apr 19, 6:10 am, Paul Boddie <[EMAIL PROTECTED]> wrote:
>
> Since /usr/bin/python isn't found, it doesn't look like there's an
> existing version of Python that you might overwrite, but it's
> important to verify such things when installing software. That's where
> your distribution's packages h
Chris wrote:
>
> But does anyone know why the Tkinter program is doing this to the
> terminal in the first place? I don't want to have to tell users of my
> program that they must recover their terminal's sanity each time after
> running my program.
>
I don't know about Tkinter, but my g
Thomas Heller <[EMAIL PROTECTED]> wrote:
...
> > and some technical issues such as threading (if COM client and server
...
> I think that the latter problem (incompatible threading models in the same
> process) are solved by COM apartments - aren't they?
"apartment" is one threading model, b
7stud <[EMAIL PROTECTED]> wrote:
...
> Can you explain some of the details of why this code fails:
...
> def next(self):
> for word in "Norwegian Blue's have beautiful
> plumage!".split():
> yield word
Sure, easily: a loop like "for x in y:" binds an unnamed temporary
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Should be in the reference manual section on comparisons.
Only to this extent:
http://www.python.org/doc/2.4/ref/comparisons.html
objects of different types always compare unequal, and are ordered
consiste
> The wrapper I maintain works differently, and includes the notebook widget.
I've seen the page. You can get to it via Google's cache; just put
the url in the box and the one search result returned usually has a
"cached" link.
However, that file is completely useless without instructions on how
>[...]
> > On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote:
> >> Does anyone know if there is a way to make a Python COM object
> >> act like a proper iterator in VB/Delphi?
>[...]
After more googling, staring at win32com's code, and a fair bit of trial
and error, I've come up with the follow
S.Mohideen <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Can you please suggest a technique in Python where we can spawn few number
> of worker threads and later map them to a function/s to execute individual
> Jobs.
>
> Any references would be helpful..
I believe I give some examples in the Nutshel
Is there anyway to set the individual options in Tkinter to a
particular variable. For example, I have a menu option(code is below)
which has January, February, March and so on, which I would like to
have corresponding values of 01, 02, 03 and so on. Can someone please
tell me how to do that with
On Wed, 18 Apr 2007 22:50:14 +, Glen wrote:
Ok, obviously, my post didn't come out the way I wanted it to. In the
first example from my text file below, the dictionary pairs, constructed
from sorted tuples were in straight columns. When I write them to my
QTextEdit, however, the columns are
Patch / Bug Summary
___
Patches : 357 open ( +8) / 3745 closed ( +8) / 4102 total (+16)
Bugs: 958 open (+19) / 6657 closed ( +9) / 7615 total (+28)
RFE : 251 open ( +2) / 280 closed ( +2) / 531 total ( +4)
New / Reopened Patches
__
Help with
Dear all,
I'm a postgraduate student in Hong Kong, studying english language. I
wanna seek help from all of you about some plain text manipulation.
I have already add part-of-speech (POS) tags with angle bracket by
software tagger, right after every word in my file, as attribute. How
could I chan
EMC ROY wrote:
> Original Sentence: An apple for you.
> Present: An apple for you .<.>
> Desire:An apple for you <.>.
>>> text = 'An apple for you .<.>'
>>> import re
>>> re.sub(r'(\S+)(<[^>]+>)(\s*)', r'\2\1\3', text)
'An apple for you <.>.'
--
http://mail.python.org/mailma
Hi,
Thanks for the responses.
> 7stud <[EMAIL PROTECTED]> wrote:
> > Can you explain some of the details of why this code fails:
> ---
> class Parrot(object):
> def __iter__(self):
> return self
> def __init__(self):
> self.next = self.next().next
> def next(self):
>
> Hi Graeme,
>
> Thanks for the suggestion. Unluckily for me, it doesn't seem to be
> working though ...
>
> I've tried it a number of different ways. I guess if I put the code
> after an exception, then the code won't be called.
> So I ran an error in the python script and then I called the
> sys
I am using repr() to pass arrays, dicts and combinations therof to
javascript as it already returns a valid javascript expression (a
string) right away. But for some reason it does not handle Umlaute
correctly and those characters finally appear as two strange characters
on the browser. I am using
Glen wrote:
>> Hello again, I don't blame anyone for not answering my last post,
> since
>> I obviously hadn't spent much time researching, but I've come a little
>> ways and have another question.
>>
>> How can I better format text output to a QTextEdit object? I'm
>> inserting 5 columns into
Alan Isaac wrote:
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Should be in the reference manual section on comparisons.
Only to this extent:
http://www.python.org/doc/2.4/ref/comparisons.html
objects of different types always compare unequal, and
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>Can someone explain how I would read the data from the USB "port"? I
>don't know if it matters, but I am trying to read the data from a GPS
>plugged in to the USB port.
USB is a "protocol" bus. It isn't like a serial port, where you can just
start
On Apr 18, 11:08 pm, Steven Bethard <[EMAIL PROTECTED]> wrote:
> EMC ROY wrote:
> > Original Sentence: An apple for you.
> > Present: An apple for you .<.>
> > Desire:An apple for you <.>.
> >>> text = 'An apple for you .<.>'
> >>> import re
> >>> re.sub(r'(\S+)(<[^>]+>)(\s*)'
On Wed, 18 Apr 2007 12:16:12 -0700, IamIan wrote:
> I am using the suggested approach to make a years list:
>
> years = ["199%s" % x for x in range(0,10)]
> years += ["200%s" % x for x in range(0,10)]
>
> I haven't had any luck doing this in one line though. Is it possible?
years = ["199%s" % x
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> class Parrot(object):
> def __iter__(self):
> return self
> def __init__(self):
> self.next = self._next()
> def _next(self):
> for word in "Norwegian Blue's have beautiful plumage!".split():
> yield word
Hi,
I'm puzzled by some strange behavior when my Python/Tkinter
application quits (on linux): the terminal from which I started Python
is messed up.
If start up python, then import the code below, then start the program
with Application(), then click the Quit button, my terminal never
prints anyt
(I'm not sure what happened to the formatting in my post: the
"Tkinter.Button" line should be at the same level of indentation as
the "Tkinter.Tk.__init__" line.)
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I'm doing some Excel automation work for a friend, and am developing
on a machine running Office 2000. My friends machine is running Excel
2003. The code I've written works like a charm on my machine (in fact
all three of my machines), but falls over early on on Excel 2003.
The code snipp
On Apr 17, 12:18 pm, utabintarbo <[EMAIL PROTECTED]> wrote:
> On Apr 17, 10:32 am, Muhammad <[EMAIL PROTECTED]> wrote:
>
> > On Apr 17, 7:56 am, [EMAIL PROTECTED] wrote:
> >> -
> > You mentioned "Korean Al-Qaeda Terrorist" in the title! Honesty
> > demands that you establish it as a fact that the
Hello Chaps,
I posted about this the other day but I'm still struggling to get any form
of result from it. Basically I have the following piece of code, and
according to its API is produces singals when particular events occur, but i
have no idea how to list for events, I've tried all sorts of
On 2007-04-17, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On 17 Apr 2007 14:32:01 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>>On 2007-04-17, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
>>> On 17 Apr 2007 13:32:52 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote:
On 2007-04-17, Hendrik
1 - 100 of 214 matches
Mail list logo