cms 4 static pages?

2010-11-03 Thread Guido Stepken
hi folks! m looking 4 a framework, that allows to build static community software (similar to facebook) without having to start scripts, database connects, admin cookies, e.t.c. means - should be dynamic without really being dynamic, delivering just static pages. (yes, i know e.g. nginx does

Re: What people are using to access this mailing list

2010-11-03 Thread John Bond
On 3/11/2010 7:16 PM, Grant Edwards wrote: The OP could have figured all this out by himself by merely looking at the headers for a sampling of articles. Heck, with about 50 lines of Python, one could probably produced a fairly comprehensive statistical report on access methods and clients used

Possible bug in multiprocessing.Queue() on Ubuntu

2010-11-03 Thread Jerrad Genson
Hello, While working with the multiprocessing module in Python 2.6.6 on Ubuntu 10.10 64-bit, the following exception was raised: >>> import multiprocessing >>> input_queue = multiprocessing.Queue() Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/multiprocessin

Re: Best method for a menu in a command line program?

2010-11-03 Thread Ben Finney
Ben Finney writes: > Here's my attempt at making it more Pythonic and maintainable:: […] > def celsius_to_fahrenheit(in_value): > return ((in_value * (9.0/5) + 32.0)) Hmm. I went a bit overboard with the parens. This is what I'd prefer:: def celsius_to_fahrenheit(in_value):

Re: Best method for a menu in a command line program?

2010-11-03 Thread Carl Banks
On Nov 3, 6:19 pm, braden faulkner wrote: > I'm using a menu for my command line app using this method. > > choice = "foobar" > while choice != "q": >     if choice == "c": >         temp = input("Celsius temperature:") >         print "Fahrenheit:",celsius_to_fahrenheit(temp) >     elif choice ==

Re: pyOpenSSL 0.11 released

2010-11-03 Thread Jean-Paul Calderone
On Nov 1, 6:43 pm, exar...@twistedmatrix.com wrote: > Hello all, > > I'm happy to announce the release of pyOpenSSL 0.11.  The primary change > from the last release is that Python 3.2 is now supported.  Python 2.4 > through Python 2.7 are still supported as well.  This release also fixes > a handf

Re: Py3: Import relative path module

2010-11-03 Thread Gnarlodious
OK I've had a modicum of success! However I was forced to add the path to my application folder to sys.path, which I suppose is the closest I can get to what I want. The example given then works in the shell. Apache is another problem. I added the same path to the script then Apache finds the appl

Re: What people are using to access this mailing list

2010-11-03 Thread Grant Edwards
On 2010-11-04, QoS wrote: > Jed Smith wrote in message-id: > >> I just prefer the Gmail philosophy to mail, with tags that are *like* >> folders but not really. > > Just in case the client may not display the headers, fyi: > > If gmail is what you used to post this reply then your client is >

Re: Compare source code

2010-11-03 Thread Grant Edwards
On 2010-11-04, Seebs wrote: > On 2010-11-04, Lawrence D'Oliveiro wrote: >> In message , Seebs wrote: >>> It is extremely useful to me to have spaces converted to tabs >>> for every other file I edit. > >> I???m thinking of going the other way. After many years of treating tabs as >> four-column

Re: What people are using to access this mailing list

2010-11-03 Thread Tim Chase
On 11/03/10 20:41, QoS wrote: Jed Smith wrote I just prefer the Gmail philosophy to mail, with tags that are *like* folders but not really. If that is what you used to post this reply then your client is broken somewhat. I'm not sure I'd go casting aspersions on other peoples broken-client

Re: Compare source code

2010-11-03 Thread Grant Edwards
On 2010-11-04, Emile van Sebille wrote: > On 11/3/2010 4:09 PM Seebs said... > >> What's the token that marks the end of a block, corresponding to the >> colon used to introduce it? >> > > > My thoughts tend more towards 'can we get Guido to eliminate the colon > requirements' -- The indent level

Re: Best method for a menu in a command line program?

2010-11-03 Thread Tim Harig
On 2010-11-04, braden faulkner wrote: > I'm using a menu for my command line app using this method. > > choice = "foobar" > while choice != "q": > if choice == "c": > temp = input("Celsius temperature:") > print "Fahrenheit:",celsius_to_fahrenheit(temp) > elif choice == "f"

Re: Best method for a menu in a command line program?

2010-11-03 Thread MRAB
On 04/11/2010 01:19, braden faulkner wrote: I'm using a menu for my command line app using this method. choice = "foobar" while choice != "q": if choice == "c": temp = input("Celsius temperature:") print "Fahrenheit:",celsius_to_fahrenheit(temp) elif choice == "f":

Re: What people are using to access this mailing list

2010-11-03 Thread brf256
I use my blackberry to access the list. - Braden Faulkner Sent wirelessly from my BlackBerry device on the Bell network. Envoyé sans fil par mon terminal mobile BlackBerry sur le réseau de Bell. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best method for a menu in a command line program?

2010-11-03 Thread Ben Finney
braden faulkner writes: > I'm using a menu for my command line app using this method. > > choice = "foobar" The default choice for a “nothing here yet” value is the built-in ‘None’. Sometimes that's not the right choice; but if you have no particular reaason in a specific program to avoid ‘None

Re: Best method for a menu in a command line program?

2010-11-03 Thread rantingrick
On Nov 3, 8:19 pm, braden faulkner wrote: > Just wondering if there is another or more efficient way I should be doing it? I would move the input inside the respective methods or functions, short of that, what is more efficient than a conditional... nothing, and it reads very intuitively. Sure

Re: What people are using to access this mailing list

2010-11-03 Thread QoS
Jed Smith wrote in message-id: > > On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote: > > My normal inbox is getting unmanageable, and I think I need to find a new > > way > > of following this and other lists. > > I have to second (or third) the Gmail suggestion. I use Google Apps > agains

Re: What people are using to access this mailing list

2010-11-03 Thread QoS
Jed Smith wrote in message-id: > > On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote: > > My normal inbox is getting unmanageable, and I think I need to find a new > > way > > of following this and other lists. > > I have to second (or third) the Gmail suggestion. I use Google Apps > agains

Re: What people are using to access this mailing list

2010-11-03 Thread QoS
Jed Smith wrote in message-id: > > On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote: > > My normal inbox is getting unmanageable, and I think I need to find a new > > way > > of following this and other lists. > > I have to second (or third) the Gmail suggestion. I use Google Apps > agains

Re: What people are using to access this mailing list

2010-11-03 Thread QoS
Jed Smith wrote in message-id: > > On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote: > > My normal inbox is getting unmanageable, and I think I need to find a new > > way > > of following this and other lists. > > I have to second (or third) the Gmail suggestion. I use Google Apps > agains

Re: What people are using to access this mailing list

2010-11-03 Thread QoS
Jed Smith wrote in message-id: > > On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote: > > My normal inbox is getting unmanageable, and I think I need to find a new > > way > > of following this and other lists. > > I have to second (or third) the Gmail suggestion. I use Google Apps > agains

Re: Py3: Import relative path module

2010-11-03 Thread Gnarlodious
> Peter Otten wrote: > |-- alpha > |   |-- __init__.py > |   |-- beta > |   |   |-- __init__.py > |   |   `-- one.py > |   `-- two.py > `-- main.py > > 2 directories, 5 files > $ cat main.py > import alpha.beta.one > $ cat alpha/beta/one.py > from ..alpha import two > $ cat alpha/two.py > print "s

Re: What people are using to access this mailing list

2010-11-03 Thread QoS
Jed Smith wrote in message-id: > > On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote: > > My normal inbox is getting unmanageable, and I think I need to find a new > > way > > of following this and other lists. > > I have to second (or third) the Gmail suggestion. I use Google Apps > agains

Best method for a menu in a command line program?

2010-11-03 Thread braden faulkner
I'm using a menu for my command line app using this method. choice = "foobar" while choice != "q": if choice == "c": temp = input("Celsius temperature:") print "Fahrenheit:",celsius_to_fahrenheit(temp) elif choice == "f": temp = input("Fahrenheit temperature:")

Re: What people are using to access this mailing list

2010-11-03 Thread Aahz
In article , Grant Edwards wrote: >On 2010-11-03, Paul Rudin wrote: >> John Bond writes: >>> On 3/11/2010 11:17 AM, Steven D'Aprano wrote: On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: > Hope this isn't too O/T - I was just wondering how people read/send to > this maili

Re: Compare source code

2010-11-03 Thread Seebs
On 2010-11-04, Lawrence D'Oliveiro wrote: > In message , Seebs wrote: >> The answer is because whitespace changes (spaces to tabs, different >> tab stops, etcetera) are an extremely common failure mode, such that >> it's quite common for files to end up with unintentional whitespace >> changes. >

Re: Compare source code

2010-11-03 Thread Seebs
On 2010-11-04, Lawrence D'Oliveiro wrote: > In message , Seebs wrote: >> It is extremely useful to me to have spaces converted to tabs >> for every other file I edit. > I???m thinking of going the other way. After many years of treating tabs as > four-column steps, I might give up on them and us

Re: Compare source code

2010-11-03 Thread Emile van Sebille
On 11/3/2010 4:09 PM Seebs said... What's the token that marks the end of a block, corresponding to the colon used to introduce it? My thoughts tend more towards 'can we get Guido to eliminate the colon requirements' -- The indent level of the next line ought to suffice. Seriously. Emile

Re: Compare source code

2010-11-03 Thread Seebs
On 2010-11-03, Michael Torrie wrote: > I suggest, then that Pascal or Ruby would suit your needs better than > Python. In the absence of network effects, I'd just be using Ruby. I have reason to work with projects that have a lot of existing Python, though, so I use it too. > As for refactoring

Re: Subclassing unittest.TestCase?

2010-11-03 Thread Roy Smith
In article , Peter Otten <__pete...@web.de> wrote: > Remove the base class from the module with > > del CommonTestCase > > before you invoke unittest.main(). Wow, what a clever idea! I tried it, and it does exactly what I need. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Compare source code

2010-11-03 Thread Ben Finney
Seebs writes: > Furthermore, I don't WANT to skip closing braces. EXPLICIT IS BETTER > THAN IMPLICIT. I *WANT* to have the beginnings and ends marked. Python doesn't require that. You're going to be disappointed by most Python code if that's what you want. Which is not a failing of Python. --

Re: Compare source code

2010-11-03 Thread Ben Finney
Seebs writes: > On 2010-11-03, Steven D'Aprano wrote: > > Python does explicitly mark blocks. It does it by changes in > > indentation. An indent is an explicit start-block. An outdent is an > > explicit end- block. There is nothing implicit in a change in indent > > level. > > What's the token

Re: Compare source code

2010-11-03 Thread Michael Torrie
On 11/03/2010 02:39 PM, Seebs wrote: > Furthermore, I don't WANT to skip closing braces. EXPLICIT IS BETTER > THAN IMPLICIT. I *WANT* to have the beginnings and ends marked. I suggest, then that Pascal or Ruby would suit your needs better than Python. > I want end braces or "end" or something a

Re: Compare source code

2010-11-03 Thread Seebs
On 2010-11-03, Steven D'Aprano wrote: > On Wed, 03 Nov 2010 20:30:43 +, Seebs wrote: >> I'm not expecting it to change; > Then why talk about it? Because I find technical questions interesting in and of themselves. I will happily talk with people about the reasons for which the C preprocess

Re: Compare source code

2010-11-03 Thread Tim Chase
On 11/03/10 15:59, Seebs wrote: Dededenting does explicitly mark the end of a block. If you can't point to the token, it's implicit. :) Just because you asked for it to be pointed to: http://svn.python.org/view/python/trunk/Include/token.h?view=markup The DEDENT token is explicitly defined

Re: Compare source code

2010-11-03 Thread Rhodri James
On Wed, 03 Nov 2010 18:49:06 -, Tim Harig wrote: On 2010-11-03, Steven D'Aprano wrote: On Tue, 02 Nov 2010 19:26:56 +, Tim Harig wrote: I agree with Seebs, Python is the only language I know that promotes the use of spaces over tabs; Really? I'm not aware of *any* language that

Re: Compare source code

2010-11-03 Thread Steven D'Aprano
On Wed, 03 Nov 2010 20:30:43 +, Seebs wrote: > I'm not expecting it to change; Then why talk about it? Just to hear the sound of your voice? (Or see the font of your writing?) To waste our time? To feel more virtuous than those who don't see your point of view? If you don't expect a change

Re: Compare source code

2010-11-03 Thread Seebs
On 2010-11-03, Steven D'Aprano wrote: > Yes. How does that contradict what I said? Once you understand that you do have to break the rules occasionally, it is a good idea to design things that will be robust when the rules are broken. > Ah, argument by misunderstanding the Zen! I see. So expli

Re: What people are using to access this mailing list

2010-11-03 Thread Rhodri James
On Wed, 03 Nov 2010 11:58:07 -, John Bond wrote: On 3/11/2010 11:17 AM, Steven D'Aprano wrote: On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: Hope this isn't too O/T - I was just wondering how people read/send to this mailing list, eg. normal email client, gmane, some other softwar

Subject: Re: problem with opening a new python program in a new window (and keeping track of the process)

2010-11-03 Thread Zak Kinion
>> What I want to do:  launch seperate python programs from one main >> program (multi-threading will not achieve this because the mechanize >> library uses one shared global opener object which will not suit my >> needs)  I want the scripts launched to be in seperate windows that i >> can see the

Re: Compare source code

2010-11-03 Thread Steven D'Aprano
On Wed, 03 Nov 2010 20:35:20 +, Seebs wrote: >>> This level of dogmatism about what should always be the case is not >>> conducive to good software engineering practices. > >> I question that assertion. Good engineering practices is about setting >> best practices, and following them, not avo

Re: Compare source code

2010-11-03 Thread Tim Harig
On 2010-11-03, Steven D'Aprano wrote: > On Wed, 03 Nov 2010 18:49:06 +, Tim Harig wrote: >>> Actually I agree with you about tabs. I think tabs are far more logical >>> and sensible. But I'm stuck with broken tools that don't deal with >>> tabs, >> >> Where you not the one a few posts back te

Re: What people are using to access this mailing list

2010-11-03 Thread Ben Finney
John Bond writes: > On 3/11/2010 11:17 AM, Steven D'Aprano wrote: > > Usenet via my ISP, on comp.lang.python. > Using what client (or web client)? Gnus on Emacs. -- \“Perchance you who pronounce my sentence are in greater fear | `\ than I who receive it.” —Giordano Bruno, burned a

Re: Ways of accessing this mailing list?

2010-11-03 Thread Ben Finney
Grant Edwards writes: > On 2010-11-02, John Bond wrote: > > My normal inbox is getting unmanageable, and I think I need to find > > a new way of following this and other lists. > > Point an NNTP client at new.gmane.org. Ditto, but the correct hostname is ‘news.gmane.org’. > This "list" is also

Re: Python documentation too difficult for beginners

2010-11-03 Thread Martin Gregorie
On Thu, 04 Nov 2010 08:03:37 +1100, Cameron Simpson wrote: > On 02Nov2010 04:23, jk wrote: | This > (http://epydoc.sourceforge.net/stdlib/) is what I'm talking | about. > | > | Why aren't the official docs like this, and why has it taken me 2 days > | of searching? All this needs is a search engi

Re: Python documentation too difficult for beginners

2010-11-03 Thread Cameron Simpson
On 02Nov2010 04:23, jk wrote: | This (http://epydoc.sourceforge.net/stdlib/) is what I'm talking | about. | | Why aren't the official docs like this, and why has it taken me 2 days | of searching? All this needs is a search engine behind it and it'd be | perfect. It looks a lot like javadoc. But

Re: Compare source code

2010-11-03 Thread Seebs
On 2010-11-03, Grant Edwards wrote: > On 2010-11-03, Seebs wrote: >> Explicit is better than implicit. It is *better* to explicitly mark the >> ends of things than to have it be implicit in dropping indentation. That's >> not a burden, it's good engineering practice. > Dededenting does explici

Re: Compare source code

2010-11-03 Thread Seebs
On 2010-11-03, Steven D'Aprano wrote: > On Tue, 02 Nov 2010 19:26:56 +, Tim Harig wrote: >> I agree with Seebs, Python is the only language I know that promotes the >> use of spaces over tabs; > Really? Yes. > I'm not aware of *any* language that promotes tabs over spaces. Makefiles. > I

Re: Compare source code

2010-11-03 Thread Grant Edwards
On 2010-11-03, Seebs wrote: > Explicit is better than implicit. It is *better* to explicitly mark the > ends of things than to have it be implicit in dropping indentation. That's > not a burden, it's good engineering practice. Dededenting does explicitly mark the end of a block. -- Grant Edw

Re: Python documentation too difficult for beginners

2010-11-03 Thread Cameron Simpson
On 02Nov2010 03:42, jk wrote: | I've been coding in PHP and Java for years, and their documentation is | concise, well structured and easy to scan. While I agree about Java, at least the core Java docs, and javadoc output in general (_great_ cross referencing!) I have mixed feelings about the PHP

Re: Compare source code

2010-11-03 Thread Seebs
On 2010-11-03, Steven D'Aprano wrote: > On Wed, 03 Nov 2010 01:25:56 +, Seebs wrote: >> Whitespace damage is, indeed, wrong. It's a bad thing. It is an >> *extremely common* bad thing, > I question that. > You've claimed that you have to deal with broken indentation on a regular > basis.

Re: Compare source code

2010-11-03 Thread Seebs
On 2010-11-03, Steven D'Aprano wrote: > On Wed, 03 Nov 2010 02:40:11 +, Seebs wrote: >> Sure, but there's also no way for you to spot that something looks >> suspicious. In Python, if something is misindented, it does what you >> told it to do, and there's no way for you to tell, by looking a

Re: Compare source code

2010-11-03 Thread Steven D'Aprano
On Wed, 03 Nov 2010 01:25:56 +, Seebs wrote: > Whitespace damage is, indeed, wrong. It's a bad thing. It is an > *extremely common* bad thing, I question that. You've claimed that you have to deal with broken indentation on a regular basis. I've *never* had to deal with broken whitespace

Re: Compare source code

2010-11-03 Thread Steven D'Aprano
On Wed, 03 Nov 2010 18:49:06 +, Tim Harig wrote: >> Actually I agree with you about tabs. I think tabs are far more logical >> and sensible. But I'm stuck with broken tools that don't deal with >> tabs, > > Where you not the one a few posts back telling Seebs that he needed to > change his br

Re: Compare source code

2010-11-03 Thread Steven D'Aprano
On Wed, 03 Nov 2010 02:40:11 +, Seebs wrote: > Sure, but there's also no way for you to spot that something looks > suspicious. In Python, if something is misindented, it does what you > told it to do, and there's no way for you to tell, by looking at it, > that it isn't what was intended. I

Re: Compare source code

2010-11-03 Thread Emile van Sebille
On 11/3/2010 11:49 AM Tim Harig said... A large part of the reason that the issue keeps coming up is that the community never really deals with it when it does. I have enough customer support experience to know that a client is never really satisfied until you acknowledge their problem. Then

Re: What people are using to access this mailing list

2010-11-03 Thread Steven D'Aprano
On Wed, 03 Nov 2010 11:58:07 +, John Bond wrote: > On 3/11/2010 11:17 AM, Steven D'Aprano wrote: >> On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: >> >>> Hope this isn't too O/T - I was just wondering how people read/send to >>> this mailing list, eg. normal email client, gmane, some oth

Re: What people are using to access this mailing list

2010-11-03 Thread Grant Edwards
On 2010-11-03, Tim Harig wrote: > On 2010-11-03, Grant Edwards wrote: >> On 2010-11-03, Paul Rudin wrote: >>> John Bond writes: >>> On 3/11/2010 11:17 AM, Steven D'Aprano wrote: > On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: > >> Hope this isn't too O/T - I was just won

Re: What people are using to access this mailing list

2010-11-03 Thread Tim Harig
On 2010-11-03, Grant Edwards wrote: > On 2010-11-03, Paul Rudin wrote: >> John Bond writes: >> >>> On 3/11/2010 11:17 AM, Steven D'Aprano wrote: On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: > Hope this isn't too O/T - I was just wondering how people read/send to > this

Re: What people are using to access this mailing list

2010-11-03 Thread Martin Gregorie
On Wed, 03 Nov 2010 13:05:23 +, Grant Edwards wrote: > On 2010-11-03, Paul Rudin wrote: >> John Bond writes: >> >>> On 3/11/2010 11:17 AM, Steven D'Aprano wrote: On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: > Hope this isn't too O/T - I was just wondering how people rea

Re: Compare source code

2010-11-03 Thread Tim Harig
On 2010-11-03, Steven D'Aprano wrote: > On Tue, 02 Nov 2010 19:26:56 +, Tim Harig wrote: > >> I agree with Seebs, Python is the only language I know that promotes the >> use of spaces over tabs; > > Really? I'm not aware of *any* language that promotes tabs over spaces. I > thought the tabs

Re: What people are using to access this mailing list

2010-11-03 Thread Wolfgang Strobl
John Bond : >Hope this isn't too O/T - I was just wondering how people read/send to this >mailing list, eg. normal email client, gmane, some other software or online >service? I'm reading comp.lang.python on usenet, using Forté Agent as a newsreader, which connects via nntp to a locally managed

Re: Man pages and info pages

2010-11-03 Thread Jason Earl
On Wed, Nov 03 2010, rustom wrote: > On Nov 3, 3:11 pm, Daniel da Silva wrote: >> Guys, this really has nothing to do with python. > > ?? python docs have nothing to do with python?? python docs by > default on linux are read with info and many seem to find info > unpleasant to use. Actually, t

Re: Must be a bug in the re module [was: Why this result with the re module]

2010-11-03 Thread MRAB
On 03/11/2010 06:32, Yingjie Lan wrote: --- On Wed, 11/3/10, John Bond wrote: I just explained that (I think!)! The outer capturing group uses repetition, so it returns the last thing that was matched by the inner group, which was an empty string. According to yourself, the last match of the

Re: Must be a bug in the re module [was: Why this result with the re module]

2010-11-03 Thread MRAB
On 03/11/2010 04:10, John Bond wrote: On 3/11/2010 4:02 AM, MRAB wrote: On 03/11/2010 03:42, Yingjie Lan wrote: Matches an empty string, returns '' The result is therefore ['Mar', '', '', 'lam', '', ''] Thanks, now I see it through with clarity. Both you and JB are right about this case. How

Re: Serializing a user-defined class

2010-11-03 Thread Chris Rebert
On Wed, Nov 3, 2010 at 9:48 AM, T.J. Simmons wrote: > And I was about to ask what top-posting was, but then I realized I wasn't > sending this back to the list. So I'm going to assume what that was. Nope, actually it's about placing your reply below the quoted message you're replying to. (See Wi

imaplib Search for Messages by Time

2010-11-03 Thread bw
Hello everyone. I've been writing a program that interfaces with a user's GMail account using OAuth, and I'm trying to find a way to search for messages that were received only after a certain date AND time. It seems pretty easy to get messages after a certain date. Here's the relevant code that

Re: Serializing a user-defined class

2010-11-03 Thread T.J. Simmons
The way it actually is now, there will be key collision in the dictionaries because each Foo has the same keys. I'm about to dive into the json docs for how it's done on complex, because that seems to be pretty much what I'm looking for. And I was about to ask what top-posting was, but then I real

Re: Serializing a user-defined class

2010-11-03 Thread Chris Rebert
> On Wed, Nov 3, 2010 at 11:18 AM, Chris Rebert wrote: >> > On Wed, Nov 3, 2010 at 10:35 AM, Chris Rebert wrote: >> >> On Wed, Nov 3, 2010 at 8:30 AM, T.J. Simmons >> >> wrote: >> >> > Hi all, got a question regarding serializing classes that I've >> >> > defined. >> >> > I >> >> > have some cla

Tkinter/ttk compatibility with Citrix/WTS (Windows Terminal Services)?

2010-11-03 Thread python
Anyone have any experience using Python Tkinter/ttk applications with Citrix or WTS (Windows Terminal Services)? Any concerns, gotchas, or workarounds we should be aware of? I googled this topic [1], [2] and came up with nothing. No news is good news ... but just checking to make sure. Thanks, Malc

Re: What people are using to access this mailing list

2010-11-03 Thread Jed Smith
On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote: > My normal inbox is getting unmanageable, and I think I need to find a new way > of following this and other lists. I have to second (or third) the Gmail suggestion. I use Google Apps against my domain, and the Gmail interface is frightfully good

Re: Serializing a user-defined class

2010-11-03 Thread Chris Rebert
> On Wed, Nov 3, 2010 at 10:35 AM, Chris Rebert wrote: >> On Wed, Nov 3, 2010 at 8:30 AM, T.J. Simmons >> wrote: >> > Hi all, got a question regarding serializing classes that I've defined. >> > I >> > have some classes like >> > class Foo: >> >      def __init__(self, x, y): >> >           self.

Re: What people are using to access this mailing list

2010-11-03 Thread D'Arcy J.M. Cain
On Wed, 03 Nov 2010 15:53:41 + John Bond wrote: > > It is completely off topic. What you need to do is research your own > > email client to see how to filter mailing lists into their own > > folders. Failing that look for a forum dedicated to your email > > client. There is nothing specifi

Re: Serializing a user-defined class

2010-11-03 Thread John Bond
On 3/11/2010 3:30 PM, T.J. Simmons wrote: Hi all, got a question regarding serializing classes that I've defined. I have some classes like class Foo: def __init__(self, x, y): self.x = x, self.y = y then a class that can contain multiple Foos, such as: class Bar: def __ini

Re: Py3: decode subprocess output

2010-11-03 Thread Gnarlodious
OK, it turns out I had to tweak the parsing minimally for Python3: 1) Substrings such as st[5] no longer work (returns an ascii number), instead st[5:6] selects one character 2) Replacements need to specified as bytes: s.replace('R','*') change to s.replace(b'R',b'*') So I think this problem is

Re: What people are using to access this mailing list

2010-11-03 Thread John Bond
On 3/11/2010 3:38 PM, D'Arcy J.M. Cain wrote: On Wed, 3 Nov 2010 08:02:29 + (UTC) John Bond wrote: Hope this isn't too O/T - I was just wondering how people read/send to this It is completely off topic. What you need to do is research your own email client to see how to filter mailing lis

Re: What people are using to access this mailing list

2010-11-03 Thread D'Arcy J.M. Cain
On Wed, 3 Nov 2010 08:02:29 + (UTC) John Bond wrote: > Hope this isn't too O/T - I was just wondering how people read/send to this It is completely off topic. What you need to do is research your own email client to see how to filter mailing lists into their own folders. Failing that look

Re: Serializing a user-defined class

2010-11-03 Thread Chris Rebert
On Wed, Nov 3, 2010 at 8:30 AM, T.J. Simmons wrote: > Hi all, got a question regarding serializing classes that I've defined. I > have some classes like > class Foo: >      def __init__(self, x, y): >           self.x = x, self.y = y > then a class that can contain multiple Foos, such as: > class

Serializing a user-defined class

2010-11-03 Thread T.J. Simmons
Hi all, got a question regarding serializing classes that I've defined. I have some classes like class Foo: def __init__(self, x, y): self.x = x, self.y = y then a class that can contain multiple Foos, such as: class Bar: def __init__(self): self.foos = [Foo(a, b),

Re: functions, list, default parameters

2010-11-03 Thread Bruno Desthuilliers
Lawrence D'Oliveiro a écrit : In message <20101021235138.609fe...@geekmail.invalid>, Andreas Waldenburger wrote: While not very commonly needed, why should a shared default argument be forbidden? Because it’s safer to disallow it than to allow it. Then there are quite a few python features

Re: problem with opening a new python program in a new window (and keeping track of the process)

2010-11-03 Thread Tim Golden
On 02/11/2010 20:55, Zak Kinion wrote: What I want to do: launch seperate python programs from one main program (multi-threading will not achieve this because the mechanize library uses one shared global opener object which will not suit my needs) I want the scripts launched to be in seperate w

Re: Subclassing unittest.TestCase?

2010-11-03 Thread Peter Otten
Roy Smith wrote: > I'm using Python 2.6, with unittest2 imported as unittest. > > I'm writing a test suite for a web application. There is a subclass of > TestCase for each basic page type. One thing that's in common between > all the pages is that every page must have a valid copyright notice.

Re: Learning book recommendation?

2010-11-03 Thread Felipe Bastos Nunes
The pyschools dot com have so many exercises that 'forces' you to learn. It shows some results, explains the algorithm and checks the results of your code. 2010/11/2, brf...@gmail.com : > Hey there, > > I would reccomend a non-programmers tutorial to python by Josh coglatti and > its a free wiki b

Re: Py3: Import relative path module

2010-11-03 Thread Peter Otten
Peter Otten wrote: > Peter Otten wrote: > >> Gnarlodious wrote: >> >>> On Nov 3, 2:51 am, Peter Otten wrote: >>> Slightly generalized: have the importing module print its __name__. There has to be at least one dot in the name for from .. import whatever to succeed.

Re: What people are using to access this mailing list

2010-11-03 Thread QoS
Dan M wrote in message-id: > > On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: > > > Hope this isn't too O/T - I was just wondering how people read/send to > > this mailing list, eg. normal email client, gmane, some other software > > or online service? > > > > My normal inbox is gett

Re: Py3: Import relative path module

2010-11-03 Thread Peter Otten
Peter Otten wrote: > Gnarlodious wrote: > >> On Nov 3, 2:51 am, Peter Otten wrote: >> >>> Slightly generalized: have the importing module print its __name__. >>> There has to be at least one dot in the name for >>> >>> from .. import whatever >>> >>> to succeed. >> >> Just spent about 3 hours t

Re: What people are using to access this mailing list

2010-11-03 Thread Dan M
On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: > Hope this isn't too O/T - I was just wondering how people read/send to > this mailing list, eg. normal email client, gmane, some other software > or online service? > > My normal inbox is getting unmanageable, and I think I need to find a > n

Re: Py3: Import relative path module

2010-11-03 Thread Peter Otten
Gnarlodious wrote: > On Nov 3, 2:51 am, Peter Otten wrote: > >> Slightly generalized: have the importing module print its __name__. There >> has to be at least one dot in the name for >> >> from .. import whatever >> >> to succeed. > > Just spent about 3 hours trying every permutation I could th

Re: Py3: Import relative path module

2010-11-03 Thread Gnarlodious
On Nov 3, 2:51 am, Peter Otten wrote: > Slightly generalized: have the importing module print its __name__. There > has to be at least one dot in the name for > > from .. import whatever > > to succeed. Just spent about 3 hours trying every permutation I could think of, and searching Google for e

Re: What people are using to access this mailing list

2010-11-03 Thread Grant Edwards
On 2010-11-03, Paul Rudin wrote: > John Bond writes: > >> On 3/11/2010 11:17 AM, Steven D'Aprano wrote: >>> On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: >>> Hope this isn't too O/T - I was just wondering how people read/send to this mailing list, eg. normal email client, gmane,

Re: Compare source code

2010-11-03 Thread Grant Edwards
On 2010-11-03, Seebs wrote: > On 2010-11-02, Grant Edwards wrote: >> Huh? Indentation is invisible? You can't see the indentation in >> Python source code? > > The difference between tabs and spaces is invisible on a great > number of the devices on which people display code. Allowing a mixture

Re: Compare source code

2010-11-03 Thread Grant Edwards
On 2010-11-03, D'Arcy J.M. Cain wrote: > On 03 Nov 2010 01:20:40 GMT > Seebs wrote: >> However, I have probably seen all of two or three bugs ever related to >> mis-indented C, and I've had various things screw up or wreck indentation > > Really? I have never seen bugs in C related to indentatio

Re: Ways of accessing this mailing list?

2010-11-03 Thread Grant Edwards
On 2010-11-02, John Bond wrote: > Hope this isn't too O/T - I was just wondering how people read/send to > this mailing list, eg. normal email client, gmane, some other software > or online service? > > My normal inbox is getting unmanageable, and I think I need to find a > new way of following

Subclassing unittest.TestCase?

2010-11-03 Thread Roy Smith
I'm using Python 2.6, with unittest2 imported as unittest. I'm writing a test suite for a web application. There is a subclass of TestCase for each basic page type. One thing that's in common between all the pages is that every page must have a valid copyright notice. It seems like the logic

Re: Allowing comments after the line continuation backslash

2010-11-03 Thread Neil Cerutti
On 2010-11-03, Ben Finney wrote: > I would do the same, but fix the indentation. Making > indentation depend on the *length* of the previous line is > needlessly making a maintenance burden. > > Instead, I'd do:: > > styles = [ > ("normal", "image", MainWindow.ColorsNormalList

Re: What people are using to access this mailing list

2010-11-03 Thread Roy Smith
In article , John Bond wrote: > Hope this isn't too O/T - I was just wondering how people read/send to this > mailing list, eg. normal email client, gmane, some other software or online > service? Usenet group comp.lang.python. Most of the time, using MT-NewsWatcher on my Mac. Occasionally

Re: What people are using to access this mailing list

2010-11-03 Thread Adam Tauno Williams
On Wed, 2010-11-03 at 11:17 +, Steven D'Aprano wrote: > On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: > > Hope this isn't too O/T - I was just wondering how people read/send to > > this mailing list, eg. normal email client, gmane, some other software > > or online service? GNOME's awe

Re: Allowing comments after the line continuation backslash

2010-11-03 Thread Roy Smith
In article , Lawrence D'Oliveiro wrote: > > I suppose readability is in the eye of the reader, but, yes, I agree > > that I have split this into two parts. The parts are > > > > 1) The table of data > > > > 2) The looping construct > > But the table of data makes no sense outside of the loop

Re: What people are using to access this mailing list

2010-11-03 Thread tinnews
John Bond wrote: > Hope this isn't too O/T - I was just wondering how people read/send to this > mailing list, eg. normal email client, gmane, some other software or online > service? > > My normal inbox is getting unmanageable, and I think I need to find a new way > of following this and othe

Re: What people are using to access this mailing list

2010-11-03 Thread Paul Rudin
John Bond writes: > On 3/11/2010 11:17 AM, Steven D'Aprano wrote: >> On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: >> >>> Hope this isn't too O/T - I was just wondering how people read/send to >>> this mailing list, eg. normal email client, gmane, some other software >>> or online service?

  1   2   >