I am happy to announce the release Spyder 0.7.2 (beta). It can be freely
downloaded at:
http://www.spyderware.nl
Spyder is a Python-derived data modelling and conversion language.
Spyder extends Python with three Spyder-specific statements, which
are pre-processed (compiled) to pure
itools is a Python library, it groups a number of packages into a single
meta-package for easier development and deployment:
itools.catalogitools.i18n itools.tmx
itools.cmsitools.ical itools.uri
itools.csvitools.odf
Hallöchen!
Paul Rubin writes:
I have a doc with a bunch of fields like:
foo bar=spamstuff/foo
foo bar=penguinother stuff/foo
and sometimes
foo bar=parrot/foo
I use ElementTree to parse the doc and I use the .text attribute
to get stuff or other stuff in the spam and
Torsten Bronger [EMAIL PROTECTED] writes:
foo bar=parrot/foo
Technically, text is nodes as all other element nodes. In the
parrot example, there is no empty textnode but no textnode at all.
That is required by the xml standard? If yes, elementtree is doing
the right thing, but it
On Wed, 15 Aug 2007 23:15:12 +0100, John K Masters wrote:
help('string')
DESCRIPTION
Warning: most of the code you see here isn't normally used nowadays.
Beginning with Python 1.6, many of these functions are
implemented as methods on the standard string object. They used to be
[EMAIL PROTECTED] [EMAIL PROTECTED] writes:
Do you really need a generator or co-routine to do this? Maybe
you can just use a closure:
For my trivial example, sure -- there are lots of ways to do it. Here's
a slightly better example: the `read' method of a file-like object which
sequentially
On 2007-08-15, Larry Bates [EMAIL PROTECTED] wrote:
What are they teaching in schools these days? I see questions like this and
the
equally perplexing why don't floats represent numbers exactly? or the mildy
amusing how do I write bytes not characters to a file questions at least
once
a
Azazello a écrit :
On Aug 15, 7:47 am, Shawn Milochik [EMAIL PROTECTED] wrote:
If I could have only one book, I would buy Core Python, Second
Edition, by Wesley Chun.
For the record, I own:
Core Python, Second Edition (great)
wxPython in Action (haven't used yet)
Beginning Python (barely
Hi,
I know this isnt the pyparsing list, but it doesnt seem like there is
one. I m trying to use pyparsing to parse a file however I cant get
the Optional keyword to work. My file generally looks like this:
ALIGNMENT 1020 YS2-10a02.q1k chr09 1295 42141045
142297 C1254 95.06
My question is -- are python list operations atomic? If they are not,
then I assume I need to put some mutual exclusion around the append()
and pop() calls ?
They are not, but there is one included in the standard library:
http://docs.python.org/dev/lib/module-Queue.html
Why do you think
Paul Rubin wrote:
Torsten Bronger [EMAIL PROTECTED] writes:
foo bar=parrot/foo
Technically, text is nodes as all other element nodes. In the
parrot example, there is no empty textnode but no textnode at all.
That is required by the xml standard? If yes, elementtree is doing
the right
I recently found a link[1] which demonstrates how to secure a xml-rpc
service with basic HTTP-auth. But this get's send in clear-text over
the net. There's also the HTTP-Digest auth mechanism which is
apparently supported as well by twisted[2].
How do I secure an xml-rpc service using digest-auth
Stefan Behnel [EMAIL PROTECTED] writes:
So it's not even an ElementTree thing. ET just doesn't know what
exactly was in the original XML byte stream. A very simple way to
make sure you always get a string back is
text = element.text or
Thanks, I ended up doing something like that. What
Is it possible to send a data object like a tuple or a list in socket
programming? If so how? It seems with socket module it is only possible to
send strings.
--
Oğuz Yarımtepe
http://www.yarimtepe.com/en
--
http://mail.python.org/mailman/listinfo/python-list
hi every one!
can you please help me to fix these polar plot in db's
so that the center is at the minimun negative number in voltagedb
about [-50]
and the maximun is at zero and how can i see values on the axis like
showing that the axes start at -50 -40 -30 .and end at zero
than you
here is
On 16 Sie, 09:42, O uz Yar mtepe [EMAIL PROTECTED] wrote:
Is it possible to send a data object like a tuple or a list in socket
programming? If so how? It seems with socket module it is only possible to
send strings.
--
O uz Yar mtepehttp://www.yarimtepe.com/en
Hi Oguz,
why don't you
Nathan Harmston wrote:
I know this isnt the pyparsing list, but it doesnt seem like there is
one. I m trying to use pyparsing to parse a file however I cant get
the Optional keyword to work. My file generally looks like this:
ALIGNMENT 1020 YS2-10a02.q1k chr09 1295 42 141045
yadin wrote:
can you please help me to fix these polar plot in db's
so that the center is at the minimun negative number in voltagedb
about [-50]
and the maximun is at zero and how can i see values on the axis like
showing that the axes start at -50 -40 -30 .and end at zero
You posted
O¿uz YarÑmtepe [EMAIL PROTECTED] writes:
Is it possible to send a data object like a tuple or a list in socket
programming? If so how? It seems with socket module it is only possible to
send strings.
Look into something like pyro or JSON. Whatever you do, don't use eval.
--
I saw your article is very good, I like it very much. I will continue
to pay attention to your article, the following are the points I hope
that I have similar concerns.
http://www.game-win.com http://www.game-win.com/wow-powerleveling.html
http://www.game-win.com/faq.html
markacy wrote:
On 16 Sie, 09:42, O uz Yar mtepe [EMAIL PROTECTED] wrote:
Is it possible to send a data object like a tuple or a list in socket
programming? If so how? It seems with socket module it is only possible to
send strings.
--
O uz Yar mtepehttp://www.yarimtepe.com/en
Hi
Hello
I'm using wxPython to consruct a GUI and want to change a button label
and event handler to change after the button have been pressed. The
only thing I can think of is a global variable that contrls the state
of the program and constructs the button in accordance to the defined
state. Is
To All Members :
I have some information for you
I would like you to invite to visiting my web, may be you need some
information about newest information about computer, laptop, and than
printer. I have little bit information on my web http://www.komputer -
djogja.blogspot .com/ and
Gary Herron [EMAIL PROTECTED] writes:
be able to recover the original object accurately. Worse yet, an eval
of an arbitrary string is a HUGE security hole.
If you really want to send any Python object through a socket, look up
the Pickle and cPickle modules.
These are also security holes.
On Thursday 16 August 2007 11:20:38 Gary Herron wrote:
If you really want to send any Python object through a socket, look up
the Pickle and cPickle modules. These will marshal (as it's called) any
Python object of any type and complexity into a byte string which can be
sent across a socket.
Sebastian Bassi wrote:
On 8/15/07, Mikael Olofsson [EMAIL PROTECTED] wrote:
What is unclear here is in what order the keys should be visited. The
following assumes that the keys should be considered in alphanumeric order.
Yes, my fault. The orden should be given by a string, like:
[EMAIL PROTECTED] wrote:
I'm using wxPython to consruct a GUI and want to change a button
label
= wx.Button.SetLabel (also have a look at the button examples)
and event handler to change after the button have been
pressed.
I'm not sure if those bindings can easily be changed at runtime.
hi every body,
i have compared two files:
code:
fh = open('HPRD_MAIN_20.txt','r')
for line in fh.readlines():
data = line.strip().split('#')
fh1 = open('NOMENCLATURE_MAIN_20.txt','r')
for line1 in fh1.readlines():
data1 = line1.strip().split('#')
Marshall T. Vandegrift wrote:
Without the decorator that becomes:
gen = nextn(2)
print gen.next() # = [0, 1]
print gen.send(3) # = [2, 3, 4]
print gen.send(1) # = [5]
The former is just that smidgen nicer, and allows you to continue
to make use of argument defaults and
Oğuz Yarımtepe wrote:
On Thursday 16 August 2007 11:20:38 Gary Herron wrote:
If you really want to send any Python object through a socket, look up
the Pickle and cPickle modules. These will marshal (as it's called) any
Python object of any type and complexity into a byte string which can
On 15 Aug, 19:52, Dennis Lee Bieber [EMAIL PROTECTED] wrote:
Hopefully it isn't quite as annoying as some of what I've found in
the Turbogears book that recently arrived from Amazon. (Rapid Web
Applications with TurboGears)
Is this the book that came out before TurboGears even reached
Peter Otten wrote:
yadin wrote:
can you please help me to fix these polar plot in db's
so that the center is at the minimun negative number in voltagedb
about [-50]
and the maximun is at zero and how can i see values on the axis like
showing that the axes start at -50 -40 -30 .and end
Bjoern Schliessmann [EMAIL PROTECTED] writes:
The solution I'd use is a decorator that calls next automatically one
time after instantiation. Then you can use send normally, and don't
have to care about any initial parameters, which makes the code
clearer (initial parameters should be used
[EMAIL PROTECTED] wrote:
Hello
I'm using wxPython to consruct a GUI and want to change a button label
and event handler to change after the button have been pressed. The
only thing I can think of is a global variable that contrls the state
of the program and constructs the button in
On Aug 15, 7:21 pm, alisonken1 [EMAIL PROTECTED] wrote:
Hello all -
I'm looking at trying to write a python script to connect to a layer 2
bridge (no IP available).
Looking at the sockets function, it's not clear if I can connect using
only the mac address - it appears to want either a
Hi there
I want to use ctypes in connection with C functions that use complex
datatypes defined in the C99 standard. Does someone know a simple way
how to implement this? Are there any plans to integrate the C99 complex
data types in the ctypes module?
best regards
Eugen Wintersberger
--
On Thu, 2007-08-16 at 04:21 -0700, Paul Boddie wrote:
[...] I pity the people writing Python books given
continuous changes to the language and the associated recommended
development practices as new features go in, but tracking a target
prior to any kind of stable release seems a bit too
The solution with the dictionary worked perfectlly well, my script is
running and even produces data with sense!!!
Thank you very much indeed to all of you answering. Cheers!
--
http://mail.python.org/mailman/listinfo/python-list
Marshall T. Vandegrift wrote:
I'd seen the consumer decorator, and it certainly is cleaner than
just using a generator. I don't like how it hides the parameter
signature in the middle of the consumer function though, and it
also doesn't provide for argument default values.
Mh, that may
Hello
i would like to localize numbers in python according to the current selected
language of the web page (English, french, arabic, ...), is there any options
in python??
thanks in advance
Yours
Heba
-
Take the Internet to Go: Yahoo!Go puts the
On Aug 15, 11:47 pm, Laurent Pointal [EMAIL PROTECTED] wrote:
Azazello a écrit :
On Aug 15, 7:47 am, Shawn Milochik [EMAIL PROTECTED] wrote:
If I could have only one book, I would buy Core Python, Second
Edition, by Wesley Chun.
For the record, I own:
Core Python, Second Edition
On Aug 10, 12:40 pm, [EMAIL PROTECTED] wrote:
On Aug 6, 9:20 am, Paul Mansour [EMAIL PROTECTED] wrote:
APL2007 Roll Call: Is anyone going to this?
I'm thinking about going, but I don't want to the only one to show up,
as in San Diego.
Here here.
Sorry to mention the elephant in the
I should add that Dive Into Python is also available for free online:
http://www.diveintopython.org/
It's a great book. It is not a linear book -- it doesn't start you off
talking about variable types and structure. It starts you right off
with a piece of working code. If you already have some
A function is defined to get a tuple.
def searchObjectByRange(partObject, objectType, xRange, yRange, zRange):
In the partObject, search objects (edge, face, etc.) within the
given region
TOLERANCE_GLOBAL = 1.0E-6
INFINITE_RANGE = (-1.0E309, 1.0E309)
tolerance =
Thanks/bedankt Bas for the educative reply. I think I got misleaded by
Max/MSP's tutorial[1], because MSP seems to automatically adjust the
phase when you combine two oscillators in the way that I did.
Joost
[1] page 112 of http://www.cycling74.com/download/MSP45TutorialsAndTopics.pdf
--
On Aug 16, 2:09 am, Nathan Harmston [EMAIL PROTECTED]
wrote:
Hi,
I know this isnt the pyparsing list, but it doesnt seem like there is
one. I m trying to use pyparsing to parse a file however I cant get
the Optional keyword to work.
snip
Thanks, Peter, your comments are dead-on.
All the informations about car air conditioners, how to install,
repair, service all can be found on this website...
http://car-air-conditioning.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I need to return the date yesterday in the form DDMM. I looked through
the modules: time, datetime and calendar but can't find anything that leaps
out at me.
The problem I'm having is that although I can use time.localtime and get a
tuple of the year, month, day and so forth, I
Eugen Wintersberger schrieb:
Hi there
I want to use ctypes in connection with C functions that use complex
datatypes defined in the C99 standard. Does someone know a simple way
how to implement this? Are there any plans to integrate the C99 complex
data types in the ctypes module?
I have
import time
oneDay = 60 * 60 * 24 #seconds in one day
date = time.time()
yesterday = date - oneDay
--
http://mail.python.org/mailman/listinfo/python-list
A.T.Hofkamp wrote:
On 2007-08-15, Larry Bates [EMAIL PROTECTED] wrote:
or the mildy
amusing how do I write bytes not characters to a file questions at least
once
a week on this forum.
Actually, that's a reasonable question, and one that Python didn't do
quite right.
Remember, in the
On 8/16/07, special_dragonfly [EMAIL PROTECTED] wrote:
Hello,
I need to return the date yesterday in the form DDMM. I looked through
the modules: time, datetime and calendar but can't find anything that
leaps
out at me.
The problem I'm having is that although I can use time.localtime
special_dragonfly schrieb:
Hello,
I need to return the date yesterday in the form DDMM. I looked through
the modules: time, datetime and calendar but can't find anything that leaps
out at me.
The problem I'm having is that although I can use time.localtime and get a
tuple of the
On 2007-08-16, Shawn Milochik [EMAIL PROTECTED] wrote:
import time
oneDay = 60 * 60 * 24 #seconds in one day
date = time.time()
yesterday = date - oneDay
Or use a timedelta.
import datetime
yesterday = datetime.datetime.today() - datetime.timedelta(days=1)
yesterday.strftime('%m%d%Y')
On 2007-08-16, John Nagle [EMAIL PROTECTED] wrote:
or the mildy amusing how do I write bytes not characters to a
file questions at least once a week on this forum.
Actually, that's a reasonable question, and one that Python didn't do
quite right.
Remember, in the beginning, Python had
special_dragonfly wrote:
Hello,
I need to return the date yesterday in the form DDMM. I looked through
the modules: time, datetime and calendar but can't find anything that leaps
out at me.
The problem I'm having is that although I can use time.localtime and get a
tuple of the year,
On Aug 16, 9:48 am, yadin [EMAIL PROTECTED] wrote:
hi every one!
can you please help me to fix these polar plot in db's
so that the center is at the minimun negative number in voltagedb
about [-50]
and the maximun is at zero and how can i see values on the axis like
showing that the axes
John Nagle schrieb:
A.T.Hofkamp wrote:
On 2007-08-15, Larry Bates [EMAIL PROTECTED] wrote:
or the mildy
amusing how do I write bytes not characters to a file questions at
least once
a week on this forum.
Actually, that's a reasonable question, and one that Python didn't do
quite
Why do you think they are not?
Because they aren't. You even mentioned that a few operations that
aren't atomic. If operations are atomic it isn't necessarily because
of the design of the list, but the design of CPython. More
specifically the GIL. I don't mean to imply that you can't get a
On 8/16/07, John Nagle [EMAIL PROTECTED] wrote:
A.T.Hofkamp wrote:
On 2007-08-15, Larry Bates [EMAIL PROTECTED] wrote:
or the mildy
amusing how do I write bytes not characters to a file questions at least
once
a week on this forum.
Actually, that's a reasonable question, and one
Why do you think they are not?
Because they aren't. You even mentioned that a few operations that
aren't atomic.
OTOH, the OP specifically asked for .append() and .pop(), which are
atomic.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 16, 5:03 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
snip
I use impacket for stuff like that,
seehttp://oss.coresecurity.com/projects/impacket.html
Cheers
Rich.
Thanks, Rich - I'll have a look
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Heller schrieb:
Eugen Wintersberger schrieb:
Hi there
I want to use ctypes in connection with C functions that use complex
datatypes defined in the C99 standard. Does someone know a simple way
how to implement this? Are there any plans to integrate the C99 complex
data types in the
On Aug 16, 10:54 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
RTFM is the answer...
I don't know. I remember scratching my head for a day or two over the
module explanations and instructions until I found a little howto with
a lot of explicite examples.
Steve Holden wrote:
Ritesh Raj Sarraf wrote:
On Aug 16, 12:16 am, Ritesh Raj Sarraf [EMAIL PROTECTED] wrote:
On Aug 15, 11:42 pm, Neil Cerutti [EMAIL PROTECTED] wrote:
[...]
Oops!!! Looks like I completely missed this. It _did_ print the error
message.
Apologies to all for not keeping a
Steve Holden wrote:
I might ask just exactly what is being plotted to give those answers. It
sounds like field strength, but I am having difficulty envisaging a
field that is weakest at its center - is this some sort of alternative
universe you are plotting :-) ?
I believe the OP is trying
I previously posted about accessing SharePoint over the web. Well I
have since given up any easy means of doing this, since something else
has perked my interest. Instead of going to http://sharepoint/site,
why not just access \\sharepoint\site\ directly?
So my question is this - How do I access
Cool cars, tuning styling, modified cars, many upgrades here...
http://tuning-styling.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On 8/16/07, frikk [EMAIL PROTECTED] wrote:
I previously posted about accessing SharePoint over the web. Well I
have since given up any easy means of doing this, since something else
has perked my interest. Instead of going to http://sharepoint/site,
why not just access \\sharepoint\site\
On Aug 16, 2:43 pm, Chris Mellon [EMAIL PROTECTED] wrote:
On 8/16/07, frikk [EMAIL PROTECTED] wrote:
I previously posted about accessing SharePoint over the web. Well I
have since given up any easy means of doing this, since something else
has perked my interest. Instead of going
On 8/16/07, frikk [EMAIL PROTECTED] wrote:
On Aug 16, 2:43 pm, Chris Mellon [EMAIL PROTECTED] wrote:
On 8/16/07, frikk [EMAIL PROTECTED] wrote:
I previously posted about accessing SharePoint over the web. Well I
have since given up any easy means of doing this, since something
I have the following piece of code
a = len(ab_file)
b= 0
while(ba):
c= 0
d = len(cd_files)
while(cd):
if cd_files[c] == ab_file[b]:
files.append(ab_file[b].upper())
else:
files.append(ab_file[b])
c = c + 1
b = b
I know similar things have been argued before, but little things (like
the joined name implying a copy) can make a big difference. That and
I'm providing a simple implementation that works right now, so you
don't have to wait for it to ever become a builtin. ;)
joined([], [[1,2,3], [4,5,6]])
Some one help me so that
If ab = [a,b,c,d]
and cd = [a,c]
my global list file should be [A,b,C,d]
If there is a lot of entries in the list, I would consider using an
indexed data structure such as dict.
ab=['a','b','c','d']
cd=['a','c']
common=[x.upper() for x in ab if x in cd]
On Aug 16, 2:26 pm, beginner [EMAIL PROTECTED] wrote:
Some one help me so that
If ab = [a,b,c,d]
and cd = [a,c]
my global list file should be [A,b,C,d]
If there is a lot of entries in the list, I would consider using an
indexed data structure such as dict.
ab=['a','b','c','d']
Hello,
Why this wx example don't return \nHELLO WORLD and other text in same
window:
import wx
import logging
import sys
def nekaj():
print \nHELLO WORLD
class WxLog(logging.Handler):
def __init__(self, ctrl):
logging.Handler.__init__(self)
self.ctrl = ctrl
def
[EMAIL PROTECTED] (John Fisher) writes:
mark start time
start event
event finishes
count time until next interval
start second eventâ¦
rather than this:
start event
event finishes
sleep for interval
start second event
...
So how do I accomplish this in Python with
Anhoter HURRA for list comprehensions:
a = ['a', 'b', 'c', 'd']
b = ['a','c']
[x in b and x.upper() or x for x in a]
['A', 'b', 'C', 'd']
Is what you want?
Cheers
Gerardo
I'm trying to compare the list with another list and if it is there in
both I'm changing it to upper case and adding
On Aug 16, 4:30 pm, special_dragonfly [EMAIL PROTECTED]
wrote:
Hello,
I need to return the date yesterday in the form DDMM. I looked through
the modules: time, datetime and calendar but can't find anything that leaps
out at me.
The problem I'm having is that although I can use
On Aug 16, 3:03 pm, Chris Mellon [EMAIL PROTECTED] wrote:
On 8/16/07, frikk [EMAIL PROTECTED] wrote:
On Aug 16, 2:43 pm, Chris Mellon [EMAIL PROTECTED] wrote:
On 8/16/07, frikk [EMAIL PROTECTED] wrote:
I previously posted about accessing SharePoint over the web. Well I
have
Hi all. I guess i have a conceptual question:
Im planing using a quite simple decorator to be used as a conditional
for the execution of the function. I mean something like that:
@is_logued_in
def change_pass():
bla
bla
And so on for all the other functions who needs that the user is
On Aug 15, 5:54 pm, Colin J. Williams [EMAIL PROTECTED] wrote:
I posted this about 5 hours ago, but it seems to have gone astray.
(snipped)
I wish to sub-class (if that's the right word) datetime and to use a
different signature for the constructor.
The second part has gone
Hello python-list,
I decided to have some fun and altered a copy of python to use a
Haskell-like syntax for declaring lambdas.
filter( \ x - x == 3 or x 8 , [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ,
10 ] )
[3, 9, 10]
( \- Hello World! )()
'Hello World!'
While doing this I found something
Gerardo Herzig wrote:
Hi all. I guess i have a conceptual question:
Im planing using a quite simple decorator to be used as a conditional
for the execution of the function. I mean something like that:
@is_logued_in
def change_pass():
bla
bla
And so on for all the other functions
On Aug 16, 9:46 am, MRAB [EMAIL PROTECTED] wrote:
As well as the other replies, this also works (as far as I can tell!):
import time
today = time.localtime()
yesterday = today[ : 2] + (today[2] - 1, ) + today[3 : ]
yesterday = time.localtime(time.mktime(yesterday))
This is something I have
Dennis Lee Bieber wrote:
On Thu, 16 Aug 2007 04:21:07 -0700, Paul Boddie [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
Is this the book that came out before TurboGears even reached 1.0,
probably having diminished relevance now that there are 1.1 and 2.0
Not sure
Peter Otten wrote:
Steve Holden wrote:
I might ask just exactly what is being plotted to give those answers. It
sounds like field strength, but I am having difficulty envisaging a
field that is weakest at its center - is this some sort of alternative
universe you are plotting :-) ?
I
Hi,
I previously created a topic named Pass by reference or by value where I
inquired on how python's function parameters work. I received a lot of nice
responses, however I'm still confused on the topic. Note that I come from a
C++ background to Python, so any comparisons to C++ would be very
Gerardo Herzig wrote:
Hi all. I guess i have a conceptual question:
Im planing using a quite simple decorator to be used as a conditional
for the execution of the function. I mean something like that:
@is_logued_in
def change_pass():
bla
bla
And so on for all the other
[EMAIL PROTECTED] wrote:
On Aug 15, 5:54 pm, Colin J. Williams [EMAIL PROTECTED] wrote:
I posted this about 5 hours ago, but it seems to have gone astray.
(snipped)
I wish to sub-class (if that's the right word) datetime and to use a
different signature for the constructor.
Robert Dailey wrote:
Hi,
I previously created a topic named Pass by reference or by value where
I inquired on how python's function parameters work. I received a lot of
nice responses, however I'm still confused on the topic. Note that I
come from a C++ background to Python, so any
Gerardo Herzig wrote:
Hi all. I guess i have a conceptual question:
Im planing using a quite simple decorator to be used as a conditional
for the execution of the function. I mean something like that:
@is_logued_in
def change_pass():
bla
bla
And so on for all the other functions
So immutable objects cannot be modified directly? I guess this means
integers are immutable and the act of assigning to one is a completely new
definition? So if I were to create a class called Integer and give it a
.set() method, this would allow me to create mutable integers, and thus
passing in
Steven Bethard wrote:
Gerardo Herzig wrote:
Hi all. I guess i have a conceptual question:
Im planing using a quite simple decorator to be used as a conditional
for the execution of the function. I mean something like that:
@is_logued_in
def change_pass():
bla
bla
And so on for all
Robert Dailey wrote:
So immutable objects cannot be modified directly? I guess this means
integers are immutable and the act of assigning to one is a completely
new definition?
Correct. A new value is bound to the name or item on the left-hand side
- remember, all variables are pointers to
I have MapPoint working in Python, and I'm trying to cancel events on
the map, but I can't seem to make that happen. I'm responding to the
events successfully in my panel object. My code is like this:
global MapPointMod
MapPointMod =
I have MapPoint working in Python, and I'm trying to cancel events on
the map, but I can't seem to make that happen. I'm responding to the
events successfully in my panel object. My code is like this:
global MapPointMod
MapPointMod =
Thanks Steve for your explanation. It was very helpful. I think I understand
it now. By the way, by the .set method I meant:
class Integer:
def __init__( self, number=0 ):
self._int = number
def set( self, number ):
self._int = number
# later on
mutableInt = Integer(
I have MapPoint working in Python, and I'm trying to cancel events on
the map, but I can't seem to make that happen. I'm responding to the
events successfully in my panel object. My code is like this:
global MapPointMod
MapPointMod =
Hi All.
I'd like to do the following in more succint code:
if k in b:
a=b[k]
else:
a={}
b[k]=a
a['A']=1
In perl it is just one line: $a=$b-{A} ||={}.
Thanks,
Geoffrey
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 138 matches
Mail list logo