Claudio Grondi wrote:
Paul Probert wrote:
Peter Hansen wrote:
Are you saying that you believe the time.sleep(1) call is actually
blocking for 200 seconds?
With such rare occurrence it is very hard to tell what is going on.
Usually I put such strange things on a list of curiosities I
Klaas wrote:
Claudio Grondi wrote:
Beside the intended database file
databaseFile.bdb
I see in same directory also the
__db.001
__db.002
__db.003
files where
__db.003 is ten times as larger as the databaseFile.bdb
and
__db.001 has the same size as the databaseFile.bdb
Ê÷Éϲä»Ò wrote:
'rar' is not recognized as an internal or external command,
operable program or batch file.
import os
import time
source = [r'e:\temp\code',r'e:\temp\domains']
target_dir = r'e:\temp\bak'
target = target_dir+time.strftime('%Y%m%d%H%M%S')+'.rar'
rar_cmd = rar a -idcdp %s
Paul Probert wrote:
Hi,
My app runs in a loop looking for changes in a database, and like a
good boy I call time.sleep(1) inside the loop. Unfortunately this
sometimes runs for 200 seconds or so, presumably while my OS is calling
Bill Gates to tell him what I've been doing. This happens
Paul Probert wrote:
Peter Hansen wrote:
Are you saying that you believe the time.sleep(1) call is actually
blocking for 200 seconds? Or just that your loop (and we can only
guess what it looks like) is the one taking that long?
If the former, try something like putting print 'before'
I have just started to play around with the bsddb3 module interfacing
the Berkeley Database.
Beside the intended database file
databaseFile.bdb
I see in same directory also the
__db.001
__db.002
__db.003
files where
__db.003 is ten times as larger as the databaseFile.bdb
and
DannyB wrote:
I'm just learning Python. I've created a simple coin flipper program -
here is the code:
[source]
#Coin flipper
import random
heads = 0
tails = 0
counter = 0
while (counter 100):
coin = random.randrange(2)
Claudio
if (coin == 0):
heads += 1
[EMAIL PROTECTED] wrote:
I'm happy to spread the word about showmedo.com, an excellent
collection of python programming videos.
From the website
http://showmedo.com/videoListPage?listKey=TheBigPythonList:
The server response under:
al pacino wrote:
hi,
is it possible to address the 'screen pixels' using python , like
analogous to older dos( functions that graphics.h provides') or win api
calls for gdi.
what i want is to display clusters (in differetn colours) on screen
using python.
thanks.
Sure. The problem
Felipe Almeida Lessa wrote:
Em Sáb, 2006-02-18 às 04:24 -0800, Fuzzyman escreveu:
It is set to expire on the 22nd May, and displays a nag screen on
startup. Other than that, it is the full version. Have fun.
Attached is the cracked version with no expiration limit and my own
bitmap on the
Carl Johan Rehn wrote:
What is the difference between CPython, Python for .NET, and IronPython?
For example, if I'm running IronPython, can I access modules such as Numeric
and numarray?
As I understand it, interoperability with C# and .NET works in both
directions with IronPython, but
Michele Petrazzo wrote:
FreeImagePy 1.2.2 is available at freeimagepy.sf.net
What is?
It' a python wrapper for FreeImage, Open Source library for developers
who would like to support popular graphics image formats.
How work?
It use a binary freeimage library present on the system
Sergey wrote:
Tim Golden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
[Sergey]
I see from another post that CreateFile cannot open your file.
That puts it further away from Python, although it doesn't
explain how some other program can see the files. Can you use
os.startfile (or
LittlePython wrote:
I am glad you did remind me of WScript.Shell ... I have to keep in mind
that most if not all of what I have been using in VBS is avail to me.
Thx
Maybe in this context it could be also worth for you to know, that on
Windows you can use Python as a scripting language
Anno Siegel wrote:
Xah Lee [EMAIL PROTECTED] wrote in comp.lang.perl.misc:
...a mechanism, so that any fuckhead tech geekers with their
loud cries will hurt badly when they open their mouths in public...
In this above I hear the voice of someone badly disappointed seeking an
apology and
for you.
So I have to admit, that EasyGUI is in your case apparently
exactly what you was looking for ...
:-)
Claudio
Claudio Grondi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
LittlePython wrote:
That is exactly what I was look for .. thx
Surprised to hear
LittlePython wrote:
That is exactly what I was look for .. thx
Surprised to hear that.
As VisualBasic programmer I would expect you to have experience with
ActiveX on Windows, where the best way to go with Python is to reuse all
the ActiveX components and their known user interfaces (i.e.
Diez B. Roggisch wrote:
Dimitrios Charitatos wrote:
Hello,
I suspect that there is a quite straight forward answer to this, but I
can't find it... I want to import an image and extract a matrix (or array)
from it with elements showing the RGB value of each pixel. But I want to
be able to do
Diez B. Roggisch wrote:
Is there a difference between the 'Numeric' and 'numeric' module?
I have on my system only Numeric... And this has no function like
'from_image'.
I actually didn't check that - I just wanted to point the OP to the
numeric-module(s) available, as he suggested that
Damjan wrote:
This is from the Slackware-current changelog:
d/python-2.4.2-i486-1.tgz: Upgraded to python-2.4.2.
The bsddb module didn't build against the new 4.4.x version of
Berkeley DB. Does anyone care? Or perhaps have a patch? :-)
Does anyone have a suggestion?
I have
enjoying the view wrote:
I am working on a school project, trying to build a simple RPC stub
generator. The idea is that the generator takes a normal python file
with functions defined in it and produces a client and server stub. The
client stub has the same functions defined, but they just
Brian Blais wrote:
Hello,
I have a string input from the user, and want to parse it to a number,
and would like to know how to do it. I would like to be able to accept
arithmetic operations, like:
'5+5'
'(4+3)*2'
'5e3/10**3'
I thought of using eval, which will work, but could lead
DaveM wrote:
Although I've programmed for fun - on and off - since the mid 70's, I'm
definitely an OO (and specifically Python) beginner.
My first question is about global variables. Are they, as I'm starting to
suspect, a sin against God or just best avoided? Having got my current
Daniel Nogradi wrote:
I'm relatively new to object oriented programming, so get confused
about its usage once in a while. Suppose there is a class Image that
has a number of methods, rotate, open, verify, read, close, etc. Then
to use this class my natural guess would be to have something like
Eric Brunel wrote:
On Mon, 30 Jan 2006 15:20:50 -0800, James Stroud [EMAIL PROTECTED] wrote:
Hello All,
I'm wondering if there is something that already exists that can take
marked up text in some format (hopefully reStructuredText or HTML)
and can convert it into something that can be
Bengt Richter wrote:
On Thu, 26 Jan 2006 17:47:51 +0100, Claudio Grondi [EMAIL PROTECTED] wrote:
Rocco Moretti wrote:
Terry Hancock wrote:
One thing that I also think would be good is to open up the
operator set for Python. Right now you can overload the
existing operators, but you can't
Danny wrote:
I think I should paste some of the programs code a little more of what I
want...
var = 0
while var = 5:
print a[t[var]]
var = var +1
a is a dectionary (very big) and t is a string of text. (if that's
important right now).
I'm just trying to make the value of
yqyq22 wrote:
Dear all,
another little question, I use idle 1.1.2, is there a way to use a
history for the command line?
thanks in advance
Another possibility beside going to any of the previous lines and
hitting [Return]:
[Alt]+p
Claudio
--
SPE - Stani's Python Editor wrote:
Release news from http://pythonide.stani.be
This is an important a bugfix release for all platforms. As new
features it can customize your fonts and colors (styles), supports
interactive terminals and has improved support for Ubuntu.
Thanks to Marco
Rocco Moretti wrote:
Terry Hancock wrote:
One thing that I also think would be good is to open up the
operator set for Python. Right now you can overload the
existing operators, but you can't easily define new ones.
And even if you do, you are very limited in what you can
use, and
anthonyberet wrote:
Hello again - rather a newbie here...
I want to work on a sudoku brute-forcer, just for fun.
I am considering different strategies, but first I need to decide on the
data-structure to use for the progress/solution grid.
This being a square, I would have used a 9x9
Peter Maas wrote:
Tony Meyer schrieb:
- The logo does indeed resemble a cross. How about rotating it at 45 deg
to make it look like an x? Or give it a circular shape? Please note
that there are no religious motives in this remark :)
-1. Then what are the motives?
I don't like
Christoph Zwerschke wrote:
On the page http://wiki.python.org/moin/Python3%2e0Suggestions
I noticed an interesting suggestion:
These operators ≤ ≥ ≠ should be added to the language having the
following meaning:
= = !=
this should improve readibility (and make language more
Christoph Zwerschke wrote:
Juho Schultz wrote:
Fortran 90 allowed , = instead of .GT., .GE. of Fortran 77. But F90
uses ! as comment symbol and therefore need /= instead of != for
inequality. I guess just because they wanted. However, it is one more
needless detail to remember. Same with
Christoph Zwerschke wrote:
Claudio Grondi wrote:
There is no symbol coming to my mind, but I would be glad if it would
express, that 'a' becomes a reference to a Python object being
currently referred by the identifier 'b' (maybe some kind of - ?).
With unicode, you have a lot
Magnus Lycka wrote:
Claudio Grondi wrote:
You seem here to try to give a definition of the term 'value' for
Python. If I understand it right, the definition of the term can't be
generally given for many reasons. It depends at least on type and in
advanced usage it can be arbitrary
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
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
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
Fredrik Lundh wrote:
Dave Hansen wrote:
Fuzzyman wrote:
I'm not familiar with the C basic datatypes - I assume it has an array
or list like object.
Would it contain a sequence of poitners to the members ? In which case
they would only be equal if the pointers are the same.
In this case :
Steven D'Aprano wrote:
Claudio Grondi wrote:
Exactly this is what Python does under the hood when writing
a = some string
b = some string
where a and b are actually, in terms of C, pointer to Python object
data structures which provide strings as arrays where it is possible
to say a[0
Steven D'Aprano wrote:
On Wed, 18 Jan 2006 15:29:24 +0100, Claudio Grondi wrote:
The problem here is, that I mean, that in Python it makes no sense to
talk about a value of an object, because it leads to weird things when
trying to give a definition what a value of an object is.
Python
Steve Holden wrote:
Claudio Grondi wrote:
Steven D'Aprano wrote:
Claudio Grondi wrote:
Exactly this is what Python does under the hood when writing
a = some string
b = some string
where a and b are actually, in terms of C, pointer to Python object
data structures which provide
Fuzzyman wrote:
(If I understand correctly...)
The reason he is looking for it, is in order to assert that Python
'comparison' is broken.
a bit this way, but why formulate it with such a negative touch?
Lets understand it more as looking for a way to get a deep understanding
of the concept
Steve Holden wrote:
Claudio Grondi wrote:
Steve Holden wrote:
Claudio Grondi wrote:
Steven D'Aprano wrote:
Claudio Grondi wrote:
Exactly this is what Python does under the hood when writing
a = some string
b = some string
where a and b are actually, in terms of C, pointer
Steve Holden wrote:
Claudio Grondi wrote:
Steven D'Aprano wrote:
[...]
The higher level of abstraction/indirection in Python results in making
the concepts of 'value', 'having a value' or 'comparing values'
useless,
where it helps in C to express the difference between address
Dennis Lee Bieber wrote:
On Thu, 19 Jan 2006 17:25:38 +0100, Claudio Grondi
[EMAIL PROTECTED] declaimed the following in comp.lang.python:
Any hints towards enlightenment what this from the geometry known term
'ellipsis' mean in Python? Googling shows, that I am not the first who
Donn Cave wrote:
In article [EMAIL PROTECTED],
Claudio Grondi [EMAIL PROTECTED] wrote:
You seem here to try to give a definition of the term 'value' for
Python. If I understand it right, the definition of the term can't be
generally given for many reasons. It depends at least on type
In the process of learning about some deeper details of Python I am
curious if it is possible to write a 'prefix' code assigning to a and b
something special, so, that Python gets trapped in an endless loop in a
line with:
if a==b: print 'OK'
I mean, it would be of much help to me on my way
Steve Holden wrote:
Claudio Grondi wrote:
In the process of learning about some deeper details of Python I am
curious if it is possible to write a 'prefix' code assigning to a and
b something special, so, that Python gets trapped in an endless loop
in a line with:
if a==b: print 'OK
Fuzzyman wrote:
Claudio Grondi wrote:
[snip..]
Thanks for the quick reply.
I see, that I have overseen, that as Fredrik also stated, one can
directly manipulate __eq__() as the easiest way to achieve what I
requested.
To explain why I am not happy with it, I will try here to give some more
Steve Holden wrote:
Claudio Grondi wrote:
[...]
Yes, I know about 'is',
but I mean, that it is not possible to use 'is' as replacement for
'==' operator to achieve in Python same behaviour as it is the case in
C and Javascript when comparing values with '=='.
'is' does the C
Fuzzyman wrote:
Claudio Grondi wrote:
[snip..]
Yes, I know about 'is',
but I mean, that it is not possible to use 'is' as replacement for '=='
operator to achieve in Python same behaviour as it is the case in C and
Javascript when comparing values with '=='.
'is' does the C, Javascript job
Fuzzyman wrote:
Oops... my misreading, sorry.
The reason that, in Python, short ints have the same identity is not
fickle - it's just True. Python creates a new reference (pointer) to
the same object.
You're saying you want one comparison operator that for :
a=[1]
... many other
Steve Holden wrote:
Claudio Grondi wrote:
Steve Holden wrote:
[...]
The problem here is, that I mean, that in Python it makes no sense to
talk about a value of an object, because it leads to weird things when
trying to give a definition what a value of an object is.
I don;t
[EMAIL PROTECTED] wrote:
Hello there,
i need a way to check to see if a certain value can be an integer. I
have looked at is int(), but what is comming out is a string that may
be an integer. i mean, it will be formatted as a string, but i need to
know if it is possible to be expressed as an
Christos Georgiou wrote:
On Thu, 12 Jan 2006 11:55:46 -0500, rumours say that Edward C. Jones
[EMAIL PROTECTED] might have written:
Do any of the Python GUIs have a super-high-level widget that displays a
directory tree? Most file managers or editors have this type of window.
If you
Fredrik Lundh wrote:
Claudio Grondi wrote:
Christos Georgiou wrote:
On Thu, 12 Jan 2006 11:55:46 -0500, rumours say that Edward C. Jones
[EMAIL PROTECTED] might have written:
Do any of the Python GUIs have a super-high-level widget that displays a
directory tree? Most file managers
aph wrote:
Hello. I'm sure this has been asked before, but I can't find an answer
anywhere.
I want to create a truly dynamic app which can get new functions
on-the-fly and run them without having to re-start the main app.
I've found the code module that looks kind of hopefull. For
aph wrote:
actually 'exec()' is the function I was looking for. Working code:
class myApp:
def kalle(self,str):
return str.upper()
def run_script(self,script):
exec(script)
app = myApp()
app.run_script(print self.kalle('hello'))
Thanks...
Sorry, I see,
Cuyler wrote:
Hello,
I would like to display a file in its binary form (1s and 0s), but I'm
having no luck... Any thoughts would be most appreciated.
Cheers!
Cuyler
You may consider to check out the latest by me started thread in this
newsgroup with the subject: Does Python allow
Gerard Brunick wrote:
My way is ugly. These has to be a better way.
Thanks,
Gerard
Ugly is not necessary not the slickest. To do better, there must be
something to compare to, right?
Claudio
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Claudio Grondi wrote:
Martin v. Löwis wrote:
You can get somewhat faster in Python than your code if you avoid
producing new long objects all the time, and do the task in chunks of 30
bits.
It would be nice if you could explain why you consider chunks of 30 bits
[EMAIL PROTECTED] wrote:
hi, does anyone know of any package that will download a full site for
offline viewing? It will change all url to match local urls and follow
a logical structure (the site's structure would be suffice).. Please
tell me if you have heard of such a package.. thanks alot
circusdei wrote:
I wrote this snippet with the intention of -- capturing a section of
the screen whenever it changes. It could be implemented to log any
sort of messaging system ( by saving consecutive images eg.
1.png...etc).
#code
import Image
import ImageGrab
Paul Rubin wrote:
Claudio Grondi [EMAIL PROTECTED] writes:
The question is if Python allows somehow access to the bytes of the
representation of a long integer or integer in computers memory?
No it doesn't, and that's a good thing, since the internal
representation is a little bit
Edgar A. Rodriguez wrote:
Hi everybody,
Im newbie to Python (I found it three weeks ago) , in fact Im newbie to
programming. I'm being reading and training with the language, but I
still wondering about what Classes are used to. Could you please give
me some examples??
Thanks.
I don't
Bengt Richter wrote:
On Sat, 07 Jan 2006 14:05:18 +0100, Claudio Grondi [EMAIL PROTECTED] wrote:
[...]
What I am also looking for is a conversion to base 256 (i.e where the
full byte is used and the string and the integer have the same actual
content if on appropriate endian machine), which
Mike Meyer wrote:
Claudio Grondi [EMAIL PROTECTED] writes:
Edgar A. Rodriguez wrote:
Hi everybody,
Im newbie to Python (I found it three weeks ago) , in fact Im newbie
to
programming. I'm being reading and training with the language, but I
still wondering about what Classes are used to. Could
Let's consider a test source code given at the very end of this posting.
The question is if Python allows somehow access to the bytes of the
representation of a long integer or integer in computers memory?
Or does Python hide such implementation details that deep, that there is
no way to get
[EMAIL PROTECTED] wrote:
I don't know of a way to directly access the internal structure of a
long, but you can speed up your example.
First, is the order of the commands
i=i1
lstBitsBitwiseAnd.append(i0x01)
what you intend? The first low order bit is discarded because you've
Martin v. Löwis wrote:
You can get somewhat faster in Python than your code if you avoid
producing new long objects all the time, and do the task in chunks of 30
bits.
It would be nice if you could explain why you consider chunks of 30 bits
to be superior e.g. to chunks of 32 bits?
write a C
Stuart D. Gathman wrote:
On Wed, 04 Jan 2006 10:54:17 -0800, KraftDiner wrote:
I was under the assumption that everything in python was a refrence...
so if I code this:
lst = [1,2,3]
for i in lst:
if i==2:
i = 4
print lst
I though the contents of lst would be modified.. (After
Dan Sommers wrote:
On Wed, 04 Jan 2006 22:38:06 -0500,
Stuart D. Gathman [EMAIL PROTECTED] wrote:
On Wed, 04 Jan 2006 10:54:17 -0800, KraftDiner wrote:
I was under the assumption that everything in python was a refrence...
so if I code this:
lst = [1,2,3]
for i in lst:
if i==2:
i = 4
print
Heiko Wundram wrote:
Claudio Grondi wrote:
Heiko Wundram wrote:
def perm(n):
return (tuple(((1,-1)[(ti)%2] for i in xrange(n)))
for t in xrange(2L**n))
Isn't this kind of coding beeing the result of suffering from the
post-pyContest illness syndrom?
I don't think what Paul
Kirk Strauser wrote:
Michele Simionato wrote:
when I think Zope is the less Pythonic application I have ever seen;)
You do? Why so? I'm not arguing, but that's different than my experience
with it and I'm curious about how you reached that conclusion.
I can remeber, that I had took a
KraftDiner wrote:
I was under the assumption that everything in python was a refrence...
so if I code this:
lst = [1,2,3]
for i in lst:
if i==2:
i = 4
print lst
I though the contents of lst would be modified.. (After reading that
'everything' is a refrence.)
so it seems that
[EMAIL PROTECTED] wrote:
Hi,
I must be going nutty, but I can't seem to find anywhere where I can
get just the binaries for, say, 2.3.5 for win32. I've googled high and
low and all I come up with is installer (MSI/EXE) binaries and the
source code. They have to be somewhere. I cant be
Thomas Heller wrote:
[EMAIL PROTECTED] writes:
Hi,
I must be going nutty, but I can't seem to find anywhere where I can
get just the binaries for, say, 2.3.5 for win32. I've googled high and
low and all I come up with is installer (MSI/EXE) binaries and the
source code. They have to be
Steven D'Aprano wrote:
On Wed, 04 Jan 2006 10:54:17 -0800, KraftDiner wrote:
I was under the assumption that everything in python was a refrence...
so if I code this:
lst = [1,2,3]
for i in lst:
if i==2:
i = 4
print lst
I though the contents of lst would be modified.. (After
[EMAIL PROTECTED] wrote:
Steven D'Aprano wrote:
With a little bit of work, this could be expanded to add redundancy for
not just indentation and numeric literals, but also string literals,
keywords, operators, and anything else.
When I copy and assign to variable 'post' the reply posted
Ilias Lazaridis wrote:
comp.lang.python / comp.lang.ruby
-
I would like to ask for feedback on the Process Definition and
Presentation.
Essentially this is exactly what I've myself specialized to do.
But I cannot apply the process to my own system.
I ask here, as I have
Heiko Wundram wrote:
Paul Rubin wrote:
def perm(n):
return [tuple([(1,-1)[(ti)%2] for i in xrange(n)])
for t in xrange(2L**n)]
or replace that with:
def perm(n):
return (tuple(((1,-1)[(ti)%2] for i in xrange(n)))
for t in xrange(2L**n))
to get a
Alvin A. Delagon wrote:
emacs has been my long time companion for php, perl, and python. My boss
recommended to me Wing2.0, I find it hard to adjust though. What can you
say about this IDE? He say's if I think it could improve my productivity
he's willing to buy it for me. Suggestions for
In todays posting
Any wing2.0 users here?
I found in the sentence
What can you say about this IDE? He say's 'if I think it could
improve my productivity he's willing to buy it for me.
the indirect question:
Can a better Python IDE increase programmers productivity?
From my experience
Markus Franz wrote:
Hi!
I have:
x = {'a':3, 'b':2, 'c':4}
How can I sort x by value? (I tried using sorted() with x.items() - but I
didn't get a dictionary as response.)
My second question:
How can I reduce the dictionary to 2 items (so delete everything after the
first two items)
There are many ways of going crazy, but the most valuable of them is
this one which makes a genius out of an ordinary man.
Claudio
[EMAIL PROTECTED] wrote:
While preparing a Python411 podcast about classes and OOP, my mind
wondered far afield. I found myself constructing an extended metaphor
Jarek Zgoda wrote:
Alvin A. Delagon napisał(a):
emacs has been my long time companion for php, perl, and python. My boss
recommended to me Wing2.0, I find it hard to adjust though. What can you
say about this IDE? He say's if I think it could improve my productivity
he's willing to buy it for
[EMAIL PROTECTED] wrote:
I have (inadvertently) wiped out the functionality of my personal
python snippets by eliminating leading space. I have also just visited
http://www.python.org/tim_one/000419.html and saw a piece of code with
the indentation gone. Python code is fragile in this regard.
Claudio Grondi wrote:
Please send me comments, suggestions and ideas.
Now, after the contest is over I analysed the outcome of it and have
come to the conclusion, that there were two major factors which
contributed to squeezing of code:
(1). usage of available variants for coding
Steven D'Aprano wrote:
On Sun, 01 Jan 2006 03:34:33 +0100, Claudio Grondi wrote:
Please send me comments, suggestions and ideas.
Now, after the contest is over I analysed the outcome of it and have
come to the conclusion, that there were two major factors which
contributed to squeezing
Steven D'Aprano wrote:
On Sun, 01 Jan 2006 15:49:58 +0100, Claudio Grondi wrote:
What I have thought about as a simpler/better solution is a method
allowing to avoid processing the content of the string or long integer
object by looping over its content.
How can you avoid looping
Claudio Grondi wrote:
Steven D'Aprano wrote:
On Sun, 01 Jan 2006 15:49:58 +0100, Claudio Grondi wrote:
What I have thought about as a simpler/better solution is a method
allowing to avoid processing the content of the string or long
integer object by looping over its content.
How
Michael Spencer wrote:
Claudio Grondi wrote:
...I analysed the outcome of it and have
come to the conclusion, that there were two major factors which
contributed to squeezing of code:
(1). usage of available variants for coding of the same thing
(2). sqeezing the size of used
Please send me comments, suggestions and ideas.
Now, after the contest is over I analysed the outcome of it and have
come to the conclusion, that there were two major factors which
contributed to squeezing of code:
(1). usage of available variants for coding of the same thing
(2).
[EMAIL PROTECTED] wrote:
Thomas Heller wrote:
X=' _ _ _ | _| _ |_|_'
Y=0x23018F406A3530EC273F008
j=.join
seven_seg=lambda n:j(j(c)+\nfor c in zip(*[X[Ym+int(d)*97::8]for d in n
for m in(6,3,0)]))
Interesting bit:
Although there are more 3-char combinations when you read
André wrote:
For the few that might be interested, I will be posting the details of
a 117 character long solution to the challenge on my blog
http://aroberge.blogspot.com/.
Enjoy!
André
It doesn't work for me as described on that page.
The output is scrumbled. It seems, that the 12
Simon Hengel wrote:
Hello,
we are hosting a python coding contest an we even managed to provide a
price for the winner...
http://pycontest.net/
The contest is coincidentally held during the 22c3 and we will be
present there.
Simon Hengel wrote:
Hello,
we are hosting a python coding contest an we even managed to provide a
price for the winner...
http://pycontest.net/
The contest is coincidentally held during the 22c3 and we will be
present there.
[EMAIL PROTECTED] wrote:
I now have a version which passes the test suite in 32 bytes evil
grin
-T.
After I have posted the statement, that I have one with 39 bytes, I had
the 32 version five minutes later, but thougt that instead of posting it
I can maybe use it as entry on the contest
101 - 200 of 330 matches
Mail list logo