[EMAIL PROTECTED] (Alex Martelli) writes:
How would you make a one-element list, which we'd currently write as [3]?
Would you have to say list((3,))?
Yep. I don't particularly like the mandatory trailing comma in the
tuple's display form, mind you, but, if it's good enough for tuples, and
Alex Gittens wrote:
I'm working on a final project for my EE degree that requires the use
of digital camera with high resolution. I'd like to do the image
capture with Python, preferably in a cross-platform manner, but if
necessary, we can limit ourselves to Windows. Any ideas on
Can someone explain what I'm doing wrong? The following code snipet
produces an error about addch() expecting an int:
u = u'\u2591'
s = u.encode(UTF-8)
stdscr.addch((y+1), (x+1), s, curses.color_pair(1))
If I try this instead:
u = u'\u2591'
s =
Thomas Dickey wrote:
Both libraries respond to locale. But ncurses only deals in single-byte
encodings, e.g., ISO-8859-1 through ISO-8859-15. ncursesw supports that,
but adds support for multi-byte encodings, e.g., UTF-8. For the latter,
one can also have characters that combine (a
Confused somewhat xml newbie. I'm trying to output xml with a CDATA
section, using saxutils.XMLGenerator, but the output contains escaped
'' and '' and '' from the CDATA element. Shouldn't it be spit out
intact?
Here's code and output:
from xml.sax import saxutils
import sys
handler =
SPE - Stani's Python Editor wrote:
During optimizing SPE for Ubuntu, I found something strange. I have
Ubuntu 5.10 The Breezy Badger and unfortunately this code is not
working:
import webbrowser
webbrowser.open(http://www.python.org;)
It does not throw an exception, but is not able to
If I create a file with only one line:
---
from optparse import OptionParser
---
I get this when I try to run it from DOS prompt:
Traceback (most recent call last):
File optparse.py, line 1, in ?
from optparse import OptionParser
File X:\data\other\source\python\population\optparse.py,
I'm interested in the same sort of config file issues.
Unfortunately the restricted execution has fallen out of favor. My
preferred solution would be to have a configEval() function that is
just like the regular Python eval() but only accepts a subset of the
python language, e.g. creating the
Karlo Lozovina [EMAIL PROTECTED] writes:
If I create a file with only one line:
---
from optparse import OptionParser
---
I get this when I try to run it from DOS prompt:
Traceback (most recent call last):
File optparse.py, line 1, in ?
from optparse import OptionParser
File
chris wrote:
Confused somewhat xml newbie. I'm trying to output xml with a CDATA
section, using saxutils.XMLGenerator, but the output contains escaped
'' and '' and '' from the CDATA element. Shouldn't it be spit out
intact?
Here's code and output:
from xml.sax import saxutils
import
On Thu, 19 Jan 2006 23:16:57 -0500, Peter Hansen [EMAIL PROTECTED] wrote:
Carl Cerecke wrote:
Carl Cerecke wrote:
Ah. Well, my post suggested, as one option, the callables call
each other directly.
Doh! No I didn't. And they shouldn't. Otherwise the call stack
gets out of hand. But I did
[Joshua Luben]
I thought I would post this here first before seeking more experienced ears
for this particular strangness.
I have Python 2.4.2 installed from source on a dual processor dell server.
These are x86_64 processors (verified by /bin/arch) (aka emt64 extensions).
uname -a gives
On Thu, 19 Jan 2006 10:08:38 +0100, Claudio Grondi wrote:
The point is to find a way to create in Python two indentifiers a and b
without manipulating any of the __eq__ and to __eq__ related functions
in a way, that the simple
if a==b: print 'a==b'
statement results in an endless loop.
Alex Gittens wrote:
I'm working on a final project for my EE degree that requires the use
of digital camera with high resolution. I'd like to do the image
capture with Python, preferably in a cross-platform manner, but if
necessary, we can limit ourselves to Windows. Any ideas on
Jorge Godoy [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]:
Rename your file to something other than optparse.py...
Oh my :(... I'm so ashamed :).
--
___Karlo Lozovina - Mosor
| | |.-.-. web: http://www.mosor.net || ICQ#:
Steven D'Aprano wrote:
On Thu, 19 Jan 2006 10:08:38 +0100, Claudio Grondi wrote:
The point is to find a way to create in Python two indentifiers a and b
without manipulating any of the __eq__ and to __eq__ related functions
in a way, that the simple
if a==b: print 'a==b'
statement
[EMAIL PROTECTED] wrote:
I don't have any problems with simply printing the characters from
Python (outside of ncurses), but using the ncurses functions for
printing these characters is problematic.
I see. I can't get this to work, either, and neither with libncursesw.
Regards,
Martin
--
Hi
I hope the title of this message indicates my question. I am looking
for basic
array functionality in Python and it turns out that there are all these
packages which
are somehow related. Some are allegedly discontinued but still seem to
get updated. Could we start a discussion about which
J wrote:
Hi
I hope the title of this message indicates my question. I am looking
for basic
array functionality in Python and it turns out that there are all these
packages which
are somehow related. Some are allegedly discontinued but still seem to
get updated. Could we start a discussion
J wrote:
Hi
I hope the title of this message indicates my question. I am looking
for basic
array functionality in Python and it turns out that there are all these
packages which
are somehow related. Some are allegedly discontinued but still seem to
get updated. Could we start a discussion
On Thu, 19 Jan 2006 03:20:04 -0800, Anton Vredegoor wrote:
The old trick of 'but there are some things
that cannot be expressed in any other way than by using formulas'
doesn't get one many optimization points in my world.
Alas, your world is not as precise and accurate as the world of
We are looking for a 1981 graduate from
Gaithersburg High School, Maryland.
We believe he may frequent this
list, hence this post.
Please contact us at [EMAIL PROTECTED].
Thank you.
Bob/Mary Harding
--
http://mail.python.org/mailman/listinfo/python-list
Claudio Grondi wrote:
I decided to use numarray, so maybe you can report what your problem/bug
is before I run into it myself? The reason why I decided to use numarray
was, that the whole scpy_core story seems to get more or less commercial
and its free version comes because of this with
On Thu, 19 Jan 2006 14:12:24 +0200, Juho Schultz wrote:
Because the intended audience is probably reads formulas better than
they read Python. The 1st sentence of the Introduction: This book is
aimed at senior undergraduates and graduate students in Engineering,
Science, Mathematics and
Anton Vredegoor [EMAIL PROTECTED] writes:
Returning to the original book, why did they write a lot of it (at
least the first few pages until I gave up, after having trouble
understanding formulas about concepts I have no such trouble with when
framed in less jargonized from) in unintelligible
David Wahler wrote:
Xavier Morel wrote:
Steve Holden wrote:
Luiz Geron wrote:
I don't have experience on this, but I think that you can make the
script return the image contents directly to the img tag, without
passing it to a img file, so you can use something like this:
img
Bryan Olson wrote:
Roy Smith wrote:
[EMAIL PROTECTED] wrote:
I have a regular expression that is approximately 100k bytes. (It is
basically a list of all known norwegian postal numbers and the
corresponding place with | in between. I know this is not the intended
use for regular
On Thu, 19 Jan 2006 15:04:51 +0100, Mikael Olofsson wrote:
One question here is: Are US English and UK English different languages
or not? If they are, a translation is in place. If they are not, the
text should have been left as is. I guess the answer is:
-Well, sort of...
That's the sort
This is a cool product that can produce any number of types of graphs.
Supports Python, as well as lots of other languages. I have used it
with success. There is a free version, as long as you don't mind the
tiny logo they put into each graph.
http://www.advsofteng.com/
-Chris
--
Steve Holden [EMAIL PROTECTED] writes:
Does no one care about an internal error in the regular expression
engine?
Not one that requires parsing a 100 kilobyte re that should be
replaced by something more sensible, no.
If the internal error means the re engine bumped into some internal
Karlo Lozovina wrote:
Jorge Godoy [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]:
Rename your file to something other than optparse.py...
Oh my :(... I'm so ashamed :).
Don't worry. If this list had a FAQ, that would be on it. You are by no
means the first ...
regards
Steve
--
In article [EMAIL PROTECTED],
Paul Rubin http://[EMAIL PROTECTED] wrote:
Steve Holden [EMAIL PROTECTED] writes:
Does no one care about an internal error in the regular expression
engine?
Not one that requires parsing a 100 kilobyte re that should be
replaced by something more
[Bryan Olson]
Does no one care about an internal error in the regular expression
engine?
[Steve Holden]
Not one that requires parsing a 100 kilobyte re that should be replaced
by something more sensible, no.
I care: this is a case of not detecting information loss due to
unchecked
see the help for ulimit (builtils) :
-$ help limit
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 20 Jan 2006 10:27:58 +1300, Carl Cerecke wrote:
We want a goto.
Unfortunately, this is about the only problem I can think of where gotos
are useful. And for reasons well explained elsewhere, gotos are Not Good.
I've solved this in a very efficient, but rather unpythonic way.
I'd like to read ASCII data from a serial port, but (once again) I'm having
trouble getting started. (Can't seem to find the basic level of docs to
get going sigh)
I'd like to use only standard built-in modules if possible.
Could somebody offer a simple code-snippet to get me started reading
On Fri, 20 Jan 2006 07:06:29 +, Tim Roberts wrote:
My own name gives me trouble with this. There is disagreement in the
curmudgeon world as to whether I should refer to the Roberts' computer,
or the Roberts's computer.
I guess I'll just have to keep saying that damn computer.
In
Tim Peters wrote:
[Bryan Olson]
Does no one care about an internal error in the regular expression
engine?
[Steve Holden]
Not one that requires parsing a 100 kilobyte re that should be replaced
by something more sensible, no.
I care: this is a case of not detecting information loss
On Thu, 19 Jan 2006 18:59:11 -0800, pycraze wrote:
Surely adopting the above method is much better than what i have
approached earlier . The main reason i did adopt this exercise was when
i have to marshal a 20 - 40 MB above test.py file to the disk , the
simple load of the test.py will sky
On 2006-01-21, Steven D'Aprano [EMAIL PROTECTED] wrote:
One question here is: Are US English and UK English different languages
or not? If they are, a translation is in place. If they are not, the
text should have been left as is. I guess the answer is:
-Well, sort of...
That's the sort
Steven D'Aprano wrote:
On Thu, 19 Jan 2006 14:12:24 +0200, Juho Schultz wrote:
Because the intended audience is probably reads formulas better than
they read Python. The 1st sentence of the Introduction: This book is
aimed at senior undergraduates and graduate students in Engineering,
On Fri, 20 Jan 2006 04:25:01 +, Bengt Richter wrote:
On Thu, 19 Jan 2006 12:16:22 +0100, =?ISO-8859-1?Q?Gerhard_H=E4ring?= [EMAIL
PROTECTED] wrote:
[...]
floating points are always imprecise, so you wouldn't want them as an
Please, floating point is not always imprecise. In a double
Grant Edwards [EMAIL PROTECTED] writes:
The next thing you know, there are going to be American
translations of Jane Austin where a girl says to her sister
dude, he is such a hottie! and she replies oh my god, for
sure!
I actually heard that the US film version of Pride and Prejudice
Casey Bralla wrote:
I'd like to read ASCII data from a serial port, but (once again) I'm having
trouble getting started. (Can't seem to find the basic level of docs to
get going sigh)
I'd like to use only standard built-in modules if possible.
Could somebody offer a simple code-snippet
Alright first of all I'd like to say I'm a python noob.Now that thats over with, heres what I'd like to know about. Is there a python way to detect if a variable exsists? Say I had a program that needed a certain variable to be set to run and the variable was not found when it came time to use it.
On 2006-01-21, Casey Bralla [EMAIL PROTECTED] wrote:
I'd like to read ASCII data from a serial port, but (once
again) I'm having trouble getting started. (Can't seem to
find the basic level of docs to get going sigh)
I'd like to use only standard built-in modules if possible.
Then there
Steven D'Aprano wrote:
On Fri, 20 Jan 2006 04:25:01 +, Bengt Richter wrote:
On Thu, 19 Jan 2006 12:16:22 +0100, =?ISO-8859-1?Q?Gerhard_H=E4ring?= [EMAIL
PROTECTED] wrote:
[...]
floating points are always imprecise, so you wouldn't want them as an
Please, floating point is not always
On Sat, 21 Jan 2006 01:12:28 +0100, Claudio Grondi wrote:
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on
win32 - IDLE 1.1.2
a=[]
a.append(a)
b=[]
b.append(b)
a==b
Traceback (most recent call last):
File pyshell#4, line 1, in -toplevel-
a==b
Grant Edwards wrote:
On 2006-01-21, Steven D'Aprano [EMAIL PROTECTED] wrote:
[...]
But the real question is why it is that American publishers
believe their readers are so lazy and ignorant that they
require special translations of British books. I don't know
anyone who has said I'm glad that I
On 1/20/06, Ivan Shevanski [EMAIL PROTECTED] wrote:
Alright first of all I'd like to say I'm a python noob.Now that thats over with, heres what I'd like to know about. Is there a python way to detect if a variable exsists? Say I had a program that needed a certain variable to be set to run and the
Ivan Shevanski wrote:
Alright first of all I'd like to say I'm a python noob.
Welcome to c.l.py.
Now that thats over with, heres what I'd like to know about. Is there a
python way to detect if a variable exsists? Say I had a program that
needed a certain variable to be set to run and
On 2006-01-21, Paul Rubin http wrote:
The next thing you know, there are going to be American
translations of Jane Austen where a girl says to her sister
dude, he is such a hottie! and she replies oh my god, for
sure!
I actually heard that the US film version of Pride and Prejudice
On Sat, 21 Jan 2006 03:48:26 +, Steve Holden wrote:
Steven D'Aprano wrote:
On Fri, 20 Jan 2006 04:25:01 +, Bengt Richter wrote:
On Thu, 19 Jan 2006 12:16:22 +0100, =?ISO-8859-1?Q?Gerhard_H=E4ring?=
[EMAIL PROTECTED] wrote:
[...]
floating points are always imprecise, so you
[Claudio Grondi]
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit
(Intel)] on win32 - IDLE 1.1.2
a=[]
a.append(a)
b=[]
b.append(b)
a==b
Traceback (most recent call last):
File pyshell#4, line 1, in -toplevel-
a==b
RuntimeError: maximum recursion depth
the following code works perfectly
import socket, sys
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((www.python.org, 80))
s.send(GET)
here, You need to speak HTTP protocol. I would suggest to change
s.send( GET / HTTP/1.0\x0d\x0a\x0d\x0a )
while 1:
buf =
Quoth ToMasz [EMAIL PROTECTED]:
| There is a script running continuously which executes an external
| script in a loop using os.spawnlp(os.P_WAIT, 'extscript.py') function.
| After several hundred executions (cycles of the loop), the main script
| gets an exception while trying to start the
This section is the cause of the problem:
for browser in (mozilla-firefox, mozilla-firebird,
mozilla, netscape):
if _iscommand(browser):
register(browser, None, Netscape(browser))
It's trying to load mozilla-firefox as the exec name
I'm running Python 2.3.5 and 2.4.1 under Debian Sarge. Instead of
deleting the character after the cursor, pressing my delete key in an
interactive Python window causes a system beep and inserts a tilde
character. This behavior occurs across all of the terminals I've tried
(xterm, Konsole, real
Hi all,
I am new to this group.I am willing to learn PYTHON can anyone suggest
me where to start.I have installed PYTHON 2.4 windows platform.Where
can I get books for beginners.How to go about?.It would be helpful if
anyone is will to guide me.
Thanks and Regards,
Prasanna
--
Steven D'Aprano wrote:
On Sat, 21 Jan 2006 03:48:26 +, Steve Holden wrote:
Steven D'Aprano wrote:
On Fri, 20 Jan 2006 04:25:01 +, Bengt Richter wrote:
On Thu, 19 Jan 2006 12:16:22 +0100, =?ISO-8859-1?Q?Gerhard_H=E4ring?=
[EMAIL PROTECTED] wrote:
[...]
floating points are
One great place to start is the Python documentation website
(http://www.python.org/doc/). They have soe very good basic info, both
third-party tutorials as well as a tutorial writeen bu Guido Van Rossum
(creator of Python). Guido's tutorial expects programming experience,
so if you are a true
Bugs item #1371247, was opened at 2005-12-01 22:50
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1371247group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1396471, was opened at 2006-01-04 02:53
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1396471group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1349106, was opened at 2005-11-05 16:50
Message generated for change (Comment added) made by manlioperillo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1349106group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1396471, was opened at 2006-01-03 20:53
Message generated for change (Comment added) made by tim_one
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1396471group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1396471, was opened at 2006-01-04 02:53
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1396471group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1163367, was opened at 2005-03-15 00:39
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1163367group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #973579, was opened at 2004-06-16 00:43
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=973579group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1163367, was opened at 2005-03-15 00:39
Message generated for change (Settings changed) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1163367group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1407902, was opened at 2006-01-17 04:47
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1407902group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1411097, was opened at 2006-01-20 20:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1411097group_id=5470
Please note that this message will contain a full copy of
Feature Requests item #1353344, was opened at 2005-11-10 19:22
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=355470aid=1353344group_id=5470
Please note that this message will contain a full copy of
Bugs item #1378679, was opened at 2005-12-12 12:50
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1378679group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1339007, was opened at 2005-10-27 01:30
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1339007group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #1409455, was opened at 2006-01-18 14:09
Message generated for change (Comment added) made by msapiro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1409455group_id=5470
Please note that this message will contain a full copy of the comment
Bugs item #902075, was opened at 2004-02-22 11:05
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=902075group_id=5470
Please note that this message will contain a full copy of the comment
101 - 176 of 176 matches
Mail list logo