listens
on port 82 (we're behind a strict firewall), so I don't know if my
following question has a reason to exist, but there we go:
Have you considered basing your module on xdrlib, which is more of a
cross-language standard?
--
TZOTZIOY, I speak England very best.
"Dear Pa
humourous, I believe you noticed :)
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
piler ("Unix" compiler) you
consider as such? Were there other Unix C compilers before K&R wrote
one? Or are you considering as "K&R Unix compilers" those after the
publication of the white book and before C89?
--
TZOTZIOY, I speak England very best.
"Dear P
I would bet that somewhere in the "Ingliy-spiking werld" both terms
sound exactly the same.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
On 28 Jun 2005 13:24:42 -0700, rumours say that "muldoon"
<[EMAIL PROTECTED]> might have written:
> Now, what forum would you recommend? Any help would be appreciated.
alt.usage.english?
alt.languages.english?
alt.english.usage?
uk.culture.language.english?
--
TZOTZIOY, I
stem menu, doesn't it? Talk
about blindness...
>Seems to work for cmd.exe on NT4
XP too.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
es to
*view* the directory contents using Explorer. Command-line dir had no
problem on a directory with >15000 files.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
er dbs?
>
>You could use ADO + adodbapi for both.
>http://adodbapi.sourceforge.net/
Or pywin32/ctypes and COM (btw, I prefer DAO to ADO, but that is a
personal choice).
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
se.
There aren't any non-posix-conformant --or, at least, any
non-self-described-as-posix-conformant :-)-- operating systems in wide
use today.
Hint: win32file.CreateHardLink
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
ty Towers :-)
Then surely it should have been "its" first attempt? Aren't piranhas
neutral?
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
algorithm. I think some
>character are strange for python, and makes it stop before the end of
>the .msg file.
FYI: the character that was strange for Windows (not Python) was
chr(26), or Ctrl-Z, or end-of-file, which is special for files opened as
text instead of binary.
--
TZOTZIOY, I speak
oject name is pretty offensive too, since it's related to the term
"Sun" and not the term "Java".
If one has heard of the differences between Sun and IBM about Java, and
knowing that Eclipse started as an IBM project, then the reasoning for
choosing the name "Eclipse"
ew that would love Forth only for that.
The perfect language for many kids I know would be Python with boolean
operators reversed. Oh, and 'print' should be 'do_NOT_print'.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
ble libraries and more advanced developement tools.
More advanced development tools, yes. More available libraries?
Perhaps.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
;s available in the www.winamp.com site. (Search for plugin
"winampcom")
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
no keyboard shortcut to scroll:
http://www.xvsxp.com/power_user/terminal/
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
aced
>directly with names's byte code contents at compile time.
>
>Defer could be shortened to def I suppose, but I think defer would be
>clearer. Anyway, it's only a wish list item for now.
This is similar:
http://groups-beta.google.com/group/comp.lang.python/msg/6fc88414
On Tue, 28 Jun 2005 15:46:01 +0300, rumours say that Christos "TZOTZIOY"
Georgiou <[EMAIL PROTECTED]> might have written:
>(kudos to Steve Holden for
>[EMAIL PROTECTED] where the term PIPO
>(Poetry In, Poetry Out) could be born)
oops! kudos to Michael Spencer (I never sa
the
top-left icon, or press Alt-Space), go to Properties, Layout tab, Window
Size, Width.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
t of the e-mail
system.
I suggest you send your "info" as an attached text file; no client will
mess with it. The email package is your friend for MIME messages.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
the PSF could sell Python-branded
shampoos named "poetry in lotion" etc.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
(even better, read :) the rest of Andrea's paragraph, it
would be obvious that you actually agree with Andrea.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
BTW you don't have a
newline before "Ubicación:"; is it intentional?)
Tabs are infamous confusers of email clients, unfortunately.
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
calhost', '[EMAIL PROTECTED]', ['[EMAIL PROTECTED]'])
and I had no problem. What happens for you (substitute other server and
email addresses, obviously :) ?
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
MAIL PROTECTED]'])
and I had no problem. What happens for you (substitute other server and
email addresses, obviously :) ?
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
--
http://mail.python.org/mailman/listinfo/python-list
On 23 Jun 2005 19:12:03 -0700, rumours say that "jean-marc"
<[EMAIL PROTECTED]> might have written:
>So I wish it and its author(s) a good day, week, month, year and more!
>Really!
That is, "So long and thanks for all the PIL."
--
TZOTZIOY, I speak England very b
o find out what it's called is to ask
>all your neighbours (namespaces) if it's their cat (object) ... and
>don't be surprised if you'll find that it's known by many names, or no
>name at all!"
Whom should we bug to add it?
--
TZOTZIOY, I speak England ver
Dict()
>exec data in {}, d
>print d.items()
For kids trying this at home, note that it only works if the descriptor
is a valid Python identifier.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
ive prompt:
>>> type(help)
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
0 MHz (battery powered).
Suggestion /a/ has the advantage of no repetion of the names like the
original line.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
lse:
> print "this is not a pipe"
>I prefer the second over the first.
I am not advocating for either side AFA python 2 is concerned (however I
would substitute "then" for "also"), however the second way does not
handle /elegantly/ multiple break points.
do chown root /tmp/ax.py
sudo chmod a=rx,u+s /tmp/ax.py
ls -l /tmp/ax.py /tmp/tmp
/tmp/ax.py
I get:
-r-sr-xr-x 1 root users 75 2005-06-14 16:15 /tmp/ax.py
-rw--- 1 root users 6 2005-06-14 16:15 /tmp/tmp
Traceback (most recent call last):
File "/tmp/ax.py", line 2, in ?
x = op
Subsection 4.2.1 is Regular
Expression Syntax; it'll help a lot if you read it.
Cheers.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
a hard drive in the clear anyway.
A little healthy insanity never hurt anyone in the security field :)
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
ld say that "hey, you changed the algorithm, and that means your
previous declaration of unbreakability wasn't." but honestly I was
overwhelmed by the audacity (and foolishness, if these are truly his
credit card data) of Frederic.
ObSF: DNA; The Restaurant At The End Of The Universe;
replied to
my last question, and in good spirit I say you earned a little respect
from me, at least for standing up to your words. Now I hope no-one
gives a try to your data (for your own sake :)
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving."
omputer
again!", and then came to the following conclusion (much similar to a
Python motto):
"If Python can do this, it {Python} should be forbidden..."
PS Unfortunately, I could not charge "security consulting" fees.
--
TZOTZIOY, I speak England very best.
"Be stric
`PEP 310 Updates Requested`_
>
>5. `Sharing Namespaces`_
>
>6. `PEP 340 Proposed`_
>
>[SJB]
Great job, Steve...
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
his case, *typically*
you would map port (router_ext, 6000) to (int1, 6000) and (router_ext,
6001) to (int2, 6000). The internal computers would both think that
some computer is doing a connect at their port 6000.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when r
Is there an echo in here?
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
expiry date, billing address
and your first dog's name)? Do you trust the 'unbreakability' of your
algorithm that much?
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
er PHP if there are
>> any?
>As you learn Python, you will find that your PHP code will improve,
>possibly becoming more and more concise until it disappears completely.
+1 QOTW
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (f
d just assume it is Latin-1. What is
>sys.stdin.encoding on your system?
The difference between theory and practice is that in theory there is no
difference.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really shou
ke (I
even suggested a correction, which was a mistake because I hadn't
understood the full joke[1] :)
[snip effbot's code]
[1] I thought that Fredrik just made up something that looked like
working, and he explained that his code *was* working.
--
TZOTZIOY, I speak England ve
a little time to think some new riddles to suggest
(extending stdlib coverage).
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
ound it:
http://groups.google.com.gr/groups?selm=87llgxuyf5.fsf%40pobox.com --not
exactly what I remembered, but close.)
I think throwing subclasses of OSError based on errno would make life
easier --always assuming that Python requires POSIX conformance on all
platforms. I will give it a try
b. Example:
import errno
try:
...
except OSError, exc:
if exc.errno == errno.ENOENT: # file inexistant
...
elif exc.errno == errno.EPERM: # no permissions
...
else:
raise
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when r
ball?
Or heeding the sucker call (like I just did?)
>>the google
>>suggestions that probably looked like "didn't you mean : Python License"
>You might find, were you to try it, that it makes no such suggestions.
Google isn't what it used to be when I was 6
On Tue, 26 Apr 2005 11:58:29 +0300, rumours say that Christos "TZOTZIOY"
Georgiou <[EMAIL PROTECTED]> might have written:
>http://www.mythfolklore.net/aesopica/oxford/480.htm
BTW, does anyone see the connection between:
> we should make every possible effort on our own
On Mon, 25 Apr 2005 13:00:51 -0400, rumours say that Peter Hansen
<[EMAIL PROTECTED]> might have written:
>Peter Hansen wrote:
>> Dennis Lee Bieber wrote:
>>> On Mon, 25 Apr 2005 17:24:36 +0300, Christos "TZOTZIOY" Georgiou:
>>>> I don't k
ReportLab and pdflib are not
helpful to you (packages suggested directly by Mike Meyer and indirectly
by me).
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with peop
about a peasant's cart getting stuck in the
mud, so the peasant starts calling out for help from goddess Athena.
Another peasant passing by tells him: "Syn Athena kai kheira kinei",
which means, more or less, "keep on calling Athena, but start also using
your hands."
I don
On Wed, 20 Apr 2005 16:24:19 +0100, rumours say that Simon Brunning
<[EMAIL PROTECTED]> might have written:
>On 4/20/05, Christos TZOTZIOY Georgiou <[EMAIL PROTECTED]> wrote:
>> If you need more help, I would gladly send you the output of `man vi'
>> from a non-GN
ou like python (if you really do :)
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
ven block un/commenting and un/indenting.
Otherwise, I believe your reply above is slightly adrift (you wondered
what one can do to comment a block of code when using vi, and I replied
to that; I don't quite understand what your exact point is.)
--
TZOTZIOY, I speak England very best.
"
nutes before aleksander asked his question, you might
want to either check your computer clock for accuracy or return the time
machine to Guido...
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind wh
)
See also the random.randrange function.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
ey
To control autoindent, you can type:
:se ai
or
:se noai
If you need more help, I would gladly send you the output of `man vi'
from a non-GNU Unix. I can also send you the output of `man vim' from a
GNU system.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and
like to relax at some more interesting way than
>to comment each of rows
What editor exactly are you using that can't un/indent and un/comment a
block of lines? Obviously, neither vi, nor emacs, nor idle.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant w
gle search), so take a look at this:
http://www.python.org/peps/pep-0004.html
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
es calls; is there a
"current" term per thread, or is there one per process? I couldn't find
an answer in the short search I did.
I am afraid you will have to make it into a 3-tier arch; that is, your
server has the data model and absolutely no curses knowledge, and the
clients run
click of the name "Breebart"[1] falling into place.
[1] "Breeb*aa*rt" you say. Ok then, double click.
>I doubt anybody here cares!
I WAS EXPECTING TO MEET THEE IN ALT.FAN.PRATCHETT.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when r
t cover your case, and we will try to help you more.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
ot;, "filename")
>
>if you do that, decompression won't work.
How obvious, now that you mention it... :)
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
whole Pink Floyd
collection on a 5.25 floppy (zip of zip of zip of...)
[0] -- btw, in your code, Fredrik:
"""file = open(keycode + ".out", "wb")""".replace("keycode", "filename")
[1] disk space -- the final frontier
--
TZOTZIOY, I
On 14 Apr 2005 02:27:26 -0700, rumours say that [EMAIL PROTECTED]
might have written:
>Supercomputer and encryption and compression @ rate of 96%
[snip]
In other words, the story of your life can be expressed as a single
binary zero. Get one.
--
TZOTZIOY, I speak England very best.
"B
rg3
Here follow "last lines" and the corresponding sys.argv[1:]:
LAST LINE: $*
SYS.ARGV : ["File", "with", "space.txt", "arg2", "arg3"]
LAST LINE: "$*"
SYS.ARGV : ["File with space.txt arg2 arg3"]
LAST LINE:
bout
>
>list[len(list)-1]
>
>but thought there would be a more gracefull way.
There is.
alist[-1]
Did you read the tutorial? This is referenced in "3. An Informal
Introduction to Python".
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when
utility built into Cygwin, thereby avoiding
>> writing any code at all.
>
>an easier way is to publish it unsorted, but claim it is sorted.
>someone is sure to correct it with the proper sorted list.
For parents, the other way is to forbid their children sorting the list.
--
TZOTZIOY,
On 28 Mar 2005 22:06:44 -0800, rumours say that
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> might have
written:
Read about locals() and globals() in the Python documentation. These
provide the information you request (ie what names are bound to what
objects).
--
TZOTZIOY, I sp
with globals for some reason of your
own, in the module you can:
import __main__
and access the main modules globals (eg 'x') as:
__main__.x
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that
t;@sticky('fixup') # evaluate binding only first time
>def cmpver(a , b):
> def fixup ... ?
One of the previous related threads is this (long URL):
http://groups-beta.google.com/group/comp.lang.python/messages/f7dea61a92f5e792,5ce65b041ee6e45a,dbf695317a6faa26,19284769722775d2,7599103bb1
On 24 Mar 2005 13:33:58 GMT, rumours say that Fred Pacquier
<[EMAIL PROTECTED]> might have written:
>Christos "TZOTZIOY" Georgiou <[EMAIL PROTECTED]> said :
>
>> At the age of nine at school, two guys from a French computer-making
>> company named as
to tuples:
(0, 1, 0) < (0, 1, 2)
(1, 876, 'b') < (1, 876, 'c')
(3, 2, 2) < (3, 4)
All of the above are True.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
On 24 Mar 2005 14:50:39 +0200, rumours say that Ville Vainio
<[EMAIL PROTECTED]> might have written:
>>>>>> "Christos" == TZOTZIOY writes:
>
>Christos> (first hw upgrade I ever did!), and one year and a half
>Christos> later, I managed
s of
computer magazines though, with lots of source code in them to keep a
kid interested then (the age of home computers)...
>Personally, at that age I knew everything about the solar system
>planets, distances from the Sun, masses, diameters, albedos, etc.
>Fortunately, now I have forgot n
or Java programmers - Irmen's Python wiki
Python & Java: Side by Side Comparison
Jython Home Page (which you might like a lot)
dirtSimple.org: Python Is Not Java (some useful pointers)
among others. You didn't specify which blog you found, so HTH.
--
TZOTZIOY, I speak England very b
On Mon, 21 Mar 2005 00:17:05 +0100, rumours say that Heiko Wundram
<[EMAIL PROTECTED]> might have written:
>Well, 430 MB/s is only for USB 2.0.
It's 480 Mb/s (megabit or mebibit, I am not sure... :), so it maxes at
about 60 MB/s (or MiB/s) for all devices on the same controller.
-
pear anywhere on the command line?
However, >/dev/null is a waste. Substitute one of the outfiles instead.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
-
= (1, 2, 3) * 4; print tpl
(1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3)
So parentheses just change precedence (comma has lower precedence than
star).
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that
st.append.
PS I wrote these more than 36 hours ago, and before having read the
so-far downloaded messages of the thread. I kept on reading and
obviously others thought the same too (default argument at
initialisation).
What the heck, Bengt at least could like the class method idea :)
--
TZOTZIOY
t;days.
Don't bother writing a Python version... list.sort and its arguments are fine
and send their greetings.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, a
ly fast in the two cases (for any
obscure reasons). Did you time it (ie get the time at the start and end of the
function)?
>does not take a long time (<< 1 second). The exception LayoutError is trivial
>class LayoutError(Exception):
> pass
--
TZOTZIOY, I speak England very best.
n that chapter giving us a chance to
improve the documentation.
Cheers!
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
7;w')
>
> for all in os.walk(os.getcwd()):
> path = all[0]
> for document in all[2]:
> zipaccview.write(path + os.sep + document)
>
> zip.close()
Can it be that you are creating a zip file that its to
ch is also a module) attributes, in your
other modules do a:
import __main__
and then access its attributes as __main__.attribute . It's not generally a
good idea in Python, though, so you might like to explain what you need to do so
that we suggest alternate approaches.
>or python has so
If it's at maximum amplitude (1), then any value
(except zero) can be expressed as (negative) dB by the following function:
def amp2dB(amplitude):
return 20*math.log(amplitude, 10)
If you're converting from the 0...32767 range of 16bit PCM files, first divide
the amplitude by 3276
don't insert any spaces at the start of your line; if the former, compare
indentation with the line above.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
t': printing=1
>if printing: print line
>if line[:3]=='end': printing=0
and perhaps it's better to use startswith than slicing.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 17 Mar 2005 08:11:11 GMT, rumours say that "Raymond Hettinger"
<[EMAIL PROTECTED]> might have written:
>[Christos TZOTZIOY Georgiou]
>> Anyway, a functional equivalent:
>>
>> .>> from itertools import starmap, izip
>> .>> import ope
e useful in this capacity than as immediate
>solutions
>to particular problems.
Well, I have to respect your opinion and so I drop the subject... but with my
dying breath, re:
>to serve as a teaching tool showing
>>how to combine the tools and how to integrate them with other Pyt
s* in a set, not of
*subsets*. BTW, only a frozenset can be included in a set.
To check for subsets, either use the issubset function, or the '<' operator (I
believe they both call the same code):
.>> set(['TRUE','YES']).issubset(set(dir(Tkconstants)))
True
c
c.
Anyway, a functional equivalent:
.>> from itertools import starmap, izip
.>> import operator
.>> x= [1,2,3,4]
.>> w=[3.0, 6.0, 9.0, 12.0]
.>> sum(starmap(operator.mul, izip(x,w)))
90.0
.>>
--
TZOTZIOY, I speak England very best.
"Be strict when send
on linux2
Type "help", "copyright", "credits" or "license" for more information.
.>> import sys, Tkinter
.>> sys.maxunicode
1114111
.>>
2.4 built by me, 2.3.3 by SuSE.
I see. So on SuSE 9.1 professional too, Python and Tcl/Tk are pre-built with
ucs
n,
I hope you also know that
.>> 'inexistent keyword' and 'YES' in dir(Tkconstants)
is also True...
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
er as pre-built on recent RedHat systems. Does
it also apply to FreeBSD? On Windoze, Mandrake and SuSE python has UCS-2
unicode and Tkinter is working just fine.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should
NST a_tuple/UNPACK_SEQUENCE/BUILD_TUPLE,
"a,b,c=d,e,f" reordering and dropping of the tuple building/unpacking (which is
a case already improved in C) etc.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
e('utf-16') # maybe utf-16be for network order
You should not care about internal encoding of unicode objects.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
--
http://mail.python.org/mailman/listinfo/python-list
EEK SMALL LETTER KAPPA}"
or with
.>> uc = unicodedata.lookup("GREEK SMALL LETTER KAPPA")
and you get the ordinal with:
.>> ord(uc)
ord works for strings and unicode.
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from
On Tue, 15 Mar 2005 10:23:02 +, rumours say that Simon Brunning
<[EMAIL PROTECTED]> might have written:
>3.2.5 is a bugfix release of the 2.3 branch
Damn, we're on Python 3 already? Where are all the PEPs I missed?-)
--
TZOTZIOY, I speak England very best.
"Be stri
1 - 100 of 187 matches
Mail list logo