[ANN] XPN 0.5.6

2006-03-12 Thread Nemesis
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

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2006-03-12 Thread dcrockett355
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. --

Re: Python Love :)

2006-03-12 Thread Paddy
Spread the love - tell your Java freinds :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: IOS-style command line interface module?

2006-03-12 Thread [EMAIL PROTECTED]
Are you by any chance referring to the cmd module? -- http://mail.python.org/mailman/listinfo/python-list

Re: New python.org site

2006-03-12 Thread Fredrik Lundh
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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

python crashes in Komodo

2006-03-12 Thread swisscheese
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

Re: Is the standard output thread-safe?

2006-03-12 Thread Skull
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

Pythons (undefined) Practical Atoms ? - Re: RuntimeError: dictionary changed ...

2006-03-12 Thread robert
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']

Re: Python IDE: great headache....

2006-03-12 Thread Dag Fjeld Edvardsen
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

[ANN] XPN 0.5.6

2006-03-12 Thread Nemesis
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Tim Parkin
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.

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Tim Parkin
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,

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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 --

Python and Dbxml

2006-03-12 Thread Raffaele
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 --

Cross Module Command Useage

2006-03-12 Thread Keith
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Tim Parkin
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Peter Decker
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

Re: Cross Module Command Useage

2006-03-12 Thread Peter Decker
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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.

Re: time series calculation in list comprehension?

2006-03-12 Thread Jim Segrave
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

Re: put multiple condition in if statement

2006-03-12 Thread Jim Segrave
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Paul Boddie
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Peter Decker
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,

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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

Re: Why property works only for objects?

2006-03-12 Thread Michal Kwiatkowski
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

Re: time series calculation in list comprehension?

2006-03-12 Thread Raymond Hettinger
[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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Tim Parkin
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

Re: Why property works only for objects?

2006-03-12 Thread Alex Martelli
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Peter Decker
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.

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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

Tkinter / Mac OS X Question (Aqua vs. X11)

2006-03-12 Thread [EMAIL PROTECTED]
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

Re: Why property works only for objects?

2006-03-12 Thread Michal Kwiatkowski
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Ron Adam
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

Re: Python Love :)

2006-03-12 Thread al pacino
Paddy wrote: Spread the love - tell your Java freinds :-) well said paddy ! :-)) -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Fredrik Lundh
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 --

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Steve Holden
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

Re: Cheese Shop - BSOL?

2006-03-12 Thread Steve Holden
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

How can I implementing COM interfaces from Python objects

2006-03-12 Thread Luiz Siqueira
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

Re: Class attributes newbie question (before I join a cargocult)

2006-03-12 Thread Christoph Haas
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

Re: Class attributes newbie question (before I join a cargocult)

2006-03-12 Thread kalahari
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

Re: Class attributes newbie question (before I join a cargocult)

2006-03-12 Thread pclinch
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Paul Boddie
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

Re: Class attributes newbie question (before I join a cargocult)

2006-03-12 Thread [EMAIL PROTECTED]
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Tim Parkin
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Tim Parkin
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

Re: Class attributes newbie question (before I join a cargocult)

2006-03-12 Thread EP
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Ron Adam
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,

Re: New python.org site

2006-03-12 Thread skip
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

Customizing character set conversions with an error handler

2006-03-12 Thread Jukka Aho
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread skip
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

Re: Tkinter - Drawing rotated text in a widget

2006-03-12 Thread Cameron Laird
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread jjcassidy
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

Re: lighter weight options to Python's logging package?

2006-03-12 Thread Kent Johnson
[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

Re: Help Create Good Data Model

2006-03-12 Thread mwt
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Ed Leafe
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

Re: Which GUI toolkit is THE best?

2006-03-12 Thread invitro81
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

Re: Tkinter / Mac OS X Question (Aqua vs. X11)

2006-03-12 Thread Diez B. Roggisch
[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

Re: Customizing character set conversions with an error handler

2006-03-12 Thread Serge Orlov
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

Re: python crashes in Komodo

2006-03-12 Thread Trent Mick
[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

Re: Help Create Good Data Model

2006-03-12 Thread Carl Banks
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Paul Boddie
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 --

Re: Help Create Good Data Model

2006-03-12 Thread mwt
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Tim Hochberg
[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. --

Re: python crashes in Komodo

2006-03-12 Thread swisscheese
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]

Can't simultaneously read/write from ossaudio dsp device

2006-03-12 Thread Tito
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

Re: Class attributes newbie question (before I join a cargocult)

2006-03-12 Thread Steven D'Aprano
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

key recognition

2006-03-12 Thread [EMAIL PROTECTED]
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

Re: Help Create Good Data Model

2006-03-12 Thread fumanchu
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 =

how exactly do binary files work in python?

2006-03-12 Thread John Salerno
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

Re: Python IDE: great headache....

2006-03-12 Thread Fabio Zadrozny
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

Re: how exactly do binary files work in python?

2006-03-12 Thread Erik Max Francis
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.

[JOB] Python/C++ Developer, Greenwich, CT | 80-160k | Relo/H1B OK

2006-03-12 Thread OSS
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

Re: RuntimeError: dictionary changed size during iteration ; Good atomic copy operations?

2006-03-12 Thread Raymond Hettinger
[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,

Very, Very Green Python User

2006-03-12 Thread hanumizzle
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

Re: Cheese Shop: some history for the new-comers

2006-03-12 Thread Ron Adam
[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

Re: Please, I Have A Question before I get started

2006-03-12 Thread Steven D'Aprano
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

Re: how exactly do binary files work in python?

2006-03-12 Thread John Salerno
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

Re: how exactly do binary files work in python?

2006-03-12 Thread Grant Edwards
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

Re: RuntimeError: dictionary changed size during iteration ; Good atomic copy operations?

2006-03-12 Thread Jean-Paul Calderone
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:

Re: Tkinter / Mac OS X Question (Aqua vs. X11)

2006-03-12 Thread [EMAIL PROTECTED]
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

Re: how exactly do binary files work in python?

2006-03-12 Thread Alex Martelli
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

Re: Please, I Have A Question before I get started

2006-03-12 Thread Alex Martelli
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

Re: Please, I Have A Question before I get started

2006-03-12 Thread Yu-Xi Lim
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.

Re: how exactly do binary files work in python?

2006-03-12 Thread Steven D'Aprano
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

Re: Please, I Have A Question before I get started

2006-03-12 Thread Steven D'Aprano
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

Re: RuntimeError: dictionary changed size during iteration ; Good atomic copy operations?

2006-03-12 Thread Alex Martelli
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

Re: Please, I Have A Question before I get started

2006-03-12 Thread Ravi Teja
http://www-inst.eecs.berkeley.edu/~maratb/readings/NoSilverBullet.html -- http://mail.python.org/mailman/listinfo/python-list

Re: New python.org site

2006-03-12 Thread [EMAIL PROTECTED]
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

Re: How to best update remote compressed, encrypted archives incrementally?

2006-03-12 Thread [EMAIL PROTECTED]
Would rsync into a remote encrypted filesystem work for you? -- http://mail.python.org/mailman/listinfo/python-list

Please, I Have A Question before I get started

2006-03-12 Thread Skipper
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

Re: how exactly do binary files work in python?

2006-03-12 Thread Grant Edwards
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

Re: Python IDE: great headache....

2006-03-12 Thread jussij
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.

Re: New python.org site

2006-03-12 Thread Armin Ronacher
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

Ossaudiodev in Windows

2006-03-12 Thread Ernest G Ngaruiya
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   2   >