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
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
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
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):
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 ==
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
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
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
>
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
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
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
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"
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":
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
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
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
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
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
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
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
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
> 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
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
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:")
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
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.
>
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
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
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
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
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.
--
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
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
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
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
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
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
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
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
>> 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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
> 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.
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
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
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
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
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
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
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),
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
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
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.
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
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.
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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 - 100 of 125 matches
Mail list logo