On 6 Mrz., 02:53, bearophileh...@lycos.com wrote:
This is an interesting post, it shows me that fitness plateau where
design of Python syntax lives is really small, you can't design
something just similar:
http://unlimitednovelty.com/2009/03/indentation-sensitivity-post-mort...
Living on a
SpamMePlease PleasePlease spankthes...@googlemail.com writes:
On Fri, Mar 6, 2009 at 6:56 AM, Shantanu Joshi weemadart...@gmail.com wrote:
You need to parse the MIB file to get the human-readable names
corresponding to the OIDs. The pysnmp library already provides this
functionality. I
On Mar 5, 11:22 pm, SpamMePlease PleasePlease
spankthes...@googlemail.com wrote:
On Fri, Mar 6, 2009 at 1:10 AM, birdsong david.birds...@gmail.com wrote:
On Mar 5, 2:30 pm, SpamMePlease PleasePlease
spankthes...@googlemail.com wrote:
On Thu, Mar 5, 2009 at 10:12 PM, birdsong
Gabriel Genellina wrote:
En Fri, 06 Mar 2009 04:29:16 -0200, Steven D'Aprano st...@pearwood.info
escribió:
...
The behaviour I want is from raise_example2, but I'm not sure if this is
documented behaviour, or if it is something I can rely on. Is it
acceptable to modify an exception before
Hi all -
I have succeeded in building Python 2.6.1 from source under Windows XP
by running Visual C++ 2008 Express on the PCbuild/pcbuild.sln file
both from the Visual C++ application as well as from the commandline
using :
vcbuild pcbuild.sln 'Release|Win32'
This builds fine (allowing for
Steven D'Aprano st...@pearwood.info writes:
Okay, if other people are doing it, I'm happy to rely on it as
something which shouldn't just go away without warning. Thanks to
everyone who replied.
If you only want to modify the exception's message string, the
‘message’ attribute is standard
I suppose that what I am looking for is the Windows version of make
install as we know it after running configure with --
prefix=custom_location --exec-prefix=custom_location flags and make on
the Linux platform.
Dan
--
http://mail.python.org/mailman/listinfo/python-list
Muddy Coder wrote:
Hi Folks,
I know PHP can do shopping cart, such as Zen Cart. I wonder can Python
do such a thing? Thanks!
Muddy Coder
Python is Turing Complete
--
http://mail.python.org/mailman/listinfo/python-list
abhinayaraj.r...@emulex.com a écrit :
(snip)
I need to have a look at that all those doc's you have mentioned. That should
help.
+1 QOTW !-)
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
You can have one, or the other, but not both, unless you're willing
to have a practicality beats purity trade-off and create a second way of
grouping blocks,
I propose /* and */ as block delimiters.
There, you have auto-documenting code, ahah!
--
Hi everybody,
I would like to prevent the loading of modules in the current directory.
For example, if I have a personal module in the current directory
named os, when I do import os, I would like Python to import os
standard module, not my personal module of the current directory.
Is this
On Fri, Mar 6, 2009 at 1:33 AM, TP tribulati...@paralleles.invalid wrote:
Hi everybody,
I would like to prevent the loading of modules in the current directory.
For example, if I have a personal module in the current directory
named os, when I do import os, I would like Python to import os
Muddy Coder cosmo_gene...@yahoo.com writes:
I know PHP can do shopping cart, such as Zen Cart. I wonder can Python
do such a thing? Thanks!
As they say in a certain other place--the answer is: yes! Python can
do that.
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 5, 7:38 pm, writeson doug.farr...@gmail.com wrote:
Hi everyone,
I wrote aloggingserver that receives messages
fromlogging.handlers.SocketHandler objects in client Python programs. This
works well so long as the client programs are start/stop affairs.
However, if the client is also a
Paul Rubin http://phr...@nospam.invalid writes:
As they say in a certain other place--the answer is: yes! Python can
do that.
Wow, you're right. They do sound quite certain in that place.
--
\“Don't fight forces, use them.” —Richard Buckminster Fuller, |
`\
TP schrieb:
Hi everybody,
I would like to prevent the loading of modules in the current directory.
For example, if I have a personal module in the current directory
named os, when I do import os, I would like Python to import os
standard module, not my personal module of the current
Hi, I'm new to python, and as the title says, can I improve this snippet
(readability, speed, tricks):
def get_fitness_and_population(fitness, population):
return [(fitness(x), x) for x in population]
def selection(fitness, population):
'''
Select the parent chromosomes from a
Hello all,
I am trying to use gettext method for my one of program making i18N usable
in Unicode. When i enter the text repalcement in .po file and try to create
.mo file from that, it gives me error as : invalid multibyte sequence. I
tried this for french language.
e.g #: pywine.py:121
dan.erik.peter...@gmail.com schrieb:
I suppose that what I am looking for is the Windows version of make
install as we know it after running configure with --
prefix=custom_location --exec-prefix=custom_location flags and make on
the Linux platform.
The Windows build system doesn't have
Dennis Lee Bieber a écrit :
On Thu, 5 Mar 2009 14:30:54 -0800 (PST), Muddy Coder
cosmo_gene...@yahoo.com declaimed the following in comp.lang.python:
I know PHP can do shopping cart, such as Zen Cart. I wonder can Python
do such a thing? Thanks!
Python is a general purpose,
On Fri, Mar 6, 2009 at 2:19 AM, mattia ger...@gmail.com wrote:
Hi, I'm new to python, and as the title says, can I improve this snippet
(readability, speed, tricks):
def get_fitness_and_population(fitness, population):
return [(fitness(x), x) for x in population]
def selection(fitness,
En Fri, 06 Mar 2009 06:52:00 -0200, dan.erik.peter...@gmail.com escribió:
I have succeeded in building Python 2.6.1 from source under Windows XP
by running Visual C++ 2008 Express on the PCbuild/pcbuild.sln file
both from the Visual C++ application as well as from the commandline
[...]
I would
On Fri, Mar 6, 2009 at 9:03 AM, Shantanu Joshi weemadart...@gmail.com wrote:
SpamMePlease PleasePlease spankthes...@googlemail.com writes:
On Fri, Mar 6, 2009 at 6:56 AM, Shantanu Joshi weemadart...@gmail.com
wrote:
You need to parse the MIB file to get the human-readable names
Lie Ryan wrote:
Python is Turing Complete
Well, actually no, because it doesn't support an infinite amount of memory.
Add this to things to check before wasting a lot of money in hardware.
--
http://mail.python.org/mailman/listinfo/python-list
Il Fri, 06 Mar 2009 10:19:22 +, mattia ha scritto:
Hi, I'm new to python, and as the title says, can I improve this snippet
(readability, speed, tricks):
def get_fitness_and_population(fitness, population):
return [(fitness(x), x) for x in population]
def selection(fitness,
Hello,
I have created a Python evaluator - system that evaluates python
scripts.Better explanation (how does it work):
1.) You have to open task that you want to solve from evaluator
task panel
2.) Solve task
3.) Send task on evaluator
4.) After few seconds you get your result
Ben Finney wrote:
(Could you please set a valid email address for people to contact you
if necessary?)
Thanks a lot for your help.
My email address is in my signature:
--
python -c print ''.join([chr(154 - ord(c)) for c in '*9(9(18%.\
91+,\'Z4(55l4('])
When a distinguished but elderly
On Fri, Mar 6, 2009 at 3:07 AM, mattia ger...@gmail.com wrote:
Great, the for statement has not to deal with fap anymore, but with
another sequence, like this:
def get_roulette_wheel(weight_value_pairs):
roulette_wheel = []
for weight, value in weight_value_pairs:
[sorry for dup terry; prev not to list]
Terry Reedy wrote:
@alias('justAsFantastic')
def someFantasticMethod(args): ...
does this exist? i read the previous post and thought i think a
decorator could do that, but i haven't written one.
the reason i ask is that for 3-2 backwards compatability
On Mar 6, 11:21 am, Christian Heimes li...@cheimes.de wrote:
dan.erik.peter...@gmail.com schrieb:
I suppose that what I am looking for is the Windows version of make
install as we know it after running configure with --
prefix=custom_location --exec-prefix=custom_location flags and make on
Il Fri, 06 Mar 2009 03:43:22 -0800, Chris Rebert ha scritto:
On Fri, Mar 6, 2009 at 3:07 AM, mattia ger...@gmail.com wrote:
Great, the for statement has not to deal with fap anymore, but with
another sequence, like this:
def get_roulette_wheel(weight_value_pairs):
roulette_wheel = []
Guys:
I know that there is no PyString_AsString in Python3.0,
could you guys give me instruction about how can I do with the
following ?
PyObject *exc_type = NULL, *exc_value = NULL, *exc_tb = NULL;
PyErr_Fetch(exc_type, exc_value, exc_tb);
how do I transfer the exc_type in a char* ?
thanks in
On Fri, 2009-03-06 at 11:59 +0100, Marco Mariani wrote:
Lie Ryan wrote:
Python is Turing Complete
Well, actually no, because it doesn't support an infinite amount of memory.
Surely you can address an infinite amount of storage using infinite
length integers and a wrapper to files on disk
On Fri, Mar 6, 2009 at 11:37 AM, SpamMePlease PleasePlease
spankthes...@googlemail.com wrote:
On Fri, Mar 6, 2009 at 9:03 AM, Shantanu Joshi weemadart...@gmail.com wrote:
SpamMePlease PleasePlease spankthes...@googlemail.com writes:
On Fri, Mar 6, 2009 at 6:56 AM, Shantanu Joshi
On Fri, Mar 6, 2009 at 3:52 AM, mattia ger...@gmail.com wrote:
Il Fri, 06 Mar 2009 03:43:22 -0800, Chris Rebert ha scritto:
On Fri, Mar 6, 2009 at 3:07 AM, mattia ger...@gmail.com wrote:
Great, the for statement has not to deal with fap anymore, but with
another sequence, like this:
def
Greetings All,
I've been watching this thread since it kicked off with interest.
I'd be interested in being kept in the loop with the development of this
project as I have made some very simple CAD like tools for Layer
Manufacturing (also known as Rapid Prototyping) machines in the past and
BigHand heweiwei at gmail.com writes:
Guys:
I know that there is no PyString_AsString in Python3.0,
could you guys give me instruction about how can I do with the
following ?
There is no PyString_AsString. Everything string is unicode now. (PyUnicode API)
--
Hello everyone,
I have a curious problem which I'm wondering if anyone here can shed
some light on. I'm basically just following along with a guide which
is going through some of the os module, and I'm running some examples
in the python interpreter on mac os x (accessed through terminal/
bash).
mattia wrote:
Hi, I'm new to python, and as the title says, can I improve this snippet
(readability, speed, tricks):
def get_fitness_and_population(fitness, population):
return [(fitness(x), x) for x in population]
def selection(fitness, population):
'''
Select the parent
Tim Wintle wrote:
Python is Turing Complete
Well, actually no, because it doesn't support an infinite amount of memory.
Surely you can address an infinite amount of storage using infinite
length integers and a wrapper to files on disk - then it's just your
OS's limits that hold it back - so
Chris Rebert c...@rebertia.com writes:
for i in range(len(fap)):
selected_population.append(choice(rw))
for i in range(len(something)) is a bit of a code smell. You could
instead say:
selected_population.extend(choice(rw) for x in fap)
The unused x is also a slight code smell,
Tim Wintle tim.win...@teamrubber.com writes:
Surely you can address an infinite amount of storage using infinite
length integers and a wrapper to files on disk - then it's just your
OS's limits that hold it back - so python is turing/register complete.
Python doesn't have infinite length
On Fri, 6 Mar 2009 05:00:03 -0800 (PST), DLitgo ssj4_d...@hotmail.com wrote:
Hello everyone,
I have a curious problem which I'm wondering if anyone here can shed
some light on. I'm basically just following along with a guide which
is going through some of the os module, and I'm running some
Andre Engels wrote:
On Thu, Mar 5, 2009 at 6:01 PM, Tino Wildenhain t...@wildenhain.de wrote:
Still I'd like to see an application where this really matters (that
keys() and values() match in order)
I think there are many such applications, but also that in each of
those cases it's a
Hi, I need a boolean b to be true if the variable n is not None and not
an empty list, otherwise b should be false.
I ended up with:
b = n is not None and not not n
which seems to work but is that normally how you would do it?
It can be assumed that n is always None or a list that might be empty
Hi,
psykeedelik wrote:
On Mar 5, 6:01 pm, Tino Wildenhain t...@wildenhain.de wrote:
Piet van Oostrum wrote:
Andre Engels andreeng...@gmail.com (AE) wrote:
AE On Wed, Mar 4, 2009 at 11:02 AM, lone_eagle icym...@gmail.com wrote:
Can someone suggest a easy method to do the inverse of
Andre Engels wrote:
On Thu, Mar 5, 2009 at 7:46 PM, Andre Engels andreeng...@gmail.com wrote:
If the dict = {key1: val1, key2: val2, ...}, you can do:
for key in dict:
plot(key,dictionary[key])
Of course I meant:
for key in dict:
plot(key,dict[key])
Which would be the verbose
Fencer schrieb:
Hi, I need a boolean b to be true if the variable n is not None and not
an empty list, otherwise b should be false.
I ended up with:
b = n is not None and not not n
which seems to work but is that normally how you would do it?
It can be assumed that n is always None or a list
Hello All,
I have a requirement where I've to access folders with
path lengths 255 ( Windows only supports 255). To do this I've
created junction points for the folders whose length is 255. The
problem is my python script is unable to recognize these junction
points.
As an example
SpamMePlease PleasePlease spankthes...@googlemail.com writes:
I actually tried to load the new file with following code:
print builder.MibBuilder().getMibPath()
mibBuilder = builder.MibBuilder().loadModules('jnx-bgpmib2')
but I am experiencing the error:
rivendell # python snmp.py
Maybe I'm missing something obvious here
def A (...):
#set a bunch of variables
x = 1
b = 2
...
Do something with them
def B (...):
#set the same bunch of variables
x = 1
b = 2
...
Do something with them
I want to apply DRY, and extract out the common setting of these
if the values are related in meaning then it seems possible that they
should be attributes on an object. in which case you would use an
instance of the object in both cases and set the values in the objects
constructor.
if they are not related in meaning then you're not really repeating
Neal Becker schrieb:
Maybe I'm missing something obvious here
def A (...):
#set a bunch of variables
x = 1
b = 2
...
Do something with them
def B (...):
#set the same bunch of variables
x = 1
b = 2
...
Do something with them
I want to apply DRY, and extract out the common
Neal Becker a écrit :
Maybe I'm missing something obvious here
def A (...):
#set a bunch of variables
x = 1
b = 2
...
Do something with them
def B (...):
#set the same bunch of variables
x = 1
b = 2
...
Do something with them
I want to apply DRY, and extract out the common
Hi,
Can anyone explain to me what are decorators for? What are advantages
of using them?
Thanks
L.
--
http://mail.python.org/mailman/listinfo/python-list
If the documentation is not clear to you as it was not to me, the following
adds the search path, /Volumes/iDisk/match/python/matchmod, to the list of
places python looks for modules, I have this included as an
import statement at the beginning of a program.
from sys import path
On 5 Mar, 15:37, Ghirai ghi...@ghirai.com wrote:
Hello list,
I need to keep x number of instances of an external applications
running, say /bin/x, but also kill and restart each one after y seconds.
What would be the best way to do this (with python 2.5.x)?
I'm thinking of having a list of
Bruno Desthuilliers wrote:
Neal Becker a écrit :
Maybe I'm missing something obvious here
def A (...):
#set a bunch of variables
x = 1
b = 2
...
Do something with them
def B (...):
#set the same bunch of variables
x = 1
b = 2
...
Do something with them
I
Paul Rubin wrote:
Tim Wintle tim.win...@teamrubber.com writes:
Surely you can address an infinite amount of storage using infinite
length integers and a wrapper to files on disk - then it's just your
OS's limits that hold it back - so python is turing/register complete.
Python doesn't have
the arguments are similar to aspect oriented programming (so you could
google that).
sometimes you want to do a similar thing in various places in your code.
the classic example is logging when a method is called. rather than
adding logging statements to every method, you can use a decorator -
Johnny wrote...
Can anyone explain to me what are decorators for? What are advantages
of using them?
A tutorial article about decorators from Bruce Eckel:
http://www.artima.com/weblogs/viewpost.jsp?thread=240808
--
The ability of the OSS process to collect and harness
the collective IQ of
On 3月6日, 下午8时50分, Benjamin Peterson benja...@python.org wrote:
BigHand heweiwei at gmail.com writes:
Guys:
I know that there is no PyString_AsString in Python3.0,
could you guys give me instruction about how can I do with the
following ?
There is no PyString_AsString. Everything
Hi guys,
Can you please help me with this:
I wrote a little game in wxPython where I move small panels (showing
bitmaps (100 x 100)) on the screen.
This is similar to the code I wrote:
for i in xrange(1, steps + 1):
my_panel.SetPosition(...)
time.sleep(0.1 / steps)
I use PyScripter
venutaurus...@gmail.com wrote:
Hello All,
I have a requirement where I've to access folders with
path lengths 255 ( Windows only supports 255). To do this I've
created junction points for the folders whose length is 255. The
problem is my python script is unable to recognize these
Johny wrote:
Hi,
Can anyone explain to me what are decorators for? What are advantages
of using them?
Decorators are for many things. One thing is for factoring out common
functionality. Suppose, for example, you have a number of functions that
all test that the argument is larger than zero.
That's weird. It might have to do with the main loop.
I am not familiar with pyscripter, but it might supply
a wx mainloop. However, if that is the case, I would
expect the app to run slower in pyscripter, not when
run without it...
So can you use wx interactively from pyscripter?
In other words,
I have a new laptop that came with Vista 64 and I'm having problems
with some of my older code that I use for multimedia processing. I
narrowed the problem down to the winsound library; any attempt to play
sounds results in a fatal error. The simplest case is:
from winsound import Beep
Neal Becker wrote:
What if I had:
my_obj = common_variables()
That set all these attributes, but then with function A I inject them into
A's scope (shouldn't be too hard to do, I think)?
DRY is a shorthand for people to remember, but it's not a direct law. i
am worried that you are trying
On Mar 6, 2009, at 9:13 AM, Michiel Overtoom wrote:
Johnny wrote...
Can anyone explain to me what are decorators for? What are advantages
of using them?
A tutorial article about decorators from Bruce Eckel:
http://www.artima.com/weblogs/viewpost.jsp?thread=240808
Thanks for that,
Maybe I'm missing something obvious here
def A (...):
#set a bunch of variables
x = 1
b = 2
...
Do something with them
def B (...):
#set the same bunch of variables
x = 1
b = 2
...
Do something with them
I want to apply DRY, and extract out the common setting of these
Just curious if this is the best way to get the first 3 letters of the current
month?
import datetime
d = datetime.date.today()
m = d.strftime(%B)[:3].upper()
m
'MAR'
Thanks.
Jay
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Mar 6, 2009 at 7:24 AM, jyoun...@kc.rr.com wrote:
Just curious if this is the best way to get the first 3 letters of the
current month?
import datetime
d = datetime.date.today()
m = d.strftime(%B)[:3].upper()
m
'MAR'
I believe you want the lowercase version, %b (Locale’s
On 2009-03-06, Fencer no.s...@plz.ok wrote:
Hi, I need a boolean b to be true if the variable n is not
None and not an empty list, otherwise b should be false.
I ended up with:
b = n is not None and not not n
I'd do it like this:
b = (n is not None) and (n != [])
Your code doesn't meet
Tim Chase wrote:
Maybe I'm missing something obvious here
def A (...):
#set a bunch of variables
x = 1
b = 2
...
Do something with them
def B (...):
#set the same bunch of variables
x = 1
b = 2
...
Do something with them
I want to apply DRY, and extract out the
On Mar 6, 2:59 pm, Johny pyt...@hope.cz wrote:
Hi,
Can anyone explain to me what are decorators for? What are advantages
of using them?
Thanks
L.
See http://pypi.python.org/pypi/decorator for many examples of useful
decorators, or the
references in the Wikipedia page:
Vinay,
Thanks for the quick response, very much appreciated. I tried the two
scripts you pointed to, modifying the client so it produces log
messages in an endless loop, and it worked fine. If I left the client
running and stopped and started the server, the client would reconnect
and messages
On Mar 6, 1:19 am, Lie Ryan lie.1...@gmail.com wrote:
Muddy Coder wrote:
Hi Folks,
I know PHP can do shopping cart, such as Zen Cart. I wonder can Python
do such a thing? Thanks!
Muddy Coder
Python is Turing Complete
Python is Turing complete is c.l.p's equivalent to Godwin's law.
On Mar 6, 7:09 pm, Tim Golden m...@timgolden.me.uk wrote:
venutaurus...@gmail.com wrote:
Hello All,
I have a requirement where I've to access folders with
path lengths 255 ( Windows only supports 255). To do this I've
created junction points for the folders whose length is
In article d1914a53-6db6-4dd1-a2a3-55731cb42...@13g2000yql.googlegroups.com,
Johny pyt...@hope.cz wrote:
Can anyone explain to me what are decorators for? What are advantages
of using them?
Additional links that may be helpful:
http://wiki.python.org/moin/PythonDecoratorLibrary
On Mar 6, 8:41 am, iu2 isra...@elbit.co.il wrote:
Hi guys,
Can you please help me with this:
I wrote a little game in wxPython where I move small panels (showing
bitmaps (100 x 100)) on the screen.
This is similar to the code I wrote:
for i in xrange(1, steps + 1):
On Mar 4, 12:52 am, DLitgo ssj4_d...@hotmail.com wrote:
Hello everyone,
I'm curious about creating .app files for the mac using bundlebuilder
(or py2app or even py2exe). I'm just about done creating a GUI for a
little set of scripts which basically perform batch image editing.
If I send
Il Fri, 06 Mar 2009 14:06:14 +0100, Peter Otten ha scritto:
mattia wrote:
Hi, I'm new to python, and as the title says, can I improve this
snippet (readability, speed, tricks):
def get_fitness_and_population(fitness, population):
return [(fitness(x), x) for x in population]
def
As Diez suggests, if you don't want to litter your global namespace, use
a class:
class Foo:
x = 1
b = 2
@classmethod
def A(cls, *args, **kwargs):
do_stuff_with(Foo.x, Foo.b, args, kwargs)
@classmethod
def B(cls,*args, **kwargs):
do_other_stuff_with(Foo.x,
On Mar 6, 4:09 pm, writeson doug.farr...@gmail.com wrote:
To further complicate my original question, here is more information.
Theloggingserver I created uses Twisted (2.5.0) as it's network
framework and gets network log messages from the clients using Twisted
code. However, once a message
On Mar 5, 6:27 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Thu, 05 Mar 2009 15:26:18 -0200, Darren Dale dsdal...@gmail.com
escribió:
On Mar 5, 12:02 pm, s...@pobox.com wrote:
What happens if you simply call
my_thread.setDaemon(True)
(or in Python 2.6):
On Mar 5, 6:27 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Thu, 05 Mar 2009 15:26:18 -0200, Darren Dale dsdal...@gmail.com
escribió:
On Mar 5, 12:02 pm, s...@pobox.com wrote:
What happens if you simply call
my_thread.setDaemon(True)
(or in Python 2.6):
Hi,
This is to announce the first official release of Dao.
Dao is a simple yet powerful object-oriented programming language with
many advanced features including, soft (or optional) typing, BNF-like
macro system, regular expression, multi-dimensional numeric array,
closure, coroutine,
Steven D'Aprano wrote:
Okay, if other people are doing it, I'm happy to rely on it as something
which shouldn't just go away without warning.
At least, it will not go away without fuss.
I would guess that modifying the message is an intended use of bare
'raise', but that is not documented.
On Mar 6, 5:26 am, vedrandeko...@gmail.com wrote:
Hello,
I have created a Python evaluator - system that evaluates python
scripts.Better explanation (how does it work):
1.) You have to open task that you want to solve from evaluator
task panel
2.) Solve task
3.) Send task on
Limin This is to announce the first official release of Dao.
What's the connection to Python?
--
Skip Montanaro - s...@pobox.com - http://www.smontanaro.net/
--
http://mail.python.org/mailman/listinfo/python-list
andrew cooke wrote:
[sorry for dup terry; prev not to list]
Terry Reedy wrote:
@alias('justAsFantastic')
def someFantasticMethod(args): ...
does this exist? i read the previous post and thought i think a
decorator could do that, but i haven't written one.
Not that I know of -- an exercise
Limin Fu wrote:
Hi,
This is to announce the first official release of Dao.
Dao is a simple yet powerful object-oriented programming language
So, you pimp your language in news groups for other languages? I see
your off topic post in 3 language groups I frequent, that's not the way
to get
All,
I realize this question may not belong here but I am going to ask anyway to
the current users of Eclipse and PyDev. It's regarding the auto-complete
feature. Say you want to type sys.path.append('yada yada yada'), using
say Komodo or IDLE. When you get to sys.path.ap and type a (, it will
Neal Becker wrote:
Maybe I'm missing something obvious here
def A (...):
#set a bunch of variables
x = 1
b = 2
...
Do something with them
def B (...):
#set the same bunch of variables
x = 1
b = 2
...
Do something with them
I want to apply DRY, and extract out the common
Darren Dale dsdal...@gmail.com wrote:
On Mar 5, 6:27 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Thu, 05 Mar 2009 15:26:18 -0200, Darren Dale dsdal...@gmail.com
escribi�:
On Mar 5, 12:02�pm, s...@pobox.com wrote:
What happens if you simply call
i agree it's not clear how this is related to python (although i can see
the influence), but it does look like a nice language.
one thing i was surprised to find missing was that the discussion of types
doesn't include classes (the discussion of macros doesn't include types,
but that is more
ctrl-space?
Steve Phillips wrote:
All,
I realize this question may not belong here but I am going to ask anyway
to
the current users of Eclipse and PyDev. It's regarding the auto-complete
feature. Say you want to type sys.path.append('yada yada yada'), using
say Komodo or IDLE. When you
[posted and e-mailed -- please reply to the group]
In article 492d5db9-3681-4ae8-827e-f2a4f66be...@v39g2000yqm.googlegroups.com,
gert gert.cuyk...@gmail.com wrote:
After reading the docs and seeing a few examples i think this should
work ?
This is a bit late, and I don't have time to review
In article mailman.140.1234896250.11746.python-l...@python.org,
Tim Chase python.l...@tim.thechases.com wrote:
Assuming this is a real task and not a homework problem, then
I'd do it this way:
$ cd [directory containing 50 test files]
$ (for file in *; do head -n11 $file | tail -n5;
Johny wrote:
Hi,
Can anyone explain to me what are decorators for? What are advantages
of using them?
There are two questions: why wrap or modify a function after it is
modified? (others have answered this), and why the special syntax?
As to the second:
@deco
def f(): pass
is syntactic
1 - 100 of 240 matches
Mail list logo