PyGUI 1.7 is now available:
http://www.cosc.canterbury.ac.nz/~greg/python_gui/
New features:
* GL.DisplayList class for managing OpenGL display
lists in a similar way to the GL.Texture class
introduced in 1.6.
* Facilites for displaying a chosen cursor when the
mouse is
=
Announcing PyTables 1.3
=
This is a new major release of PyTables. The most remarkable feature
added in this version is a complete support (well, almost, because
unicode arrays are not there yet) for NumPy objects. Improved support
for native
=
Announcing PyTables 1.3
=
This is a new major release of PyTables. The most remarkable feature
added in this version is a complete support (well, almost, because
unicode arrays are not there yet) for NumPy objects. Improved support
for native
I say good riddence. Python's success has always been on its merits as
an open source application platform. Corprate usage has always been
relatively insignificant, and I suspect that many companies are
overrepresenting the level of dependance they have on python in an
attempt to steer their
Steve Holden wrote:
As the only director of the Python Software Foundation to vote against a
recent Board motion to implement the change in licensing terms described in
http://pyfound.blogspot.com/2006/04/python-25-licensing-change.html
I would like to place on record my protest against
[EMAIL PROTECTED] wrote
i tried to search 2 patterns
pat1 = re.compile(blah)
pat2 = re.compile(blah2)
if i do
if re.findall(pat1,something) and re.findall(pat2,something):
do something
if does not work
but when i do a nest if,
if re.findall(pat1,something) :
Steve R. Hastings wrote:
On Fri, 31 Mar 2006 16:29:00 -0800, Paul Rubin wrote:
I think S and all(S) is the right way to express that, if that's
what's intended.
I still would like a standard function, because S and all(S) does not
work with iterators. I proposed one possible function,
Steve Holden wrote:
As the only director of the Python Software Foundation to vote against a
recent Board motion to implement the change in licensing terms described in
http://pyfound.blogspot.com/2006/04/python-25-licensing-change.html
I must saay that i am fully in favor of this
Ron Adam [EMAIL PROTECTED] writes:
true_count, count = countall(S), len(S)
In general it's preferable to not rely on len being available, since
these are arbitrary iterators.
--
http://mail.python.org/mailman/listinfo/python-list
Hi everybody,
I found bug in link to download Python 2.4.3 documentation,
http://docs.python.org/download.html. All links is to
http://docs.python.org/ftp/python/doc/2.4.3/* . It does not works. It
works only with http://python.org/ftp/python/doc/2.4.3/* .
Bones
--
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi everybody,
I found bug in link to download Python 2.4.3 documentation,
http://docs.python.org/download.html. All links is to
http://docs.python.org/ftp/python/doc/2.4.3/* . It does not works. It
works only with
On Sat, 01 Apr 2006 02:06:29 -0600, Ron Adam wrote:
true_count, count = countall(S), len(S)
Unfortunately, this does not solve the problem.
An iterator yields its values only once. If you have an iterator itr,
you cannot do all(itr) and then do len(itr). Whichever one you do first
will
Steve Holden wrote:
As the only director of the Python Software Foundation to vote against a
recent Board motion to implement the change in licensing terms described in
http://pyfound.blogspot.com/2006/04/python-25-licensing-change.html
I would like to place on record my protest against
Fuzzyman wrote:
Steve Holden wrote:
As the only director of the Python Software Foundation to vote against a
recent Board motion to implement the change in licensing terms described in
http://pyfound.blogspot.com/2006/04/python-25-licensing-change.html
I would like to place on
Good luck finding the best Python IDE. :-)
While you are at it, have a look at Scribes. It's great for Python
editing and it's even written in Python. If you appreciate KISS, I'm
positive you'd appreciate Scribes. And if you yearn for an editor that
doesn't get in your way, or that allows you to
Steve
I agree with you. If my vote means anything, I vote against it.
The Board realises that this change will be
contentious. There are many advantages
to making it, however, which we feel will
benefit the Python community at large
and the PSF membership in particular.
Users who wish to
WAIT-
Did I just get caught by an April Fools Joke?
I have a nasty feeling about this :))
C
--
http://mail.python.org/mailman/listinfo/python-list
Now, it works well... I really don't know why it before report 404 Not
Found... I was tested it 5x... I'm sorry for unwanted false bug report.
--
http://mail.python.org/mailman/listinfo/python-list
Fuzzyman [EMAIL PROTECTED] (F) wrote:
F Can I ask for clarification. The charge applies to any commercial use
F of a derivative work based on the Python source code ?
F Normal applications that use Python, including bunding the standard
F CPython as an executable, using tools like py2exe, won't
I would certainly look at *all details* of the announcement, including
the second line from the top which gives the date:-)
Ivan
Caleb Hattingh wrote:
WAIT-
Did I just get caught by an April Fools Joke?
I have a nasty feeling about this :))
C
--
John Salerno schreef:
pattern = '([a-z][A-Z]{3}[a-z][A-Z]{3}[a-z])+'
print re.search(pattern, mess).groups()
Anyway, this returns one matching string, but when I put this letter in
as the solution to the problem, I get a message saying yes, but there
are more, so assuming this means that
Ivan HermanI would certainly look at *all details* of the
announcement,
Aww, but I liked the idea of copying Perl 6 REs, and porting python to
the toy CPU :-)
(But making strings mutable sounds too much strange).
Bye and thank you,
bearophile
--
On Sat, 1 Apr 2006 13:06:52 +0800, Luc The Perverse wrote
(in article [EMAIL PROTECTED]):
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Programing Languiges Are Ment to be free. That is why i am starting The
iCoo De Tar/i thats french for Blow of state it is a flash/java
On Fri, 31 Mar 2006 18:37:11 -0800, obeeker wrote:
there is threee directories,one of these is used for the base
directory,decided by the user, default is d0
[snip code]
It doesn't work? Have you tried running it to see what it does? When you
do, please post a description of what it does,
On Fri, 31 Mar 2006 22:35:10 -0800, Steve R. Hastings wrote:
The list.sort() method accepts a key= parameter to let you specify a
function that will change the way it sorts. In Python 2.5, min() and
max() now accept a key= parameter that changes how the functions decide
min or max.
Should
Sorry about not being clear. I have been downloading quite a few
packages for examples, but have not found a good example of man page
building from optparse.
seismic-py
- setup.py
- seismic
- __init.py__
- bulk of the code *.py
- scripts
- programs that go in
Anyone have experience with string pattern matching?
I need a fast way to match variables to strings. Example:
string - variables
abcaaab - xyz
abca - xy
eeabcac - vxw
x matches abc
y matches a
z matches aab
w maches ac
v maches ee
--
Em Sáb, 2006-04-01 às 20:44 +1000, Steven D'Aprano escreveu:
Here's another way of doing it:
lst = [2, 4, 42]
any(map(lambda x: x==42, lst))
In fact, as we're talking about Python 2.5 anyway, it would be better
not to waste memory and use:
any(x == 42 for x in lst)
--
Felipe.
--
the what now? page in the tutorial
http://www.python.org/doc/tut/node14.html
lists a couple of relevant web sites for Python users, including:
http://www.python.org
http://starship.python.net
http://www.python.org/pypi
the starship link has been there since 1998 or so (Python
Ed Singleton wrote:
I'm not much of an expert in anything yet, but I had an idea, and then
managed to put the documents in a wiki, which was at least trying to
do something. Fredrik beat me to it and did a much better job, but
even so I feel quite proud that I did something and tried to move
John Salerno wrote:
Kent Johnson wrote:
John Salerno wrote:
Kent Johnson wrote:
You probably don't need to do that. Just run the file in python
directly. I don't know UE, but when you configure an external tool, tell
it to run python.exe and pass the current file as a command line
[EMAIL PROTECTED] wrote:
Aww, but I liked the idea of copying Perl 6 REs, and porting python to
the toy CPU :-)
I think if PSF is going to support porting of Python to toy CPUs then
the Digi-Comp should be the first target. This will breathe new life
into these toys which for years have been
Anyone know how to create a draggable divider between two Tkinter
windows?
--
http://mail.python.org/mailman/listinfo/python-list
thank you for your suggestion and apologize for my mistake.
if i run it and answer the raw_input with Enter i get
sth is wrong
press Return
i comment the try-except and run it and answer the raw_input with
Enter
and get message following:
Traceback (most recent call last):
File
please don't read the prevous post ,please read this one:
thank you for your suggestion and apologize for my mistake.
if i run it and answer the raw_input with Enter i get
sth is wrong
press Return
i comment the try-except and run it and answer the raw_input with
Enter
and get message
Hi all,
i'm doing a COM server that have to expose some graphics (panels and
configuration controls), that would be embedded in an application through
OLE. I was wondering if I can do this using wxPython. Another question is
if my COM server would inherits from one of the wxPython class. If it's
Jim Lewis wrote:
Anyone know how to create a draggable divider between two Tkinter
windows?
http://effbot.org/tkinterbook/panedwindow.htm
might be what you need.
/F
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
please don't read the prevous post ,please read this one:
thank you for your suggestion and apologize for my mistake.
if i run it and answer the raw_input with Enter i get
sth is wrong
press Return
i comment the try-except and run it and answer the raw_input with
i am very sorry .
the erroer was from my Portable Hard Disk
because its disk sign has changed from o to h ,from p to i
i'm very sorry
--
http://mail.python.org/mailman/listinfo/python-list
That did the trick - thanks.
--
http://mail.python.org/mailman/listinfo/python-list
i have again one simple problem:
the script is this:
def output(self):
global lista2
lista2 = open('/lista2', 'w')
iteminlista2 = self.checkListBox2.GetStrings()
lista2.writelines(iteminlista2)
def input1(self):
lista2leggi = open('/lista2', 'r')
Look at the date.
Worry about this if it is still around tomarrow
--
http://mail.python.org/mailman/listinfo/python-list
Firstly sort variable expressions by its length
xy = 'abca'
xyz = 'abcaaab'
vxw = 'eeabcac'
Expand all expressions by its values except itself
xy = 'abca'
'abca' z = 'abcaaab'
vxw = 'eeabcac'
Cut all left and right matches
xy = 'abca'
z = 'aab'
vxw = 'eeabcac'
Repeat until you
As part of a proprietary socket based protocol I have to convert a
string of length 10,
say, 1234567890
to send it as 5 characters such that their hex values are
0x21 0x43 0x65 0x87 0x09
(Hex value of each character is got by transposing two digits at a
time)
How can I do
On 2006-04-01, Steve Holden [EMAIL PROTECTED] wrote:
As the only director of the Python Software Foundation to vote against a
recent Board motion to implement the change in licensing terms described in
http://pyfound.blogspot.com/2006/04/python-25-licensing-change.html
Good one Steve.
I
On 2006-04-01, Piet van Oostrum [EMAIL PROTECTED] wrote:
Fuzzyman [EMAIL PROTECTED] (F) wrote:
F Can I ask for clarification. The charge applies to any commercial use
F of a derivative work based on the Python source code ?
F Normal applications that use Python, including bunding the standard
F
Em Sáb, 2006-04-01 às 06:17 -0800, Rohit escreveu:
As part of a proprietary socket based protocol I have to convert a
string of length 10,
say, 1234567890
to send it as 5 characters such that their hex values are
0x21 0x43 0x65 0x87 0x09
(Hex value of each character is
PyGUI 1.7 is now available:
http://www.cosc.canterbury.ac.nz/~greg/python_gui/
New features:
* GL.DisplayList class for managing OpenGL display
lists in a similar way to the GL.Texture class
introduced in 1.6.
* Facilites for displaying a chosen cursor when the
mouse is
In article [EMAIL PROTECTED],
Steve Holden [EMAIL PROTECTED] wrote:
As the only director of the Python Software Foundation to vote against a
recent Board motion to implement the change in licensing terms described in
http://pyfound.blogspot.com/2006/04/python-25-licensing-change.html
Fredrik Lundh wrote:
the what now? page in the tutorial
to replace it with something else, what should that be? what sites
do pythoneers and pythonistas visit these days?
post your suggestions in this thread or on this page:
Pilgrims tricks/ips
http://diveintopython.org/appendix/tips.html
Felipe Almeida Lessa wrote:
a = 1234567890
b = []
for i in range(len(a)/2):
... b.append(chr(int(a[i*2:i*2+2][::-1], 16)))
...
b = ''.join(b)
print b
!Ce�
print repr(b)
'!Ce\x87\t'
Alternatively:
s = 1234567890
''.join(chr(int(b+a,16)) for a,b in zip(s[::2],s[1::2]))
That isn't in the published 2.5 License.
http://docs.python.org/dev/ref/node110.html
Thanks for the scare..
~r
--
http://mail.python.org/mailman/listinfo/python-list
As simple and as obvious as I expected, thanks Dennis.
-Alex
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I do not see where you close the file: I beleve you need to close it to
flush information prior to reading again.
Philippe
luca72 wrote:
i have again one simple problem:
the script is this:
def output(self):
global lista2
lista2 = open('/lista2', 'w')
On Sat, 01 Apr 2006 00:38:08 -0800, Steve R. Hastings wrote:
my proposed truecount() returns a tuple, with the length and
the count of true values.
I never liked the name truecount(), and the more I think about it, the
less I like the function. It should either solve a very important need,
or
Dear tjg: That was extremely helpful. Thank you very kindly. The server
did not respond to the .starttls() method but authentication was
successful after, it seems, the .ehlo() was specified. I have tried the
script without the first s.ehlo() and without s.starttls() and it works
perfectly. My
I have an entry on my blog discussing the new Python logo, which is
apparently due to replace the current one within the month. I'd be
interested in what people think of it.
Surf:
http://diagrammes-modernes.blogspot.com
-
robin
noisetheatre.blogspot.com
--
kbperry wrote:
I have a Python book, but it didn't mention this at all. I also tried
looking through the online docs to no avail.
This is covered by the tutorial though, and if you're a Python rookie it
would be a good idea to step your way through most of it soon:
See
luca72 wrote:
i have again one simple problem:
the script is this:
def output(self):
global lista2
lista2 = open('/lista2', 'w')
iteminlista2 = self.checkListBox2.GetStrings()
lista2.writelines(iteminlista2)
def input1(self):
lista2leggi =
Em Sáb, 2006-04-01 às 08:35 -0800, Steve R. Hastings escreveu:
def tally(seq, d=None):
if d == None:
d = {}
for x in seq:
if x in d:
d[x] += 1
else:
d[x] = 1
return d
Two changes:
- Use is None.
- Use try ... except instead
robin wrote:
I have an entry on my blog discussing the new Python logo, which is
apparently due to replace the current one within the month. I'd be
interested in what people think of it.
Surf:
http://diagrammes-modernes.blogspot.com
Tell me tell me it's an april's joke, please? :)
--
Rohit wrote:
As part of a proprietary socket based protocol I have to convert a
string of length 10,
say, 1234567890
to send it as 5 characters such that their hex values are
0x21 0x43 0x65 0x87 0x09
(Hex value of each character is got by transposing two digits at a
I am using a script that's worked for me in the past on Windows, but
now that i've moved it to a Linux machine it is not. The trouble seems
to be when trying to insert escaped characters into a varchar field
(\n \r ,etc.).
Hi!
I'm surprised about the following code, maybe you can give me a hint whether
that's bug or feature? I'm just trying to convert local time to GMT and one
method gives a strange result:
##
#! /usr/bin/env python
import datetime, pytz
_tz_utc = pytz.timezone(UTC)
Fredrik Lundh wrote:
I'm not much of an expert in anything yet, but I had an idea, and then
managed to put the documents in a wiki, which was at least trying to
do something. Fredrik beat me to it and did a much better job, but
even so I feel quite proud that I did something and tried
Giovanni Bajo wrote:
robin wrote:
http://diagrammes-modernes.blogspot.com
Tell me tell me it's an april's joke, please? :)
Well, I thought that the Python mimetype icon from the Crystal SVG icon
set always looked pretty good - it employs a recognisable snake image,
although no batteries are
Gregor Horvath wrote:
But what you overlook is SQL's strength:
SQL can be translated into _very_ efficient query plans w/o changing
the SQL. SQL's query optimizers (more properly, de-pessimizers) give
Premature optimization is the root of all evil.
On the top level of an
Fuzzyman wrote:
cut
From the site:
Advanced Program for Research In Licensing, whose First Object-Oriented
License
string = Advanced Program for Research In Licensing, whose First
Object-Oriented License
for letter in string:
if ord(letter) in range(65,91):
print(letter),
--
Hmmm... after due consideration (and reading the announcmement
properly), I support this license change in full.
If I could read past the first paragraph do you think I would really
hang onto this newsgroup asking stupid questions?!
The personal harm caused readers of this announcement
I would like to put together a very simple inventory program. When I
ship an item, and edit the quantity; I would like the quantity _on_hand
to auto-decrement, and the quantity_to_reorder to auto-increment.
Also, when the data is displayed in a table format, I would like to be
able to edit the
Fredrik Lundh [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Bob Greschke wrote:
I have to extend the vertical line to y+8, instead of y+7 to get the line
segment to be drawn long enough. This is on Linux, Solaris, 2.x versions
of
Python, 1.1.5 version of PIL, and on Windows with
Is this an April fool's joke?
Please post a link to the original article. Not just a post to a blog.
--
http://mail.python.org/mailman/listinfo/python-list
Xah, is that you?
--
http://mail.python.org/mailman/listinfo/python-list
any recommendations? any opinions?
I want to learn to program in python and need a gui reference. I'll be
updating various mysql tables. I have most of the code ready to roll by
using a command line. I need put some lipstick on my project.
pyQT seems viable but there is not really a good
Hi
i am gettng slow response from thssite en wonder if problem with gil? or
django bug. is this coded in modpython and to many instances? i need
to select web teknology en maybe python en zope is too old to handle
high volume of download objs. what cas problem? thks for your help.
On 2006-04-01, walterbyrd [EMAIL PROTECTED] wrote:
Is this an April fool's joke?
Did you read the blog entry?
--
Grant Edwards grante Yow! I will invent TIDY
at BOWL...
visi.com
Jack Diederich wrote:
Xah, is that you?
Nope, can't be. Xah doesn't use caps like that, and Xah also is very big
Free Software not Open Source...
Xah also tends to communicate in a slightly more intelligent fashion.
(note: do not take this as a defense of Xah)
- Michael
--
mouse, n: a
I've got a bunch of strings in a list:
vector = []
vector.append (foo)
vector.append (bar)
vector.append (baz)
I want to send all of them out a socket in a single send() call, so
they end up in a single packet (assuming the MTU is large enough). I
can do:
mySocket.send (.join (vector))
but
Thank Fredrik
I try and then i will inform you
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Roy Smith wrote:
I've got a bunch of strings in a list:
vector = []
vector.append (foo)
vector.append (bar)
vector.append (baz)
I want to send all of them out a socket in a single send() call, so
they end up in a single packet (assuming the MTU is large enough). I
can do:
Kent Johnson wrote:
I'm not sure what you mean by a 'debug' type environment. If you mean,
you want to run the program in a debugger and step through it, then this
approach won't work. If you just mean that you want to see the output of
the program, it will work.
No, just an environment
On Sat, 01 Apr 2006 14:56:02 -0500, Roy Smith wrote:
I've got a bunch of strings in a list:
vector = []
vector.append (foo)
vector.append (bar)
vector.append (baz)
I want to send all of them out a socket in a single send() call, so
they end up in a single packet (assuming the MTU is
Storing XML in relational database with indexing feature is exactly
what I need. But 4suite is mentioned from time to time and seemingly
holding better support for python. I have no idea if 4 suite has
provide strong support for random access or relatively random access
for XML database and with
Hi All,
I hope this post is acceptable on this list.
I'm wondering if anyone here has experience using python on a web server?
Specifically, has anyone used python on value web's servers?
If anyone has any info, general or specific, please let me know.
All help is appreciated.
Sincerely,
Brandon
[EMAIL PROTECTED] (John J. Lee) writes:
Alejandro Dubrovsky [EMAIL PROTECTED] writes:
[...Alejandro complains about non-working HTTP proxy auth in urllib2...]
[...John notes urllib2 bug...]
A workaround is to supply a stupid HTTPPasswordMgr that always returns
the proxy credentials regardless
In [EMAIL PROTECTED], DurumDara
wrote:
I thinking about that I can use the pickle to serialize/load my datas
from the file.
But: I remember that in the year of 2004(?) I tried this thing. I store
my CD informations in pickled objects (in files).
And when I changed my python version from
John Salerno wrote:
Kent Johnson wrote:
One thing that is really useful about running in an editor window is
that (in TextPad, anyway) I can double-click on an error message and go
directly to the line with the error.
Interesting. The way I have it now, it shows errors the way I want to,
Douglas Douglas [EMAIL PROTECTED] writes:
Hi everybody.
I have a paper form that I scan into an image. My user fills some circles in
this paper form using black ink. Every form has ten rows with five circles
each
and the user fills only one circle for each row.
I was wondering if I
Anton81 [EMAIL PROTECTED] writes:
Hi Anton,
here is a little snippet using os.popen:
Unfortunately I'm having more problem getting the output from Gnuplot, which
I'd like to examine for error messages and settings of options.
If you must roll your own, look at standard module
Kent Johnson wrote:
The working directory must be wrong. Try calling Python directly with
full paths:
C:\Python24\pythonw C:\Python24\Lib\idlelib\idle.pyw -r C:\path\to\myprog.py
Perfect! Thank you so much!
I put this line in the command line field, and I left working
directory empty
Grant Edwards a écrit :
On 2006-04-01, Steve Holden [EMAIL PROTECTED] wrote:
As the only director of the Python Software Foundation to vote against a
recent Board motion to implement the change in licensing terms described in
Peter Hansen [EMAIL PROTECTED] wrote:
B. Don't bother trying, because even if the MTU is large enough there is
absolutely no guarantee that the packet will stay intact all the way
through the network anyway (even if you use sendall() instead of send()).
This is true, but I'm generating the
In article [EMAIL PROTECTED],
Anthony Greene [EMAIL PROTECTED] wrote:
On Sat, 01 Apr 2006 14:56:02 -0500, Roy Smith wrote:
I've got a bunch of strings in a list:
vector = []
vector.append (foo)
vector.append (bar)
vector.append (baz)
I want to send all of them out a socket
Roy Smith [EMAIL PROTECTED] writes:
This is true, but I'm generating the message being sent in very small
chunks (often as small as 4 bytes at a time), and typically need to flush a
packet out onto the network after a few dozen bytes. Maybe at most a few
hundred. I don't know of any
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Terry Reedy wrote:
Not sure how premature it is. I've been reading
c.l.p. on and off for nearly a year.
Yes, there have been claims that doc patches have to be in Latex or are
otherwise not welcome. But these mostly (all?) have
Douglas Douglas [EMAIL PROTECTED] writes:
Hi everybody.
I have a paper form that I scan into an image. My user fills some
circles in
this paper form using black ink. Every form has ten rows with five
circles each
and the user fills only one circle for each row.
I was wondering if I
John Salerno wrote:
Kent Johnson wrote:
The working directory must be wrong. Try calling Python directly with
full paths:
C:\Python24\pythonw C:\Python24\Lib\idlelib\idle.pyw -r C:\path\to\myprog.py
Perfect! Thank you so much!
I put this line in the command line field, and I left
On Sat, 01 Apr 2006 14:35:58 -0300, Felipe Almeida Lessa wrote:
Two changes:
- Use is None.
- Use try ... except instead of in
Yes.
Maybe you don't like my version, and the gains aren't that much, but
please use is None instead of == None.
Actually, I do like your version. And I try to
Terry Reedy wrote:
Yes, there have been claims that doc patches have to be in Latex or are
otherwise not welcome.
This is counter to my own experience and this page which says, There's
no need to worry about text markup; our documentation team will gladly
take care of that.
Kent Johnson wrote:
John Salerno wrote:
Kent Johnson wrote:
The working directory must be wrong. Try calling Python directly with
full paths:
C:\Python24\pythonw C:\Python24\Lib\idlelib\idle.pyw -r C:\path\to\myprog.py
Perfect! Thank you so much!
I put this line in the command line
1 - 100 of 129 matches
Mail list logo