XPN (X Python Newsreader) is a multi-platform newsreader with Unicode
support. It is written with Python+GTK. It has features like
scoring/actions, X-Face and Face decoding, muting of quoted text,
newsrc import/export, find article and search in the body, spoiler
char/rot13, random taglines and
Please come to my forum. Why others hate America . and invite others to join
in the conversation.
--
View this message in context:
http://www.nabble.com/Xah%27s-Edu-Corner%3A-Examples-of-Quality-Technical-Writing-t684449.html#a3362284
Sent from the Python - python-list forum at Nabble.com.
--
Spread the love - tell your Java freinds :-)
--
http://mail.python.org/mailman/listinfo/python-list
Are you by any chance referring to the cmd module?
--
http://mail.python.org/mailman/listinfo/python-list
Michael Tobis wrote:
Steve, what you say is true. Possibly people who are experienced in
making a six page site for their aunt's catering business may not
understand how much the site implementation is constrained by the huge
amount of existing content
the problem with the new python.org is
A.M. Kuchling wrote:
richard [EMAIL PROTECTED] wrote:
So I did what people always do in this situation, I asked Barry Warsaw to
name. it. And he did, Cheese Shop. I liked the name, so it was done. When
the new pydotorg machines went live last year, so too did the name
just change the link on the main site to read packages
and while you're at it, change python-dev to developers and
psf to foundation (or use a title on that link).
/F
--
http://mail.python.org/mailman/listinfo/python-list
Using the Komodo IDE under XP I often get python.exe has encountered a
problem and needs to close. Running python direct on the same app
gives a list index out of bounds error. Any ideas how to get Komodo to
give the proper error?
--
http://mail.python.org/mailman/listinfo/python-list
Fernando Rodríguez [EMAIL PROTECTED] writes:
Hi,
Is the standard output thread-safe? Can I use print from several
threads without having to use a mutex?
Thanks
Check this:
http://me.in-berlin.de/doc/python/faq/library.html#what-kinds-of-global-value-mutation-are-thread-safe
from my
Alex Martelli wrote:
robert [EMAIL PROTECTED] wrote:
...
What? When I add/del an item to a dict or list, this is not an atomic
thread-safe operation?
Exactly: there is no such guarantee in the Python language.
E.g.:
One thread does things like d['x']='y'
Another thread reads d['z']
I like PyScripter. It has some of, but not all, the
features you request.
http://mmm-experts.com/Products.aspx?ProductId=4
-Dag
--
http://mail.python.org/mailman/listinfo/python-list
XPN (X Python Newsreader) is a multi-platform newsreader with Unicode
support. It is written with Python+GTK. It has features like
scoring/actions, X-Face and Face decoding, muting of quoted text,
newsrc import/export, find article and search in the body, spoiler
char/rot13, random taglines and
Fredrik Lundh wrote:
just change the link on the main site to read packages
and while you're at it, change python-dev to developers and
psf to foundation (or use a title on that link).
/F
For most people 'developers' would mean people developing *with* python,
not developing python.
Tim Parkin wrote:
For most people 'developers' would mean people developing *with* python,
not developing python.
the page it leads has headings that say Python Developers Guide and
Links for Developers, and contains links about Development Process,
Developer FAQ, etc.
I'm convinced that
Fredrik Lundh wrote:
Tim Parkin wrote:
For most people 'developers' would mean people developing *with* python,
not developing python.
the page it leads has headings that say Python Developers Guide and
Links for Developers, and contains links about Development Process,
Developer FAQ,
Tim Parkin wrote:
Simple user questions (i.e. asking people what they think a 'developers'
link would lead to on a programming site) suggests that the majority of
people think differently to you.
so where's this mythical user group that you're using for the site testing ?
/F
--
Hi all,
is here anyone who can help me with python and Dbxml???
I've tried the example of python that I found in dbxml\docs\, but I
don't understand how to use XMLResolver.
I'm new in python and Xml, so if you can give me some example it's the best.
Thank you, Raffaele
--
Ok so Im new to the python programming language
and this is my first post to this mailing list so here it is
So lets say have two modules.. moduleA and moduleB
they are both imported into a main python program using the from module
import * command now moduleA has a dynamic command that
Fredrik Lundh wrote:
Tim Parkin wrote:
Simple user questions (i.e. asking people what they think a 'developers'
link would lead to on a programming site) suggests that the majority of
people think differently to you.
so where's this mythical user group that you're using for the site
On 3/12/06, Tim Parkin [EMAIL PROTECTED] wrote:
freinds and colleagues both online and off.. Some of whom are python
programmers, most not. Without a budget for 'comprehensive testing' then
the next best thing is asking people, at least you'll generally get rid
of the big bloopers.. it's
On 3/12/06, Keith [EMAIL PROTECTED] wrote:
So lets say have two modules.. moduleA and moduleB… they are both imported
into a main python program using the from module import * command…
There's your big mistake. This sort of import pollutes the namespace,
because now all the items in the module
Peter Decker wrote:
I consider myself a Python developer, and if I saw a 'Developers' link
on a Python site, it would seem obvious that it would be something
that might interest me.
even when it appeared below News, Documentation, Download,
Community, and Links buttons on a site dedicated to
Aahz wrote:
Given the number of people who post off-topic to python-dev, I don't
agree with you.
have you ever asked them where they found the mail address?
/F
--
http://mail.python.org/mailman/listinfo/python-list
Tim Parkin wrote:
the page it leads has headings that say Python Developers Guide and
Links for Developers, and contains links about Development Process,
Developer FAQ, etc.
I think telling people they are in the wrong place isn't quite as good
as helping them get to the right place.
In article [EMAIL PROTECTED],
falcon [EMAIL PROTECTED] wrote:
Is there a way I can do time series calculation, such as a moving
average in list comprehension syntax? I'm new to python but it looks
like list comprehension's 'head' can only work at a value at a time. I
also tried using the reduce
In article [EMAIL PROTECTED],
Dennis Lee Bieber [EMAIL PROTECTED] wrote:
On 10 Mar 2006 21:12:57 -0800, [EMAIL PROTECTED] declaimed the
following in comp.lang.python:
How can I put multiple condition in if statement?
Lesson one: Python is NOT C
I try this, but I can't get that to
Fredrik Lundh wrote:
Peter Decker wrote:
I consider myself a Python developer, and if I saw a 'Developers' link
on a Python site, it would seem obvious that it would be something
that might interest me.
Re-adding the missing disambiguating text:
It would not occur to me that this
On 3/12/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
Peter Decker wrote:
I consider myself a Python developer, and if I saw a 'Developers' link
on a Python site, it would seem obvious that it would be something
that might interest me.
even when it appeared below News, Documentation,
Paul Boddie wrote:
It's clear that people use the term Python developer similarly to
Oracle developer, where you don't get many people in the wild
actually developing Oracle products themselves, and so the term has an
established meaning of someone developing with that technology. Thus,
many
Alex Martelli napisał(a):
Can you also check my reasoning for getting attributes?
value = obj.attr
* if instance class has __getattribute__, call it
* else: lookup attr in all parent classes using class __mro__;
if it's a descriptor call its __get__ method, return its value
[Peter Otten]
from __future__ import division
from itertools import islice, tee, izip
. . .
def moving_average2(items, n):
first_items, last_items = tee(items)
accu = sum(islice(last_items, n-1))
for first, last in izip(first_items, last_items):
accu += last
Fredrik Lundh wrote:
Tim Parkin wrote:
I surely hope you're not optimizing the site only for people who don't in-
tend to leave the front page...
I sureley hope you can stop being facetious..
Tim Parkin
--
http://mail.python.org/mailman/listinfo/python-list
Michal Kwiatkowski [EMAIL PROTECTED] wrote:
...
No, the value found in the instance (your second 'else' here) takes
precedence if the descriptor found in the first 'else' is
non-overriding.
Oh, right. My mistake comes from the subtle difference between defining
descriptor as a class
Peter Decker wrote:
Can't say I've ever run into anything that hadn't already been
reported.
how did you check if it was already reported ?
/F
--
http://mail.python.org/mailman/listinfo/python-list
On 3/12/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
Peter Decker wrote:
Can't say I've ever run into anything that hadn't already been
reported.
how did you check if it was already reported ?
I asked about it on this list, or on the wxPython list, or whatever
was the appropriate list.
Peter Decker wrote:
I would have then asked where to report it.
on the earlier site, there was a link on the frontpage. on the current
site, you'll have to look under python-dev (or in a group of links de-
scribed as developer info on the download site).
Of course, you're straying so far
I am running Mac OS X. I have Tcl/Tk installed. I can run the Aqua
version (TkAqua) of wish by typing 'wish' at a terminal prompt. I can
run the X11 version (TkX11) of wish by typing 'wish8.4-X11' in an
x-term. If I run python and import Tkinter it always grabs the TkAqua
version. How can I
Alex Martelli napisał(a):
IMHO that's not very consistent.
How so? Given the lower-level semantics of descriptors (and the
distinction between overriding and non), are you suggesting that
property should not be a type but a factory function able to return
instances of either overriding or
Fredrik Lundh wrote:
Tim Parkin wrote:
Also 'Foundation' could be confused with 'beginners' or 'basic'.
while PSF is completely incomprehensible for someone who doesn't
already know what it is... why even keep it on the front page ?
Looks like a good place for a tool tip, PSF is
Paddy wrote:
Spread the love - tell your Java freinds :-)
well said paddy ! :-))
--
http://mail.python.org/mailman/listinfo/python-list
Ron Adam wrote:
I think the PSF is important enough to have a link on *every* page. It
doesn't need a lot of space, but it should be easy to get to from
anywhere on the web site.
a copyright blurb at the bottom of the page would be one obvious place to
put it.
/F
--
Tim Parkin wrote:
Fredrik Lundh wrote:
Tim Parkin wrote:
I surely hope you're not optimizing the site only for people who don't in-
tend to leave the front page...
I sureley hope you can stop being facetious..
And I surely hope we can all work together for the better representation
of
Bertrand Mansion wrote:
On 3/12/06, Andrew Gwozdziewycz [EMAIL PROTECTED] wrote:
Look at the 'tadpoles' (i don't really think it's tadpoles really...
but i'll bite for now),
notice that it is a + sign, which we also always associate with life,
and health (red cross comes to mind). Python
is a
I'm developing a COM client application, I need implement a COM interface from Python object to represent a element inside of a COM server and pass this object trough COM. I know that I need create a subclass from a specific class from win32com, but I don't find and don't know the name of this
Am Sonntag, 12. März 2006 19:36 schrieb EP:
This is likely a stupid question, but I am confused about what is going
on with class attributes as far as whether they stick. I ran across
this in a program I am writing, but have reproduced the behavoir below
- can someone point me in the right
def changeSex(self, newsex=):
self.mysex=newsex --- self.mysex
return self.mysex
def whoAmI(self):
return self.name, self. sex - self.sex
--
http://mail.python.org/mailman/listinfo/python-list
EP wrote:
Hi,
This is likely a stupid question, but I am confused about what is going
on with class attributes as far as whether they stick. I ran across
this in a program I am writing, but have reproduced the behavoir below
- can someone point me in the right direction (thanks):
class
Fredrik Lundh wrote:
[Developer links and developer/development resources]
this assumes that the developers link lead to a page that's entirely
useless for people developing with Python. that's not even true for
today's developer page...
True. As you say, there are links to bug reporting
Should't the changeSex method be:
def changeSex(self, newsex=):
self.sex = newsex
return self.sex
You're creating a new instance variable at the moment i.e 'self.mysex'
doesn't exist until you call changeSex.
--
http://mail.python.org/mailman/listinfo/python-list
Paul Boddie wrote:
Fredrik Lundh wrote:
(I'd solve this by adding disambiguation to the page itself, since
people can arrive on it in many different ways. good information
design is not only about what's on the front page...)
True, but then I'd hope that, for example, a Support link would lead
Steve Holden wrote:
Tim Parkin wrote:
Fredrik Lundh wrote:
I sureley hope you can stop being facetious..
And I surely hope we can all work together for the better representation
of Python to *all* of its communities :-)
regards
Steve
My apologies to all, I shouldn't rise to the
Thanks. Argh. I've failed to find the behavoir I need to understand.
More coffee and re-reading my code. Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
Ron Adam wrote:
I think the PSF is important enough to have a link on *every* page. It
doesn't need a lot of space, but it should be easy to get to from
anywhere on the web site.
a copyright blurb at the bottom of the page would be one obvious place to
put it.
Yes,
Steve ... where do we go from there to get the winning design up on a
Steve server behind www.python.org?
Hey, it's just a Simple Matter of Programming...
Skip
--
http://mail.python.org/mailman/listinfo/python-list
When converting Unicode strings to legacy character encodings, it is
possible to register a custom error handler that will catch and process
all code points that do not have a direct equivalent in the target
encoding (as described in PEP 293).
The thing to note here is that the error handler
amk Given the endless whiny complaints about the name, though, I think
amk we should just give up and go back to PyPI (pronounced 'Pippy').
There was already a pippy: Python for Palm...
Skip
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Eric Apperley [EMAIL PROTECTED] wrote:
How do I draw rotated text in a Tkinter widget using the draw.text method?
Alternatively, if I draw text as normal, how can I then subsequently
rotate it about its start point?
Not easily.
The (base) Tk-ers have written a
richard wrote:
[snip]
Should the Python Cheeseshop have anything in it, though? Having a
stocked cheese shop in relation to Python is just silly!
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Trent Do you have any profile information for where in the logging
Trent package the time is being spent?
Looking back at a recent run from a few days ago Formatter.formatTime()
seems to be a current problem.
You might try using the raw creation time
I get what you're saying fumanchu (or should I say Robert?).
I've been working and reworking this code. It's in a lot better shape
now (although I hestitate to keep flooding the conversation with each
iteration of the file). At the level this app should be operating, I
doubt I'll hit performance
On Mar 12, 2006, at 3:03 PM, [EMAIL PROTECTED] wrote:
amk Given the endless whiny complaints about the name, though,
I think
amk we should just give up and go back to PyPI (pronounced
'Pippy').
There was already a pippy: Python for Palm...
I second the suggestion
You guys are great :) thanx for the plenty answers and suggestions; I've
made my search through a little more and decided to start coding the
same app first with pygtk and second with wxpython.. and perhaps later
with pyqt.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] schrieb:
I am running Mac OS X. I have Tcl/Tk installed. I can run the Aqua
version (TkAqua) of wish by typing 'wish' at a terminal prompt. I can
run the X11 version (TkX11) of wish by typing 'wish8.4-X11' in an
x-term. If I run python and import Tkinter it always grabs
Jukka Aho wrote:
When converting Unicode strings to legacy character encodings, it is
possible to register a custom error handler that will catch and process
all code points that do not have a direct equivalent in the target
encoding (as described in PEP 293).
The thing to note here is that
[swisscheese wrote]
Using the Komodo IDE under XP I often get python.exe has encountered a
problem and needs to close. Running python direct on the same app
gives a list index out of bounds error. Any ideas how to get Komodo to
give the proper error?
Jim,
Have you logged a bug in our bug
mwt wrote:
One thing I'm still not sure about -- and I suspect that there is no
right answer -- is the fact that although I am writing the code in
Python, the idiom is purely Java. Having my data bucket in the form of,
essentially, a bean with setters and getters, and each method
surrounded
Tim Parkin wrote:
Still some work left cleaning up after the move to the new site but this
is going to be a priority very soon. Do you want me to include you on
any emails regarding this?
I'll have a look into the site developer tools for python.org and see
what I can contribute.
Paul
--
The Queue won't work for this app, because it removes the data from the
Queue when you query (the way I understand it).
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
richard wrote:
[snip]
Should the Python Cheeseshop have anything in it, though? Having a
stocked cheese shop in relation to Python is just silly!
Well, it shouldn't have any *cheese*, but that's probably OK for a
software repository.
--
Komodo ver 3.5.2, build 227162, platform win32-ix86.
XP SP 2
Python 2.4.2
I did not think to enter the bug as it is so basic - list index out of
bounds. When I run python at a dos prompt python handles the error
properly.
In Komodo, a simple case like this is no problem.
x = [1,2,3]
print x[4]
For an internet telephone application, I need to be able to read and
write data to and from /dev/dsp simultaneously. I wrote some code and
its not working. Anyone have any working code to do this? I am
assuming my card is full duplex, it is a built-in sound card on a new
dell 600m laptop, but I
On Sun, 12 Mar 2006 10:53:57 -0800, pclinch wrote:
See __slots__ and PyChecker for possible ways to avoid misspelled
instance variables.
__slots__ are not meant as a way to implement variable declarations.
__slots__ are meant as a memory optimization for cases where you have
large numbers
When capturing a keystroke using pyhook or other methods, any key
pressed after ctrl is not recognized. Is there a way around this?
--
http://mail.python.org/mailman/listinfo/python-list
If you used a Queue, it wouldn't be the container itself; rather, it
would be a gatekeeper between the container and consumer code. A
minimal example of user-side code would be:
class Request:
def __init__(self, op, data):
self.op = op
self.data = data
self.reply =
In C#, writing to a binary file wrote the actual data types into the
file (integers, etc.). Is this not how Python binary files work? I tried
to write integers into a file, but the write method only takes a string
argument anyway.
Is there a way to actually store integers in a file, so that
Hi Sullivan,Just to let you know, pydev does all that you asked for (and if there's something you're missing you might want to add a feature request to it:
http://sourceforge.net/tracker/?group_id=85796atid=577332)Some notes:To change the indentation in 'blocks', just select the lines you want
John Salerno wrote:
In C#, writing to a binary file wrote the actual data types into the
file (integers, etc.).
This was inherently nonportable.
Is this not how Python binary files work? I tried
to write integers into a file, but the write method only takes a string
argument anyway.
Python/C++ Developer, Greenwich, CT | 80-160k | Relo/H1B OK
My Greenwich, CT client is looking for programmers fluent in Python and C++
to build and improve systems in a variety of areas, including mathematical
programming, parallel computing, network servers, and user interfaces. They
are a
[robert]
In very rare cases a program crashes (hard to reproduce) :
* several threads work on an object tree with dict's etc. in it. Items
are added, deleted, iteration over .keys() ... ). The threads are good
in such terms, that this core data structure is changed only by atomic
operations,
I have used Perl for a long time, but I am something of an experimental
person and mean to try something new. Most of my 'work' with Vector
Linux entails the use of Perl (a bit of a misnomer as it is not now a
paid position -- I am not yet even out of K-12), and there a lot of
things I love about
[EMAIL PROTECTED] wrote:
richard wrote:
[snip]
Should the Python Cheeseshop have anything in it, though? Having a
stocked cheese shop in relation to Python is just silly!
Cheese (or the lack of cheese) is never silly, Thus the slogan... The
power of cheese.
Now if you want silliness, then
On Mon, 13 Mar 2006 02:19:39 +, Skipper wrote:
Hi All,
I am going to try and learn Python because I want to write at least
one program to help my disabled son with communitation.
I am not asking for anyone to do this for me I simply want to know if
I can do what I need to do with
Erik Max Francis wrote:
You can use the struct module for converting fundamental types to a
portable string representation for writing to binary files.
But if it's a string, why not just use a text file? What does a binary
file do that a text file doesn't, aside from not converting the end
On 2006-03-13, John Salerno [EMAIL PROTECTED] wrote:
You can use the struct module for converting fundamental types
to a portable string representation for writing to binary
files.
But if it's a string, why not just use a text file?
Because string != text.
In Python a string is just an
On 12 Mar 2006 17:56:37 -0800, Raymond Hettinger [EMAIL PROTECTED] wrote:
Thinking about future directions for Python threading, I wonder if
there is a way to expose the GIL (or simply impose a temporary
moratorium on thread switches) so that it becomes easy to introduce
atomicity when needed:
Install python using fink, and invoke that. Should work against X11 for
all GUI-Toolkits.
I prefer not to do this. Darwin is already a Unix, and Apple provides
a version of X11 that works well with it. Fink seems like an
unecessary layer that I would rather not mess with. Tcl/Tk has a very
Grant Edwards [EMAIL PROTECTED] wrote:
...
What does a binary file do that a text file doesn't, aside
from not converting the end of line characters?
Nothing. It's the end-of-line conversion that can break binary
data.
I believe that a control-Z (ord(26)) in a file that's being read
Steven D'Aprano [EMAIL PROTECTED] wrote:
...
Can python do this? I realize I am responsible for the menu sets,
pictures attaching sounds etc
There is no reason why Python can't do this.
If you are new to programming, I suggest you have a look at Pythoncard.
For the
Skipper wrote:
Hi All,
I am going to try and learn Python because I want to write at least
one program to help my disabled son with communitation.
snip
Can python do this? I realize I am responsible for the menu sets,
pictures attaching sounds etc
An interesting project.
On Sun, 12 Mar 2006 22:01:46 -0500, John Salerno wrote:
Erik Max Francis wrote:
You can use the struct module for converting fundamental types to a
portable string representation for writing to binary files.
But if it's a string, why not just use a text file? What does a binary
file do
On Sun, 12 Mar 2006 19:43:07 -0800, Alex Martelli wrote:
Steven D'Aprano [EMAIL PROTECTED] wrote:
...
Can python do this? I realize I am responsible for the menu sets,
pictures attaching sounds etc
There is no reason why Python can't do this.
If you are new to
Jean-Paul Calderone [EMAIL PROTECTED] wrote:
...
This is vaguely possible using sys.setcheckinterval() now, although one
has to pick a ridiculously large number and hope that the atomic operation
takes fewer than that many opcodes.
Spelling do not switch threads as
http://www-inst.eecs.berkeley.edu/~maratb/readings/NoSilverBullet.html
--
http://mail.python.org/mailman/listinfo/python-list
Bertrand Mansion said
Now, there are also new features we might want:
- documentation with user comments (like in PHP, Postgres, MySQL...)
- RSS feeds
- Efficient search engine (hyperestraier ?)
- Database backend and CMS
Add examples in the documentation to your list also!!
Yes the php
Would rsync into a remote encrypted filesystem work for you?
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
I am going to try and learn Python because I want to write at least
one program to help my disabled son with communitation.
I am not asking for anyone to do this for me I simply want to know if
I can do what I need to do with Python
Basically the program will blank the screen and
On 2006-03-13, Alex Martelli [EMAIL PROTECTED] wrote:
Grant Edwards [EMAIL PROTECTED] wrote:
...
What does a binary file do that a text file doesn't, aside
from not converting the end of line characters?
Nothing. It's the end-of-line conversion that can break binary
data.
I believe
I use WinXP sp2 for current development.
You might want to take a look at the Zeus for Windows IDE:
http://www.zeusedit.com
Here is how Zeus stacks up to your check list:
I hope that an IDE should be featured with:
1. Grammar Colored highlights.
It does syntax coloring for Python.
2.
I don't like the new python.org
But i have I (in my mind) nice idea.
Dedicate python.org to the language developers and python interna. And
create a nice small page on go-python.org dedicated to the users. It
should *only* feature a documentation with a comment box on the bottom
of each side, a
I got some code for playin g sounds using python. The code was meant for
alinux platform and so if I use it on Windows, it says there is no module
named ossaudiodev. I'd like to try this out on windows. Could someone help
me out? What's an alternative
Thanks,
Email me at [EMAIL PROTECTED]
--
1 - 100 of 115 matches
Mail list logo