PGMoscatt a écrit :
Hi All,
I am trying to create a dialog which will have a number of components but
having trouble with the placement of various widgets.
For example, in my code below you will see I am trying to insert alabel but
I want the label to be in the top-left of the dialog but it dosen't
Daniel Keep wrote:
I'm currently working on a Python program, and was wondering if it's
possible to license the program, some associated tools, and a few other
libraries I've written under the Python license.
I had a look at the new PSF Python license on the list of OSI-approved
licenses, but it ma
[Daniel Keep]
> I'm currently working on a Python program, and was wondering if it's
> possible to license the program, some associated tools, and a few other
> libraries I've written under the Python license.
>
> I had a look at the new PSF Python license on the list of OSI-approved
> licenses, bu
bruno modulix wrote:
> G. Völkl wrote:
> > Hello,
> >
> > I use a dictionary:
> >
> > phone = {'mike':10,'sue':8,'john':3}
> >
> > phone['mike'] --> 10
> >
> > I want to know who has number 3?
> > 3 --> 'john'
>
> Note that you can have many keys with the same value:
> phone = {'mike':10,'sue':
I'm currently working on a Python program, and was wondering if it's
possible to license the program, some associated tools, and a few other
libraries I've written under the Python license.
I had a look at the new PSF Python license on the list of OSI-approved
licenses, but it makes numerous direc
[EMAIL PROTECTED] wrote:
Hello NG,
I am still quite a newbie with Python (I intensely use wxPython, anyway).
I would like to know what are, in your opinions, the best/faster databases
that I could use in Python (and, of course, I should be able to "link"
everything
with a wxPython GUI)? Specifi
steve wrote:
In a nutshell, my problem is that I am getting this runtime error, and
I have no clue why. Please bear in mind its my first python program:
"localvariable 'currentAbility' referenced before asignment"
If you're assigning an object to a name, it will be assigned to that
name in local
"G. Völkl" <[EMAIL PROTECTED]> wrote:
>
>I use a dictionary:
>
>phone = {'mike':10,'sue':8,'john':3}
>
>phone['mike'] --> 10
>
>I want to know who has number 3?
>
>3 --> 'john'
>
>How to get it in the python way ?
If you need to do this a lot, just keep two dictionaries, where the keys in
each
Rory Campbell-Lange <[EMAIL PROTECTED]> wrote:
>
>Hi. How can I list root and only one level down? I've tried setting dirs
>= [] if root != start root, but it doesn't work. I clearly don't
>understand how the function works. I'd be grateful for some pointers.
The statement
dir = []
does not ac
steve said unto the world upon 2005-03-12 00:06:
In a nutshell, my problem is that I am getting this runtime error, and
I have no clue why. Please bear in mind its my first python program:
"localvariable 'currentAbility' referenced before asignment"
in this function which is a callback for a butto
Hi All,
I am trying to create a dialog which will have a number of components but
having trouble with the placement of various widgets.
For example, in my code below you will see I am trying to insert alabel but
I want the label to be in the top-left of the dialog but it dosen't want to
go there.
Chris> the current csv module cannot handle unicode the docs say, is
Chris> there any workaround or is unicode support planned for the near
Chris> future?
Skip> True, it can't.
Hmmm... I think the following should be a reasonable workaround in most
situations:
#!/usr/bin/en
In a nutshell, my problem is that I am getting this runtime error, and
I have no clue why. Please bear in mind its my first python program:
"localvariable 'currentAbility' referenced before asignment"
in this function which is a callback for a button:
def nextThing():
if lookingAtAbilities
Chris> the current csv module cannot handle unicode the docs say, is
Chris> there any workaround or is unicode support planned for the near
Chris> future?
True, it can't.
Chris> obviously I am not a python pro, i did not even find the py
Chris> source for the module, it seeme
Thanks for the reply ;)
I was hoping not to complicate things with zope, tho Btrees look
interesting.
Oh - and about the xml, I'm using something very similar to elementree
which I found in the python cookbook:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/157358
Bruno Desthuilliers wr
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 import win32api and checking for an exception ;-)
--
http://mail.python.org/mailman/listinfo/python-list
(I don't know how to make the title more specific in a useful way,
sorry.)
http://www.geocities.com/fusionary_2000/PingGUI.zip
Requires wxPython.
The part that fails is the function OnGridLabelLeftClick in PingGUI.py.
It just doesn't do anything. It's supposed to sort the grid by values
in the c
Hi. I'm a user of python for about 3 years now. I've written a
client-server application that uses SimpleXMLRPCServer and
xmlrpclib.ServerProxy to communicate. It's intended to be used by a
single-person as a backend and GUI frontend. I've got it running
great. Much stabler than my custom RPC I'd t
Tom Willis wrote:
[snip]
> Whoa, you are asking alot. Without knowing anything about your
> requirements except what was mentioned in your post. I would say you
> would quite possibly want the functionality of a relational database.
I'm not sure I agree with that.
If the data is likely to be lar
Ruud wrote:
So far for *how* it works. As to *why* it works like this, I don't know
for sure. But my guess is that the reasoning was something as follows:
if you define a function (regular or something special like a
classmethod) only for an instance of a class, you obviously don't
want to use it i
On Fri, 11 Mar 2005 17:27:06 -0700, Jeffrey Barish wrote:
> Most of my program lives in a class. My plan is to have a superclass
> that performs the generic functions and subclasses to define methods
> specific to each platform
> I'm just getting up to speed on Python and OOP, so I'm wondering
Leeds, Mark said unto the world upon 2005-03-11 20:03:
Do I have to import something
In order to use the set command ?
I am trying to use it but
I keep getting an error.
Mark
The answer depends upon which version of Python you are using. That
information, along with
Hello, I'm new to both PostgreSQL and psycopg and I'm trying to connect
to my database running on localhost. I have postgres setup to do md5
authentication and this works when using a db admin tool on my local
network. For some reason, psycopg fails with IDENT authentication.
>>> import psycopg
>>
I usually do it by sorting the list and then scanning in the obvious
way, moving stuff down, and doing a single del operation at the end.
--
http://mail.python.org/mailman/listinfo/python-list
Martin Miller wrote:
In section "3.27 new -- Creation of runtime internal objects" of the
documentation that comes with Python 2.4 it says:
instancemethod(function, instance, class)
[...]
However, some simple experiments I've tried seem to indicate that the
last argument, 'class' can be left off wi
On Fri, 11 Mar 2005 23:32:48 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hello NG,
>
>I am still quite a newbie with Python (I intensely use wxPython, anyway).
> I would like to know what are, in your opinions, the best/faster databases
> that I could use in Python (and, of course, I
> In fact, you've got None referenced by both "my" and "c" in this
> example, and in a more complicated program None will be referenced by
> dozens symbols because it's unique [e.g. (a == None, b == None)
> necessitates (a is b) == True]
Even worse: freshly started 2.2 interpreter:
>>> sys.getrefc
[EMAIL PROTECTED] wrote:
In Martinelli's Nutshell book in the Exceptions chapter there is an
example of a custom exception class (pg.112) that I am trying to
implement without success. The custom exception class example pulls
sys.exc_info() into an attribute and I am assuming that the attribute
wo
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'd like to use this knowledge in some funny way, I'd like to code a
> good game, maybe some RPG or platform-type, but I don't want to do it
> alone, neither to start it from scratch. [etc]
You might also ask this on the pygame list,
Qiangning Hong wrote:
From Guido's PEP8:
- Relative imports for intra-package imports are highly
discouraged. Always use the absolute package path for all
imports.
Does it mean I should put my develop directory into PYTHONPATH (e.g.
/home/hongqn/devel/python) and use "import mypr
In section "3.27 new -- Creation of runtime internal objects" of the
documentation that comes with Python 2.4 it says:
> instancemethod(function, instance, class)
>
> This function will return a method object, bound to instance, or
unbound if
> instance is None. function must be callable.
However
Do I have to import something
In order to use the set command ?
I am trying to use it but
I keep getting an error.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
In the reply to your post about the crash, there
was a link to the bug report on Sourceforge that
includes a workaround. Specifically, remove the
mbcs encoding tag from the generated file. (or fromg
genpy.py itself so that it never gets put into a new
file) Does this do anything for the unwarrante
Pete,
What web server are you using?
Take a look at Apache and use digest authentication. The password is not
sent in clear text and it's fairly easy to setup. Plus you won't have to do
anything in your web pages. Once you setup digest authentication on the web
server for the specified dire
> The Language Shootout at http://shootout.alioth.debian.org/ has code
> samples in many languages, both interpreted and compiled, including
the
> ones you mentioned. Don't trust the lines-of-code statistics, though
--
> the LOC measure is wrongly shown as zero for several codes, and
comment
> line
Jeffrey Barish wrote:
class super:
'''All the generic stuff goes here'''
Better not to call the class super: it's a built-in type
class linux_subclass(super):
def func(self):
'''linux-specific function defined here'''
class windows_subclass(super):
def func(self):
'''win
>> caused problems in the past. A module might sniff for 'set' and
>> assume it is running on 2.4 if it sees it, with unpredictable results
>> if it relies on any other 2.4 behaviour.
John> Aarrgghh! When there's a documented API (sys.version_info) for
John> determining the ve
Hello.
Most of the socket
articles I've read say that 5 is the normal value for socket.listen() backlog
parameter.
We're running a
server (written in Python) with the value set to 10, but during peak
periods, users complain that their clients (also written in
Python) "hang".
Here's th
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL
PROTECTED]>...
>
> In the locale API, you have to do
>
> locale.setlocale(locale.LC_ALL, "")
>
> to activate the user's preferences. Python does that on startup,
> but then restores it to the "C" locale, since that is the specif
On Sat, Mar 12, 2005 at 12:55:38AM +0200, Christos TZOTZIOY Georgiou wrote:
> On 12 Mar 2005 00:44:39 +0200, rumours say that Ville Vainio
> <[EMAIL PROTECTED]> might have written:
>
> >Christos> This is just a personal opinion, but I detest restraints
> >Christos> on library (itertools mo
I have a small program that I would like to run on multiple platforms
(at least linux and windows). My program calls helper programs that
are different depending on the platform. I think I figured out a way
to structure my program, but I'm wondering whether my solution is good
Python programming
from sets import Set
for akey in grp.keys():
grp[akey] = list(Set(grp[akey]))
On Friday 11 March 2005 03:15 pm, Leeds, Mark wrote:
> I have a dictionary grp that has lists
>
> for each element ( excuse my terminology if it's
>
> incorrect).
>
>
>
> So gname might be automobiles, finance, constru
Leeds, Mark wrote:
I have a dictionary grp that has lists
for each element ( excuse my terminology if it's
incorrect).
So gname might be automobiles, finance, construction etc
and grp[gname] is a list and this list
has elements that are strings
such as ["AAA","BBB","AAA","CCC"]
Is there a quick way
[EMAIL PROTECTED] wrote:
> Skip Montanaro wrote:
>
> > I use sets a lot in my Python 2.3 code at work and have been using
> > this hideous import to make the future move to 2.4's set type
> > transparent:
>
> > try:
> > x = set
>
> (Surely just 'set' on its own is sufficient? This avoi
I don't know the mentioned book, but if you rewrite like:
>>> import sys
>>> class LinuxDriverError(Exception):
... def __init__(self, *args):
... Exception.__init__(self, *args)
... self.message = args[0]
...
... def __str__(self):
... return str(sys.exc_info())
...
On 11 Mar 2005 12:39:30 -0800, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>lots of good answers there, and quickly, too!
>
>I can see that I need to explain a bit further what I'm up to.
>
>I have a number of variables (environmental variables, actually), most
>of which will have a value. But
>> I have:
>> try:
>> set
>> except NameError:
>> from sets import Set as set
>> in my code in a few places.
Sion> Is there any reason to prefer this over the idiom I have:
Sion> if sys.version_info < (2, 4):
Sion> from sets import Set as set
No,
Stephen> I have:
Stephen> try:
Stephen> set
Stephen> except NameError:
Stephen> from sets import Set as set
Stephen> in my code in a few places.
Yes, but then pychecker complains about a statement with no apparent effect,
hence the extra verbiage.
My question was
In Martinelli's Nutshell book in the Exceptions chapter there is an
example of a custom exception class (pg.112) that I am trying to
implement without success. The custom exception class example pulls
sys.exc_info() into an attribute and I am assuming that the attribute
would then contain the rais
Hi, I've been programming with python and pygame for a year now, I
started a RPG game, did some small toy apps (like exploring mandelbrot
set) and an entire End-of-Career project about Evolutionary Computing
and Natural Algorithms (5000 lines more or less) with this language.
I'd like to use this
Perhaps try something like this?
variables = ['a', 'b', 'c']
defaults = {
'a': 'c:\\programs',
'b': 'd:\\data',
# etc
}
try:
settings = dict([(v, os.environ.get(v, defaults[v])) for v in
variables])
except KeyError, k:
# handle missing variable
print "you have a problem with %s" % k.
I have a dictionary grp that has lists
for each element ( excuse my terminology if it’s
incorrect).
So gname might be automobiles, finance, construction etc
and grp[gname] is a list and this list
has elements that are strings
such as [“AAA”,”BBB”,”AAA”,”CCC”]
Is there a quick w
Ville Vainio wrote:
"Christos" == TZOTZIOY writes:
>> For quick-and-dirty stuff, it's often convenient to flatten a sequence
>> (which perl does, surprise surprise, by default):
>>
>> [1,2,[3,"hello",[[4 ->
>>
>> [1, 2, 3, 'hello', 4]
Christos> See Python Libr
On Fri, 11 Mar 2005 14:06:27 -0800, David Eppstein <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
> Patrick Useldinger <[EMAIL PROTECTED]> wrote:
>
>> > Well, but the spec didn't say efficiency was the primary criterion, it
>> > said minimizing the number of comparisons was.
>>
>> T
On Fri, 11 Mar 2005 17:33:14 -0500, rumours say that JMG <[EMAIL PROTECTED]>
might have written:
>hello world
Test failed: wrong case of 'h', missing ',' and '!'. Sorry. Try again.
NB by posting to alt.test instead, you have better chances of avoiding smart-ass
replies like mine :)
--
TZOTZIO
I know this is an old topic and addressed before.I Googled and found
some old messages about this and other programs as well, but never read
about an actual solution.
I'm new to Python and haven't done much programming in a long time.
I want to use it to generate objects in drawings and analyze
On 12 Mar 2005 00:44:39 +0200, rumours say that Ville Vainio
<[EMAIL PROTECTED]> might have written:
>Christos> This is just a personal opinion, but I detest restraints
>Christos> on library (itertools module in this case) expansion
>Christos> when talking about such useful *building b
Steven Bethard wrote:
> Chris Perkins wrote:
>> Random idea of the day: How about having syntax support for
>> currying/partial function application, like this:
>>
>> func(..., a, b)
>> func(a, ..., b)
>> func(a, b, ...)
>>
>> That is:
>> 1) Make an Ellipsis literal legal syntax in an argument li
On Fri, 11 Mar 2005 11:07:02 -0800, rumours say that David Eppstein
<[EMAIL PROTECTED]> might have written:
>More seriously, the best I can think of that doesn't use a strong slow
>hash would be to group files by (file size, cheap hash) then compare
>each file in a group with a representative of
> "Christos" == TZOTZIOY writes:
>> For quick-and-dirty stuff, it's often convenient to flatten a sequence
>> (which perl does, surprise surprise, by default):
>>
>> [1,2,[3,"hello",[[4 ->
>>
>> [1, 2, 3, 'hello', 4]
Christos> See Python Library Reference,
Chris Perkins wrote:
Random idea of the day: How about having syntax support for
currying/partial function application, like this:
func(..., a, b)
func(a, ..., b)
func(a, b, ...)
That is:
1) Make an Ellipsis literal legal syntax in an argument list.
2) Have the compiler recognize the Ellipsis liter
hello world
--
http://mail.python.org/mailman/listinfo/python-list
Hello NG,
I am still quite a newbie with Python (I intensely use wxPython, anyway).
I would like to know what are, in your opinions, the best/faster databases
that I could use in Python (and, of course, I should be able to "link"
everything
with a wxPython GUI)? Specifically, I work on Reservo
George Sakkis wrote:
The S-expression parser below works, but I wonder if it can be simplified; it's
not as short and
straightforward as I would expect given the simplicity of S-expressions. Can
you see a simpler
non-recursive solution ?
How about this (minus your error checking)?
def parseS(expr
Steve Holden wrote:
John Roth wrote:
"Tobiah" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
What is the purpose of the second argument to super()?
I've always found the docs to be fairly confusing.
They didn't give me enough context to tell what
was going on. I also find the termi
[EMAIL PROTECTED] wrote:
lots of good answers there, and quickly, too!
I can see that I need to explain a bit further what I'm up to.
I have a number of variables (environmental variables, actually), most
of which will have a value. But some may not have been found by
os.environ.get(), so I set tho
In article <[EMAIL PROTECTED]>,
Patrick Useldinger <[EMAIL PROTECTED]> wrote:
> > Well, but the spec didn't say efficiency was the primary criterion, it
> > said minimizing the number of comparisons was.
>
> That's exactly what my program does.
If you're doing any comparisons at all, you're no
> c = None (result of an assignment after the os.environ.get()
returned a KeyError).
Why not trap the KeyError?
--
http://mail.python.org/mailman/listinfo/python-list
Sweet.Thanks for the URLs!!
And for all the other help and good guessing
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 11 Mar 2005 10:59:16 -0500, Steve Holden <[EMAIL PROTECTED]> wrote:
>Marcin Ciura wrote:
>> Duncan Booth wrote:
>>
>>> import sys
>>> def nospace(value, stream=None):
>>> '''Suppress output of space before printing value'''
>>> stream = stream or sys.stdout
>>> stream.softspac
The documentation tells that objects of different type are ordered
arbitrailiy but consistently. You compare a class with an integer and a
list, see : http://www.python.org/doc/2.3.5/lib/comparisons.html
--
http://mail.python.org/mailman/listinfo/python-list
The S-expression parser below works, but I wonder if it can be simplified; it's
not as short and
straightforward as I would expect given the simplicity of S-expressions. Can
you see a simpler
non-recursive solution ?
George
# usage
>>> parseSexpression("(a (b c) (d))")
['a', ['b', 'c'], ['d']]
Charles Hartman wrote:
I'm still shaky on some of sre's syntax. Here's the task: I've got
strings (never longer than about a dozen characters) that are guaranteed
to be made only of characters 'x' and '/'. In each string I want to find
the longest continuous stretch of pairs whose first characte
Charles Hartman wrote:
> If I'm understand you right, then I still didn't explain clearly.
I think you explained it clear enough. Mine was a confused post which would
never have seen the light of c.l.py had I checked it with an example before
hitting . Sorry.
Peter
--
http://mail.python.org/m
[EMAIL PROTECTED] wrote:
I've good luck with this on a Linux system (foolproof), and now
I'm trying to get the same thing to run on a Solaris box.
pythonpath, or env or..?
Any help much appreciated. Thanks
Chuck
Python 2.3.2 (#1, Oct 17 2003, 19:06:15) [C] on sunos5
Type "help", "copyright", "cred
David Eppstein wrote:
Well, but the spec didn't say efficiency was the primary criterion, it
said minimizing the number of comparisons was.
That's exactly what my program does.
More seriously, the best I can think of that doesn't use a strong slow
hash would be to group files by (file size, cheap
I have tried to install Python 2.4 on two pc-s and get this error when
I follow the instruction and type
python at the comand window or Idle window.
I am running Windows xp home edition.
What am I doing wrong?
I have also ask for explanation on Googles and got the answer that there is
such
flamesrock a écrit :
Hi,
Basically, what I'm trying to do is store large amounts of data in a
list or dictionary and then convert that to a custom formatted xml
file.
My list looks roughly like this:
(d[],r[c[d[p[],p[R,C,I)
My question is, would it be faster to use a dictionary if the elements
'127.0.0.1' (99)")
'''
Does anybody know how to solve this issue?
Off hand, I suspect you've run out of unused TCP sockets. Each
connect results in your task allocating a port, and possibly MySQL
allocating a fresh socket to handle the connection that it finds on its
assigned port.
That was it
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
Let's say I have a class which does not define __cmp__ or any of the
rich comparison functions and let x be an instance of this class, then
if I do:
x < 2
or x < ['hello']
I get True everytime. Now, I know that when no __cmp__ etc. is defined,
compa
Thanks -- not only for the code, which does almost exactly what I need
to do, but for the reminder (thanks also to Jeremy Bowers for this!) to
prefer simple solutions. I was, of course, so tied up in getting my
nifty one-liner right that I totally lost sight of how
straightforwardly the job cou
lots of good answers there, and quickly, too!
I can see that I need to explain a bit further what I'm up to.
I have a number of variables (environmental variables, actually), most
of which will have a value. But some may not have been found by
os.environ.get(), so I set those to None. Now, if any
andy2o a écrit :
Hi all,
Sorry if the post's title is confusing... I'll explain:
I have a class, called A say, and N>1 subclasses of A, called
A1, A2, A3, ..., AN say.
Instances of each subclass can sensibly be joined together with other
instances of the *same subclass*. The syntax of the join me
Grig Gheorghiu wrote:
Is there an official procedure for signing up for presenting a
Lightning Talk, except for editing the PyCon05 Wiki page?
Grig
No, just put your name down and that should get you a place.
regards
Steve
--
Steve Holden+1 703 861 4237 +1 800 494 3119
Holden Web LLC
On Fri, 11 Mar 2005 11:55:51 -0500, Victor Ng <[EMAIL PROTECTED]> wrote:
>Is there a way to preserve the argspec of a function after wrapping it
>in a closure?
>
>I'm looking for a general way to say "wrap function F in a closure",
>such that inspect.getargspec on the closure would return the same
Hi. I like to create little utilities for Windows. It's nice to have
Shell Integration, such as using the Context Menu. I've googled
but haven't seen any Python example code for IContextMenu
handlers. Anyone know where I can find some Python examples?
Mainly I'm thinking of creating a Python
On Thursday 10 March 2005 11:02 am, Christos "TZOTZIOY" Georgiou wrote:
> On Wed, 9 Mar 2005 16:13:20 -0600, rumours say that Terry Hancock
> <[EMAIL PROTECTED]> might have written:
>
> >For anyone interested in responding to the above, a starting
> >place might be this maintenance script I wrote
[Peter Hansen wrote]
> Python has never (as far as I know) set up the PATH during
> installation.
I think that's true of the python.org installer. ActivePython will add
the install directory to your PATH.
Trent
--
Trent Mick
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-l
Stewart Midwinter wrote:
I'd like to do something like the following:
a = 1; b = 2; c = None
mylist = [a, b, c]
for my in mylist:
if my is None:
print 'you have a problem with %s' % my #this line is problematic
You have a problem with None
What I want to see in the output is:
How do
Hi Stewart,
what about the other way, string -> var and not var -> string?
My suggestion:
mylist = ["a", "b", "c"]
for my in mylist:
if locals()[my] == None:
print "you have a problem with %s" % my
Paolo
Stewart Midwinter wrote:
I'd like to do something like the following:
a = 1; b = 2; c
In view of Duncan's response, which invalidates the premises
of my proposal, I announce the end of its short life. I will
add Duncan's solution to my bag of tricks - thank you!
Marcin
--
http://mail.python.org/mailman/listinfo/python-list
Marcin Ciura wrote:
Duncan Booth wrote:
import sys
def nospace(value, stream=None):
'''Suppress output of space before printing value'''
stream = stream or sys.stdout
stream.softspace = 0
return str(value)
I'm teaching Python as the first programming language to non-computer
scient
I'm against further tinkering with Print on a number
of grounds, not least of which is that it's going
away in Python 3.0. It seems like wasted effort.
I don't see much difficulty with the current behavior:
if you want to get rid of the spaces, there are
alternatives.
I don't buy the novice argueme
Bengt Richter wrote:
On 10 Mar 2005 15:18:08 -0800, [EMAIL PROTECTED] wrote:
Hello,
I need to create 6 buffers in python and keep track of it.
I need to pass this buffer, say buffer 1 as an index to a test app. Has
Take a look at Blocks & Views:
http://members.dsl-only.net/~daniels/Block.html
Hi,
Basically, what I'm trying to do is store large amounts of data in a
list or dictionary and then convert that to a custom formatted xml
file.
My list looks roughly like this:
(d[],r[c[d[p[],p[R,C,I)
My question is, would it be faster to use a dictionary if the elements
of the lists have
Any given Python object may be bound to multiple names or none at all,
so trying to find the symbol(s) which reference an object is sort of
quixotic.
In fact, you've got None referenced by both "my" and "c" in this
example, and in a more complicated program None will be referenced by
dozens symbol
I was recently playing with my vmware and found that the enthought python
distro installs and behaves very well. It has many handy modules bundled with
it (but I think that its at 2.3.3 if that makes a difference):
http://www.enthought.com/python/
More windowsy users may have some thoughts abou
Greg Lindstrom wrote:
I've been running python for years and have never had trouble installing
until today. I am trying to install Python 2.3.5 from python.org on my
windows 2000 box. I uninstalled everything from the previous Python,
downloaded and ran the exe and everything appeared to run c
Stewart Midwinter wrote:
I'd like to do something like the following:
a = 1; b = 2; c = None
mylist = [a, b, c]
for my in mylist:
if my is None:
print 'you have a problem with %s' % my #this line is problematic
You have a problem with None
What I want to see in the output is:
You ha
I've been running python for years and have never had trouble installing
until today. I am trying to install Python 2.3.5 from python.org on my
windows 2000 box. I uninstalled everything from the previous Python,
downloaded and ran the exe and everything appeared to run correctly
(even got th
1 - 100 of 199 matches
Mail list logo