On the first conference day of PyCon after lunch there is going to be a
discussion panel for Python-Dev (see
http://us.pycon.org/apps07/schedule/ for the schedule). It is going to
be moderated by Steve Holden and is slated to have myself (Brett
Cannon), Andrew Kuchling (AMK), Neal Norwitz, and
Hello everybody,
the next meeting of pyCologne, the Python User Group Köln (Cologne), takes
place on:
Date: 10.01.2007
Time: 18:30 h
Location: Pool 0.14, computing centre (RRZK-B) of the University Cologne,
Berrenrather Str. 136, 50937 Köln
Detailed information can be found on our
many_years_after wrote:
Hi, pythoners:
My wxPython program includes a panel whose parent is a frame. The
panel has a button. When I click the button , I want to let the frame
destroy. How to implement it? Could the panel invoke the frame's
method?
Thanks.
I think it could if what I
Paul Rubin wrote:
Yes I've had plenty of
pointer related bugs in C programs that don't happen in GC'd
languages, so GC in that sense saves my ass all the time.
My experience is different, I never suffered a lot for
leaking or dangling pointers in C++ programs; and on
the opposite I didn't
rweth wrote:
many_years_after wrote:
Hi, pythoners:
My wxPython program includes a panel whose parent is a frame. The
panel has a button. When I click the button , I want to let the frame
destroy. How to implement it? Could the panel invoke the frame's
method?
Thanks.
I think it
I installed fedora core 6 and it has python installed.
But the question is, where is the executable python file?
I can't find it so I come here for help.
I want to config pydev for eclipse and I need to know where the
ececutable python file is.
Thank you!
--
Frank Potter wrote:
... where is the executable python file? ...
does
whereis python
tell you what you want to know?
sebastian.
--
http://mail.python.org/mailman/listinfo/python-list
Frank Potter wrote:
I installed fedora core 6 and it has python installed.
But the question is, where is the executable python file?
Find out yourself with
$ which python
Peter
--
http://mail.python.org/mailman/listinfo/python-list
W. Watson kirjoitti:
Thomas Ploch wrote:
snip
https://sourceforge.net/projects/pywin32/
I think this is the place to go
Thomas
That gets me the python program (pywin), which I got from a URL in a
post above (python-win.msi). I guess these are the same or at least just
the
Thank you!
which python works for me.
I got it.
Peter Otten wrote:
Frank Potter wrote:
I installed fedora core 6 and it has python installed.
But the question is, where is the executable python file?
Find out yourself with
$ which python
Peter
--
many_years_after wrote:
Hi, pythoners:
My wxPython program includes a panel whose parent is a frame. The
panel has a button. When I click the button , I want to let the frame
destroy. How to implement it? Could the panel invoke the frame's
method?
Thanks.
Have a look at the
Dennis Lee Bieber [EMAIL PROTECTED] writes:
__ (two leading underscores) results in name-mangling. This /may/ be
used to specify private data, but is really more useful when one is
designing with multiple super classes:
Trouble with this is you can have two classes with the same name,
In [EMAIL PROTECTED], mirandacascade
wrote:
Would the following Python code perform AES256 encryption on plainText
from Crypto.Cipher import AES
x = AES.new(a, AES.MODE_CBC, iv)
x.encrypt(plainText)
assuming:
a = the key value
iv = an initialization vector
?
`a` must be of length 32
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Coming from a C++ / C# background, the lack of emphasis on private data
seems weird to me. I've often found wrapping private data useful to
prevent bugs and enforce error checking..
It appears to me (perhaps wrongly)
vinthan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi,
I am new to python. I have to write test cases in python. An
application is open in the desk top ( application writen in .Net) I
have to write code to get focuse the application and click on the link
which in the one side
On 07 Jan 2007 02:01:44 -0800, Paul Rubin
http://phr.cx@nospam.invalid wrote:
Dennis Lee Bieber [EMAIL PROTECTED] writes:
__ (two leading underscores) results in name-mangling. This /may/ be
used to specify private data, but is really more useful when one is
designing with multiple
Stef Mientki kirjoitti:
In this exercise, I don't attempt to write beautiful Python code,
but the first thing is to write a simple user-interface for non-Pythians.
I understand that standardization about naming conventions is important,
but the purpose here is to serve the user, who has to
Felipe Almeida Lessa [EMAIL PROTECTED] writes:
What is the chance of having to inherit from two classes from
different modules but with exactly the same name *and* the same
instance variable name?
Of course you're being very pessimistic or extremely unlucky.
If you want to write bug-free
[EMAIL PROTECTED] wrote:
Coming from a C++ / C# background, the lack of emphasis on private data
seems weird to me. I've often found wrapping private data useful to
prevent bugs and enforce error checking..
What is the use of private declarations, if the names themselves are not
verbose about
Hi,
I have been programming in the .net environment and ide for a few
years and I am looking to make the switch over to python. I have
absolutely no python experience whatsoever. I am looking for a python
guru who has instant messenger or gtalk or whatever who can meet me
online in the mornings,
Paul Rubin:
Python certainly makes you spend more of your attention worrying
about possible attribute name collisions between classes and their
superclasses. And Python's name mangling scheme is leaky and
bug-prone if you ever re-use class names.
Trouble with this is you can have two classes
[EMAIL PROTECTED]:
I am looking for a python guru who has instant messenger or gtalk or
whatever who can meet me
online in the mornings, give me some direction for the day and then
answer some questions here and there online throughout the day.
Maybe a Python gury isn't necessary, maybe a
[EMAIL PROTECTED] schrieb:
Hi,
I have been programming in the .net environment and ide for a few
years and I am looking to make the switch over to python. I have
absolutely no python experience whatsoever. I am looking for a python
guru who has instant messenger or gtalk or whatever who can
Thomas Ploch wrote:
[EMAIL PROTECTED] schrieb:
Hi,
I have been programming in the .net environment and ide for a few
years and I am looking to make the switch over to python. I have
absolutely no python experience whatsoever. I am looking for a python
guru who has instant messenger or gtalk
Hello,
My host doesn't have PIL installed, and from
what i can tell, they won't install it.
Is there any way i can copy the needed files
near my python script?
I'm using Image, ImageFont, ImageDraw and ImageFilter.
Thanks.
--
Best regards,
Ghirai.
--
On 06 Jan 2007 17:38:06 -0800, Paul Rubin http wrote:
BJörn Lindqvist [EMAIL PROTECTED] writes:
It is given that emphasizing private data (encapsulation) leads to
more internal complexity and more lines of code because you have to
write getters and setters and stuff.
You can have public
Jorgen Grahn schrieb:
On 06 Jan 2007 17:38:06 -0800, Paul Rubin http wrote:
BJörn Lindqvist [EMAIL PROTECTED] writes:
It is given that emphasizing private data (encapsulation) leads to
more internal complexity and more lines of code because you have to
write getters and setters and stuff.
On Fri, 05 Jan 2007 15:16:09 -, Grant Edwards [EMAIL PROTECTED] wrote:
On 2007-01-05, king kikapu [EMAIL PROTECTED] wrote:
Python code is normally deployed as straight source code.
But isn't this a problem of its own? I mean, many people do not feel
good if the know that their source
On the first conference day of PyCon after lunch there is going to be a
discussion panel for Python-Dev (see
http://us.pycon.org/apps07/schedule/ for the schedule). It is going to
be moderated by Steve Holden and is slated to have myself (Brett
Cannon), Andrew Kuchling (AMK), Neal Norwitz, and
Thomas Ploch [EMAIL PROTECTED] writes:
Me neither, although I have to say that the '__' prefix comes pretty
close to being 'private' already. It depends on the definition of
private. For me, private means 'not accessible from outside the
module/class'.
class A:
__x = 3
class
Marc 'BlackJack' Rintsch wrote:
`a` must be of length 32 for AES256. And the length of `plainText` must
be a multiple of 16 because it's a block cypher algorithm.
Thank you. I have some follow up questions and 1 tangential question.
Follow up question:
Would it be correct to infer that:
Hi!
I wanted to use python to test a simple character device (on linux) and
I'm running into strange behaviour of read..
I have a short buffer inside my device and the idea is that it blocks
read's when the buffer is empty. For reads that ask for more characters
that the buffer holds the device
Paul Rubin schrieb:
Thomas Ploch [EMAIL PROTECTED] writes:
Me neither, although I have to say that the '__' prefix comes pretty
close to being 'private' already. It depends on the definition of
private. For me, private means 'not accessible from outside the
module/class'.
class A:
Thanks Bruno.
I'll get the 2.5 python install, and I'm checking out the unit testing
module that you mentioned.
Scott Huey
Bruno Desthuilliers wrote:
[EMAIL PROTECTED] a écrit :
I've written a few classes that I have been testing in IDLE. However,
every time I make a change to the classes
Jussi Salmela wrote:
W. Watson kirjoitti:
Thomas Ploch wrote:
snip
https://sourceforge.net/projects/pywin32/
I think this is the place to go
Thomas
That gets me the python program (pywin), which I got from a URL in a
post above (python-win.msi). I guess these are the same or at
W. Watson schrieb:
As I understand it, there are two files I'm after: 1. python interpreter,
and 2. a python editor. It's #2 that I'm having trouble downloading. The
link is broken.
This is the python interpreter for windows:
http://www.python.org/ftp/python/2.5/python-2.5.msi
Here you
On 7 Jan 2007 01:33:32 -0800, Frank Millman [EMAIL PROTECTED] wrote:
The essential point is that you save a reference to the frame when you
create the panel. Then when the button is clicked you can use the
reference to call the frame's Close method.
Or you could look into Dabo. This is one of
[EMAIL PROTECTED] wrote:
Coming from a C++ / C# background, the lack of emphasis on private data
seems weird to me. I've often found wrapping private data useful to
prevent bugs and enforce error checking..
It appears to me (perhaps wrongly) that Python prefers to leave class
data public.
Thanks for the links guys!! Dive into Python is great and I am
subscribing to tutor as well.
Thomas Ploch wrote:
[EMAIL PROTECTED] schrieb:
Hi,
I have been programming in the .net environment and ide for a few
years and I am looking to make the switch over to python. I have
absolutely
on linux type:
whereis python
You should get a list of directories where all of
python lives.
jim-on-linux
http:\\www.inqvista.com
On Sunday 07 January 2007 04:05, Frank Potter
wrote:
I installed fedora core 6 and it has python
installed. But the question is, where is the
executable
Paul Rubin wrote:
class A:
__x = 3
class B(A):
__x = 4 # ok
class C(B):
__x = 5 # oops!
Consider that the above three class definitions might be in separate
files and you see how clumsy this gets.
What are you trying to show with the above? The
sturlamolden schrieb:
[EMAIL PROTECTED] wrote:
Coming from a C++ / C# background, the lack of emphasis on private data
seems weird to me. I've often found wrapping private data useful to
prevent bugs and enforce error checking..
It appears to me (perhaps wrongly) that Python prefers to leave
[EMAIL PROTECTED] wrote:
Hi,
Novice here. :)
I'm building a c# application and I want to call functions in SciPy
from that application.
What's the best way to call SciPy methods from a C# program?
You need to:
1. Embed a Python interpreter in your C# app. That is, importing from a
DLL
Martin Miller a écrit :
(snip)
Oh, contrair.
I guess you mean au contraire ?-)
(snip)
--
http://mail.python.org/mailman/listinfo/python-list
In [EMAIL PROTECTED], gz wrote:
So how do i stop python from trying to be smart and just read *at most*
1000 chars and let it go if he(it?*) reads less?
For low level file stuff use the functions in the `os` module, i.e.
`os.read()`.
p.s *is python a he or an it?
I'd say it.
Ciao,
Andrea Griffini a écrit :
Paul Rubin wrote:
Yes I've had plenty of
pointer related bugs in C programs that don't happen in GC'd
languages, so GC in that sense saves my ass all the time.
My experience is different, I never suffered a lot for
leaking or dangling pointers in C++
Paul Rubin a écrit :
Felipe Almeida Lessa [EMAIL PROTECTED] writes:
What is the chance of having to inherit from two classes from
different modules but with exactly the same name *and* the same
instance variable name?
Of course you're being very pessimistic or extremely unlucky.
If you
Stef Mientki ha escrito:
class LED (device):
pinlist ={
# pinname type init-value other-parameters
1: ('Cathode', _DIG_IN, [], _par2),
2: ('Anode', _DIG_OUT, [], _par33)
}
Status = {True:('On'), False:('Off')}
def
Mark Elston ha escrito:
If you have a Python installation you should be able to find the
Whats New section of the docs. List comprehensions are described
pretty well in the What's new in Python 2.0? section. This gives
some simple examples as well as the rationale behind them.
Where do you
[ [EMAIL PROTECTED] [EMAIL PROTECTED] ]
Marc 'BlackJack' Rintsch wrote:
`a` must be of length 32 for AES256. And the length of `plainText`
must be a multiple of 16 because it's a block cypher algorithm.
Thank you. I have some follow up questions and 1 tangential question.
Follow up
[ Thomas Ploch [EMAIL PROTECTED] ]
sturlamolden schrieb:
[EMAIL PROTECTED] wrote:
Coming from a C++ / C# background, the lack of emphasis on private
data seems weird to me. I've often found wrapping private data
useful to prevent bugs and enforce error checking..
It appears to me (perhaps
On 7 ene, 13:22, W. Watson [EMAIL PROTECTED] wrote:
https://sourceforge.net/projects/pywin32/
As I understand it, there are two files I'm after: 1. python interpreter,
and 2. a python editor. It's #2 that I'm having trouble downloading. The
link is broken.
The above link should work. Follow
Sebastian 'lunar' Wiesner schrieb:
Those people deserve to fail for being just extraordinary stupid...
Yes, but there are a lot of them around...
Thomas
P.S.: I don't mean they are around here. :-)
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, I'll work with the file on the file system, then parse it with
SAX.
Is there a Pythonic way to read the file and identify any illegal XML
characters so I can strip them out? this would keep my program more
flexible - if the vendor is going to allow one illegal character in
their document,
On 6 ene, 20:01, Lloyd Zusman [EMAIL PROTECTED] wrote:
It seems that the original writer of the app had set this interval to a
high value in a part of the code that I overlooked until you mentioned
this right now.
[...] once one of the big
number-crunching threads gets control, it starves
sturlamolden wrote:
[EMAIL PROTECTED] wrote:
Coming from a C++ / C# background, the lack of emphasis on private data
seems weird to me. I've often found wrapping private data useful to
prevent bugs and enforce error checking..
It appears to me (perhaps wrongly) that Python prefers to leave
urllib.quote chokes on unicode in 2.4.4.
print sys.version
2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)]
urllib.quote(u\xe9)
Traceback (most recent call last):
File stdin, line 1, in ?
File
On 5 ene, 13:33, Laszlo Nagy [EMAIL PROTECTED] wrote:
Be aware with this. It is different when you do
/usr/bin/python prog.py
and
./prog.py
In the first case, sys.argv[0] will be /usr/bin/python!
No, sys.argv[0] is always the running script, and sys.argv[1] the first
argument after the
On 6 ene, 15:29, Koichi [EMAIL PROTECTED] wrote:
Hi, I'm now making a plug-in for a CG software. I embed
Python in a plugin and it works. The problem is that it
conflicts with other plugins that also embeds Python because it
runs in the same thread. I don't know when Py_Initialize() and
Hi!
I'm wanting to use openbsd to run a webserver because of its high
security. The website is written in python. Before I was using linux
with apache 2 and mod_python and this worked well. My problem is that
mod_python 3.x does not work on apache 1 which is what comes with
openbsd (and has been
Gabriel Genellina wrote:
On 7 ene, 13:22, W. Watson [EMAIL PROTECTED] wrote:
https://sourceforge.net/projects/pywin32/
As I understand it, there are two files I'm after: 1. python interpreter,
and 2. a python editor. It's #2 that I'm having trouble downloading. The
link is broken.
The
encode seems to solve my problem:
urllib.quote(u'\xe9'.encode('utf-8'))
'%C3%A9'
Cheers,
nyenyec
nyenyec wrote:
urllib.quote chokes on unicode in 2.4.4.
print sys.version
2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)]
urllib.quote(u\xe9)
Traceback
Michael M. [EMAIL PROTECTED] wrote:
In Perl, it was:
## Example: Abc | def | ghi | jkl
## - Abc ghi jkl
## Take only the text betewwn the 2nd pipe (=cut the text in the 1st
pipe).
$na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g;
## -- remove [ and ] in text
$na =~ s/\[//g;
On 7 ene, 15:48, nyenyec [EMAIL PROTECTED] wrote:
urllib.quote chokes on unicode in 2.4.4.
urllib.quote(u\xe9)
KeyError: u'\xe9'
but it seems to work in Python 2.3.5
Is this a known bug?
See some recent posts about urllib.unquote and unicode
--
Gabriel Genellina
--
On 7 ene, 16:20, W. Watson [EMAIL PROTECTED] wrote:
We seem to be looping. I have the Python interpreter. I would like the
pythonwin editor. The download link doesn't work on SourceForge. Where can I
get it? If not there, where? If it can't be obtained, then I'll go to the
default editor
[EMAIL PROTECTED] schrieb:
Is there a Pythonic way to read the file and identify any illegal XML
characters so I can strip them out? this would keep my program more
flexible - if the vendor is going to allow one illegal character in
their document, there's no way of knowing if another one will
nyenyec [EMAIL PROTECTED] wrote:
but it seems to work in Python 2.3.5
Python 2.3.5 (#1, Aug 19 2006, 21:31:42)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type help, copyright, credits or license for more information.
import sys, urllib
print sys.version
2.3.5 (#1, Aug 19
Hello all,
Before I ask the question a couple of notes :
* This question is for implementing a script inside the Wing IDE. For
some reason using the subprocess module doesn't work so I need a
solution that doesn't use this module.
* The platform is Windows and I'm happy with a Windoze only
Bruno Desthuilliers wrote:
... and on
the opposite I didn't expect that fighting with object
leaking in complex python applications was that difficult
(I've heard of zope applications that just gave up and
resorted to the reboot every now and then solution).
Zope is a special case here,
Gabriel Where do you find the What's new for previous releases? I
Gabriel have to read them online.
Google for
what's new site:python.org
Skip
--
http://mail.python.org/mailman/listinfo/python-list
On 6 ene, 19:45, Hynek Hanke [EMAIL PROTECTED] wrote:
please, how do I create a pythonic traceback from a python process that
hangs and is not running in an interpreter that I executed manually
or it is but doesn't react on CTRL-C etc? I'm trying to debug a server
implemented in Python, so I
Florian Diesch schrieb:
Michael M. [EMAIL PROTECTED] wrote:
In Perl, it was:
## Example: Abc | def | ghi | jkl
## - Abc ghi jkl
## Take only the text betewwn the 2nd pipe (=cut the text in the 1st
pipe).
$na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g;
## -- remove [ and ] in
On 7 ene, 16:34, [EMAIL PROTECTED] wrote:
Gabriel Where do you find the What's new for previous releases? I
Gabriel have to read them online.
Google for
what's new site:python.org
That's what I do. But this post:
If you have a Python installation you should be able to find
Gabriel Where do you find the What's new for previous releases? I
Gabriel have to read them online.
Google for
what's new site:python.org
Sorry, I took I have to read them online to mean that you needed to read
them online because (perhaps) you don't have a source
W. Watson kirjoitti:
Gabriel Genellina wrote:
On 7 ene, 13:22, W. Watson [EMAIL PROTECTED] wrote:
https://sourceforge.net/projects/pywin32/
As I understand it, there are two files I'm after: 1. python
interpreter,
and 2. a python editor. It's #2 that I'm having trouble downloading. The
On 7 ene, 16:33, Fuzzyman [EMAIL PROTECTED] wrote:
Hello all,
Before I ask the question a couple of notes :
* This question is for implementing a script inside the Wing IDE. For
some reason using the subprocess module doesn't work so I need a
solution that doesn't use this module.
* The
Thomas Ploch a écrit :
sturlamolden schrieb:
(snip)
As mentioned in other replies, it is not rocket science to access a
class private data. In C++ you can cast to void*, in Java and C# you
can use reflection. C++ is said to be an unsafe language because
programmers can, using a few tricks, mess
Frank Potter a écrit :
I installed fedora core 6 and it has python installed.
But the question is, where is the executable python file?
I can't find it so I come here for help.
man which
--
http://mail.python.org/mailman/listinfo/python-list
Geoff schrieb:
I'm now looking at using fastcgi to run my python. This looks like it's
going to work fine, though I will be using a fcgi interface such as
http://jonpy.sourceforge.net/. There does not seem to be any official
fastcgi module for python.
Should I be worried about the stability
On 7 ene, 16:13, John Nagle [EMAIL PROTECTED] wrote:
Because Python doesn't have explicit declarations, scope of variables is
a touchy issue. If you write x = 1 within a function, that will
create a local x if x doesn't exist, or alter a global x if x was
previously created in the
Gabriel Genellina wrote:
On 7 ene, 16:33, Fuzzyman [EMAIL PROTECTED] wrote:
[snip..]
My current code works, but *doesn't* capture stderr :
from threading import Thread
pipe = os.popen(executable)
def DisplayOutput():
while True:
output = pipe.read(1)
if
Andrea Griffini a écrit :
Bruno Desthuilliers wrote:
... and on
the opposite I didn't expect that fighting with object
leaking in complex python applications was that difficult
(I've heard of zope applications that just gave up and
resorted to the reboot every now and then solution).
On 7 ene, 17:37, Fuzzyman [EMAIL PROTECTED] wrote:
Two threads and a queue sounds horrible.
But unfortunately it's the only way if you don't control how the child
process behaves.
(It's not s ugly afterwards... certainly would be worse if you had
to syncronize both reading threads and the
Hello,
I am looking for a good audio/video conferencing library. Ideally it
should work with wxPython (or have some means of making it work there).
So far my main difficulty in my attempt at searching for such a package
is that there is so much stuff out there on downloading music and videos.
Curious if anyone has a python cheatsheet* published? I'm looking for
something that summarizes all commands/functions/attributes. Having
these printed on a 8 x 11 double-sided laminated paper is pretty
cool.
* cheatsheet probably isn't the right word, but you get the idea. :)
--
Bruno Desthuilliers wrote:
Martin Miller a écrit :
(snip)
Oh, contrair.
I guess you mean au contraire ?-)
(snip)
FWIW contrair is how it's spelled in the Oxford English dictionary (I
actually did look it up before posting because it seemed like there
ought be an 'e' on the end). The
gonzlobo kirjoitti:
Curious if anyone has a python cheatsheet* published? I'm looking for
something that summarizes all commands/functions/attributes. Having
these printed on a 8 x 11 double-sided laminated paper is pretty
cool.
* cheatsheet probably isn't the right word, but you get the
Sebastian 'lunar' Wiesner wrote:
Since you are apparently unable to read to docstrings of this module, I
will give you a short hint: yes, pycrypto supports AES with 256 bit
keys.
Thank you for the information.
The material I consulted was:
a) the PyCrypto manual:
gonzlobo wrote:
Curious if anyone has a python cheatsheet* published? I'm looking for
something that summarizes all commands/functions/attributes. Having
these printed on a 8 x 11 double-sided laminated paper is pretty
cool.
* cheatsheet probably isn't the right word, but you get the idea.
Michael M. schrieb:
How to find the longst element list of lists?
I think, there should be an easier way then this:
s1 = [q, e, d]
s2 = [a, b]
s3 = [a, b, c, d]
if len(s1) = len(s2) and len(s1) = len(s3):
sx1=s1 ## s1 ist längster
if len(s2) = len(s3):
On 1/7/07, Michael M. [EMAIL PROTECTED] wrote:
How to find the longst element list of lists?
s1 = [q, e, d]
s2 = [a, b]
s3 = [a, b, c, d]
s = [s1, s2, s3]
s.sort(key=len, reverse=True)
print s[0] is s3
print s[1] is s1
print s[2] is s2
sx1, sx2, sx3 = s
print 'sx1:', sx1
print 'sx2:', sx2
gonzlobo wrote:
Curious if anyone has a python cheatsheet* published? I'm looking for
something that summarizes all commands/functions/attributes. Having
these printed on a 8 x 11 double-sided laminated paper is pretty
cool.
* cheatsheet probably isn't the right word, but you get the idea.
John Nagle a écrit :
sturlamolden wrote:
[EMAIL PROTECTED] wrote:
Coming from a C++ / C# background, the lack of emphasis on private data
seems weird to me. I've often found wrapping private data useful to
prevent bugs and enforce error checking..
It appears to me (perhaps wrongly) that
Michael M. kirjoitti:
How to find the longst element list of lists?
I think, there should be an easier way then this:
s1 = [q, e, d]
s2 = [a, b]
s3 = [a, b, c, d]
snip
After, the list ist sorted:
sx1 = [a, b, c, d]
sx2 = [q, e, d]
sx3 = [a, b]
s1 = [q, e, d]
s2 =
How to find the longst element list of lists?
I think, there should be an easier way then this:
s1 = [q, e, d]
s2 = [a, b]
s3 = [a, b, c, d]
if len(s1) = len(s2) and len(s1) = len(s3):
sx1=s1 ## s1 ist längster
if len(s2) = len(s3):
sx2=s2
sx3=s3
else:
[EMAIL PROTECTED] writes:
Gabriel Where do you find the What's new for previous releases? I
Gabriel have to read them online.
Google for
what's new site:python.org
Sorry, I took I have to read them online to mean that you needed to read
them online because
Martin Miller a écrit :
Bruno Desthuilliers wrote:
Martin Miller a écrit :
(snip)
Oh, contrair.
I guess you mean au contraire ?-)
(snip)
FWIW contrair is how it's spelled in the Oxford English dictionary (I
actually did look it up before posting because it seemed like there
ought be
Mark Elston wrote:
* Gabriel Genellina wrote (on 1/5/2007 12:49 PM):
At Friday 5/1/2007 17:39, [EMAIL PROTECTED] wrote:
wordfreq = [wordlist.count(p) for p in wordlist]
I would expect
for p in wordlist:
wordfreq.append(wordlist.count(p))
I didn't know you could have an
Michael M. a écrit :
How to find the longst element list of lists?
For what definition of find ? You want the lenght of the longest
sublist, it's index, or a reference to it ?
I think, there should be an easier way then this:
s1 = [q, e, d]
s2 = [a, b]
s3 = [a, b, c, d]
Err...
I have a .plt file (which is a tab delimited ASCII file) and I want to
format it to get a .dbf with data in rows and columns, detele some
rows/columns and substitute decimal '.' with ','. All this using Python
(I'm using Pythonwin).
The .plt file looks like this:
* ISCST3 (02035): Tersa
*
1 - 100 of 150 matches
Mail list logo