in 645437 20101031 230912 Lawrence D'Oliveiro
wrote:
>In message <[email protected]>, jf wrote:
>
>> I edit each file to remove tabs ...
>
>expand -i newfile
>
>> Do you know a tools to compare the initial file with the cleaned one to
>> know if the algorithms are the same ?
Yingjie Lan writes:
> Allow the conditions in the if-, elif-, while-, for-, and with-clauses
> to span multiple lines without using a backlalsh at the end of a line,
You can already do this with any expression: use parentheses.
Yingjie Lan writes:
> I would like to have comments after the li
In message <[email protected]>, Ben Finney wrote:
> Yingjie Lan writes:
>
>> Allow the conditions in the if-, elif-, while-, for-, and with-clauses
>> to span multiple lines without using a backlalsh at the end of a line,
>
> You can already do this with any expression: use parenth
In message , Yingjie Lan
wrote:
> I would like to have comments after the line continuation backslash.
What language allows that?
--
http://mail.python.org/mailman/listinfo/python-list
In message , Ulrich Eckhardt wrote:
> Geobird wrote:
>
>> def fact(x):
>> return x > 1 and x * fact(x - 1) or 1
>
> I'd say this is about as small as it gets.
fact = lambda x : x > 1 and x * fact(x - 1) or 1
--
Lawrence “Functionalism Strikes Again” D’Oliveiro
--
http://mail.python.or
In message , Jussi Piitulainen wrote:
> (I agree that no one should write factorial like that, except as
> a joke. I have nothing against (x if (a > b) else y). The trick
> with and and or was used before Python had an actual conditional
> expression.)
You know what, I think I actually prefer the
In message , Stefan
Behnel wrote:
> What's a "that boy"?
A boy who’s the opposite of fin.
--
http://mail.python.org/mailman/listinfo/python-list
> Sorry if I am baking too many ideas today.
> I am just having trouble with the backslashes
>
> I would like to have comments after the line continuation backslash.
>
if a > 0 \ #comments for this condition
> and b > 0:
> #do something here
>
> This is currently not OK, but t
In message
<0b6f704c-e108-4fb9-afc2-3616d92d6...@t13g2000yqm.googlegroups.com>, charu
gangal wrote:
> This is the python code I was trying to access the cell information
> from a google spreadsheet but the issue is that i am able to make it
> work on Eclipse but when i deploy it, it is not showin
On Sun, 31 Oct 2010 23:02:21 -0700, Yingjie Lan wrote:
> Hi,
>
> This is a mini-proposal I piggy-tailed in the other topic:
>
> Allow the conditions in the if-, elif-, while-, for-, and with-clauses
> to span multiple lines
[...]
>also, if we don't allow it, people just have to use
> parent
Yingjie Lan wrote:
> I would like to have comments after the line continuation backslash.
>
if a > 0 \ #comments for this condition
> and b > 0:
> #do something here
Historically, and also in Python, the backslash escapes the immediately
following character. That means that _nothin
On Oct 31, 11:46 pm, iwawi wrote:
> On 31 loka, 21:48, Tim Chase wrote:
>
>
>
> > > PRJ01001 4 00100END
> > > PRJ01002 3 00110END
>
> > > I would like to pick only some columns to a new file and put them to a
> > > certain places (to match previous data) - definition file (def.csv)
> > > could be
On Sun, 31 Oct 2010 23:13:19 -0700, Yingjie Lan wrote:
> Hi,
>
> Sorry if I am baking too many ideas today. I am just having trouble with
> the backslashes
Then don't use them.
If you are having so much trouble keeping your lines short, then I
suggest you're trying to do too much in one li
This is the page i am getting on localhost 8080. The code is showing
me thr result only in Eclipse but not through google app engine
launcher.
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py", line 3211, in _HandleR
On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert wrote:
> On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz wrote:
> > I am working with differential equations of the higher roots of negative
> > one. (dividing enormous numbers into other enormous numbers to come out
> with
> > very reasonable numbers).
> >
On Mon, 01 Nov 2010 01:08:52 -0700, Gnarlodious wrote:
> On Oct 31, 11:09 am, Дамјан Георгиевски wrote:
>> from .. import Data.DumpHT as DumpHT
>
> That doesn't work. Any more ideas?
Define "doesn't work". Does it?
Print a warning message but continue execution?
Import the wrong module?
Abort
Simply out of curiosity is there a way to force python to print more then 16
places from the decimal? For better accuracy.
On Mon, Nov 1, 2010 at 4:19 AM, Bj Raz wrote:
>
>
> On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert wrote:
>
>> On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz wrote:
>> > I am work
I was thinking of recommending this to a friend but what do you all think?
Thanks!
Sent wirelessly from my BlackBerry.
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Nov 1, 2010 at 12:51 AM, Steven D'Aprano
wrote:
> On Sun, 31 Oct 2010 23:02:21 -0700, Yingjie Lan wrote:
>> Hi,
>>
>> This is a mini-proposal I piggy-tailed in the other topic:
>>
>> Allow the conditions in the if-, elif-, while-, for-, and with-clauses
>> to span multiple lines
> [...]
>>
> On Mon, Nov 1, 2010 at 4:19 AM, Bj Raz wrote:
>> On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert wrote:
>>> On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz wrote:
>>> > I am working with differential equations of the higher roots of
>>> > negative
>>> > one. (dividing enormous numbers into other enormou
On Mon, 01 Nov 2010 20:23:42 +1300, Lawrence D'Oliveiro wrote:
> In message , Jussi Piitulainen
> wrote:
>
>> (I agree that no one should write factorial like that, except as a
>> joke. I have nothing against (x if (a > b) else y). The trick with and
>> and or was used before Python had an actual
On 1 marras, 09:59, "[email protected]"
wrote:
> On Oct 31, 11:46 pm, iwawi wrote:
>
>
>
>
>
> > On 31 loka, 21:48, Tim Chase wrote:
>
> > > > PRJ01001 4 00100END
> > > > PRJ01002 3 00110END
>
> > > > I would like to pick only some columns to a new file and put them to a
> > > > certain p
Hey! Can anyone help me with python script for reading google
spreadsheets? what all packages do i need to import to make the code
run successfully after deploying it on google environment..thnx in
advance
--
http://mail.python.org/mailman/listinfo/python-list
Chris Rebert writes:
> (2) The underlying double-precision floating-point number only has ~16
> decimal digits of precision, so it's pointless to print out "further"
> digits.
A digression which has nothing to do with Raj's desire for "better
accuracy"...
Printing out further digits (without qu
PyQt v4.8.1 has been released and is available from
http://www.riverbankcomputing.com/software/pyqt/.
PyQt is a comprehensive set of bindings for the Qt application and UI
framework from Nokia. It supports the same platforms as Qt (Windows,
Linux and MacOS/X).
PyQt supports Python v3 and Python
On Nov 1, 2:16 am, Steven D'Aprano wrote:
> On Mon, 01 Nov 2010 01:08:52 -0700, Gnarlodious wrote:
> > On Oct 31, 11:09 am, Дамјан Георгиевски wrote:
> >> from .. import Data.DumpHT as DumpHT
>
> > That doesn't work. Any more ideas?
>
> Define "doesn't work".
LOL.
I get error:
from .. import
On Oct 30, 7:16 pm, [email protected] wrote:
> I was thinking of recommending this to a friend but what do you all think?
>
I think
1. Python is a great language, and a good starting point for many
people.
2. You really haven't given us much to go on.
Regards, Alex
--
http://mail.python.org/
Howdy,
I was going through, evaluating how hard a project would be to move
over to a hybrid codebase of python2 and python3 using 2to3. I found
that while it would convert most other urllib renames and moves, 2to3
currently leaves urllib.URLopener as is, instead of changing it to go
via the reques
On Mon, Nov 1, 2010 at 5:42 AM, Hrvoje Niksic wrote:
>
> Printing out further digits (without quotes) is not pointless if you
> want to find out the exact representation of your number in python's
> floating point, for educational purposes or otherwise. Python has a
> little-known but very instru
On 2010-11-01, Martin v. Loewis wrote:
> i.e. avoid the backslash for multi-line conditions altogether
> (in fact, I can't think any situation where I would use the
> backslash).
The horrible-to-nest with statement.
--
Neil Cerutti
--
http://mail.python.org/mailman/listinfo/python-list
Gnarlodious wrote:
> On Nov 1, 2:16 am, Steven D'Aprano [email protected]> wrote:
>> On Mon, 01 Nov 2010 01:08:52 -0700, Gnarlodious wrote:
>> > On Oct 31, 11:09 am, Дамјан Георгиевски wrote:
>> >> from .. import Data.DumpHT as DumpHT
>>
>> > That doesn't work. Any more ideas?
>>
>> Define
On 10/31/10 23:51, Ben Finney wrote:
Sorry, to clarify I heard that when you declare a variable in python
you have to use some sort of standard boiler plate _variable_ however
this has not been my experience using IDLE so is this even true?
I don't know what “some sort of boiler plate _variable
On Nov 1, 2010, at 5:42 AM, Hrvoje Niksic wrote:
> Chris Rebert writes:
>
>> (2) The underlying double-precision floating-point number only has ~16
>> decimal digits of precision, so it's pointless to print out "further"
>> digits.
>
> A digression which has nothing to do with Raj's desire for
I'm facing following error while running Python script. Any idea what
causing this error --
execute_local_command: Traceback (most recent call last):
File "./pcapreplay/flowreplay.py", line 376, in
main()
File "./pcapreplay/flowreplay.py", line 177, in main
cPcapC = pcs.PcapConnector
On 2010-10-30, [email protected] wrote:
> I was thinking of recommending this to a friend but what do you all think?
Sounds like a great idea to me.
> Sent wirelessly from my BlackBerry.
Well bully for you!
--
Grant Edwards grant.b.edwardsYow! I am having FUN...
>
> I was thinking of recommending this to a friend but what do you all think?
>
Python is great language to learn programming.
I've heard MIT switched from Scheme to Python as introductory language for
their students.
--
With best regards,
Daniel Kluev
--
http://mail.python.org/mailman/listinf
On Mon, 01 Nov 2010 01:14:09 -0700, charu gangal wrote:
> This is the page i am getting on localhost 8080. The code is showing me
> thr result only in Eclipse but not through google app engine launcher.
>
> Traceback (most recent call last):
> File "C:\Program Files (x86)\Google\google_appengin
On Nov 1, 5:36 am, Peter Otten wrote:
> Remove the directory containing the importing file from your sys.path.
I removed all sys.path customizations and rebooted.
In the following scenario, I am programming in one.py attempting to
import Data.py which is in the alpha folder:
> $ tree
> .
> `-- al
Gnarlodious wrote:
> On Nov 1, 5:36 am, Peter Otten wrote:
>
>> Remove the directory containing the importing file from your sys.path.
> I removed all sys.path customizations and rebooted.
>
> In the following scenario, I am programming in one.py attempting to
> import Data.py which is in the al
On Sat, 30 Oct 2010 19:16:10 +
[email protected] wrote:
> I was thinking of recommending this to a friend but what do you all think?
Of course! But then, what did you expect from this group. :-)
--
D'Arcy J.M. Cain | Democracy is three wolves
http://www.druid.net/darcy/
Lawrence D'Oliveiro wrote:
> You know what, I think I actually prefer the trick to Python’s
> backwards-if syntax...
fact = lambda x: x*fact(x-1) if x>1 else 1
naa, it's not too bad...
--
By ZeD
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 1, 1:58 am, iwawi wrote:
> On 1 marras, 09:59, "[email protected]"
>
>
>
> wrote:
> > On Oct 31, 11:46 pm, iwawi wrote:
>
> > > On 31 loka, 21:48, Tim Chase wrote:
>
> > > > > PRJ01001 4 00100END
> > > > > PRJ01002 3 00110END
>
> > > > > I would like to pick only some columns to a
PHP (PHP Hypertext Preprocessor) Programming is Similar to C ...
PHP programming is similar to C / JavaScript and Java. ... Modeling
Agencies - Helping Teen Models · Fashion and Success - Starting a
Retail ... Read More
http://childschooledu.blogspot.com/
--
http://mail.python.org/mailman/listi
On Mon, 01 Nov 2010 12:09:12 +1300, Lawrence D'Oliveiro wrote:
> In message <[email protected]>, jf wrote:
>
>> I edit each file to remove tabs ...
>
> expand -i newfile
>
>> Do you know a tools to compare the initial file with the cleaned one to
>> know if the algorithms a
On 01/11/2010 04:51, Ben Finney wrote:
[email protected] writes:
Sorry, to clarify I heard that when you declare a variable in python
you have to use some sort of standard boiler plate _variable_ however
this has not been my experience using IDLE so is this even true?
I don't know what “som
On 10/24/2010 5:36 AM, Steve Holden wrote:
On 10/24/2010 2:22 AM, Lawrence D'Oliveiro wrote:
In message, Steve
Holden wrote:
Yes, *if the exception is caught* then it doesn't make any difference.
If the exception creates a traceback, however, I maintain that the
additional information is conf
Sorry that is what I mean. What is it for?
Sent wirelessly from my BlackBerry.
-Original Message-
From: MRAB
Sender: [email protected]
Date: Mon, 01 Nov 2010 17:33:22
To:
Reply-To: [email protected]
Subject: Re: [Beginer Question] I heard about pyth
On 01/11/2010 18:18, [email protected] wrote:
Sorry that is what I mean. What is it for?
Sent wirelessly from my BlackBerry.
-Original Message-
From: MRAB
Sender: [email protected]
Date: Mon, 01 Nov 2010 17:33:22
To:
Reply-To: [email protected]
Sub
On Mon, Nov 1, 2010 at 2:18 PM, wrote:
> Sorry that is what I mean. What is it for?
> Sent wirelessly from my BlackBerry.
>
What is what for? There is no boiler plate on variable names. *BY
CONVENTION*, variables and methods with a special meaning will start
and end with two underscores. *BY CON
On Mon, 1 Nov 2010 18:18:45 + [email protected] wrote:
> Sorry that is what I mean. What is it for?
> Sent wirelessly from my BlackBerry.
>
>>> andreas.quick_hot_anger = True
Braden! Stop Top-Posting already! Please. If your BlackBerry makes this
hard, then get another mail client. It get
On 11/1/2010 2:18 PM, [email protected] wrote:
Sorry that is what I mean. What is it for?
Sent wirelessly from my BlackBerry.
Does it require you to toppost? Understanding the above requires one to
guess what 'that' forward references.
Perhaps the OP means:
if __name__ == "__main__
On Mon, Nov 1, 2010 at 8:52 AM, Bj Raz wrote:
> On Nov 1, 2010, at 5:42 AM, Hrvoje Niksic wrote:
>
> > Chris Rebert writes:
> >
> >> (2) The underlying double-precision floating-point number only has ~16
> >> decimal digits of precision, so it's pointless to print out "further"
> >> digits.
> >
On 11/1/2010 6:54 AM, Gnarlodious wrote:
On Nov 1, 2:16 am, Steven D'Aprano wrote:
On Mon, 01 Nov 2010 01:08:52 -0700, Gnarlodious wrote:
On Oct 31, 11:09 am, Дамјан Георгиевски wrote:
from .. import Data.DumpHT as DumpHT
That doesn't work. Any more ideas?
Define "doesn't work".
LOL.
I
On 11/1/2010 7:23 AM, Chris McDonald wrote:
Howdy,
I was going through, evaluating how hard a project would be to move
over to a hybrid codebase of python2 and python3 using 2to3. I found
that while it would convert most other urllib renames and moves, 2to3
currently leaves urllib.URLopener as i
Hi folks,
My niece is interested in programming and python looks like a good
choice (she already wrote a couple of lines :)) She is 10 and I
thought it would be good to have a bunch of playful coding problems
for her, stuff that she could code herself maybe after some initial
help.
Do you guys kn
On 2010-11-01, Benjamin Kaplan wrote:
> On Mon, Nov 1, 2010 at 2:18 PM, wrote:
>> Sorry that is what I mean. What is it for?
>> Sent wirelessly from my BlackBerry.
>
> What is what for?
I think I smell troll...
--
Grant Edwards grant.b.edwardsYow! hubub, hubub, HUBUB,
This is in JS but have a look here http://github.com/ryanmcgrath/splash
On 1 Nov, 20:31, Daniel Fetchinson wrote:
> Hi folks,
>
> My niece is interested in programming and python looks like a good
> choice (she already wrote a couple of lines :)) She is 10 and I
> thought it would be good to have
Why don't you start here
http://code.google.com/apis/spreadsheets/data/1.0/developers_guide_python.html
On 1 Nov, 09:05, charu gangal wrote:
> Hey! Can anyone help me with python script for reading google
> spreadsheets? what all packages do i need to import to make the code
> run successfully a
Daniel Fetchinson writes:
> Hi folks,
>
> My niece is interested in programming and python looks like a good
> choice (she already wrote a couple of lines :)) She is 10 and I
> thought it would be good to have a bunch of playful coding problems
> for her, stuff that she could code herself maybe a
> My niece is interested in programming and python looks like a good
> choice (she already wrote a couple of lines :)) She is 10 and I
> thought it would be good to have a bunch of playful coding problems
> for her, stuff that she could code herself maybe after some initial
> help.
I think anythin
Just starting with Python.
Installed:
Python 2.7
pywin32-214.win32-py2.7.exe
pyserial-2.5.win32.exe
on a Home WinXP SP3 Toshiba laptop with 2GB memory. Open Python and
try to do simple I/O test and can't even get past first line.
Transcript below. You will see that
__name__ is defined as '_
In message <[email protected]>, Martin v. Loewis wrote:
> (in fact, I can't think any situation where I would use the backslash).
for \
Description, Attr, ColorList \
in \
(
("normal", "image", MainWindow.ColorsNormalList),
("highlighted"
In message <[email protected]>, Peter Pearson wrote:
> On Mon, 01 Nov 2010 12:09:12 +1300, Lawrence D'Oliveiro wrote:
>
>> In message <[email protected]>, jf wrote:
>>
>>> I edit each file to remove tabs ...
>>
>> expand -i newfile
>>
>>> Do you know a tools
On 2010-11-01, Lawrence D'Oliveiro wrote:
> In message <[email protected]>, Peter Pearson wrote:
>>
>>> diff -b oldfile newfile
>>
>> Warning: "diff -b" won't detect changes in indentation. Changes in
>> indentation can change a Python program.
>
> I'm getting less and less kee
In message <[email protected]>, Martin v. Loewis wrote:
> Take a look at the turtle demos.
Are turtle graphics still enough to hold the kids’ interest these days?
I’ve been visiting a local Computer Clubhouse, and it seems like they mostly
spend their time in Google SketchUp and Phot
On Mon, Nov 1, 2010 at 5:55 PM, Fossil wrote:
> Just starting with Python.
> Installed:
> Python 2.7
> pywin32-214.win32-py2.7.exe
> pyserial-2.5.win32.exe
> on a Home WinXP SP3 Toshiba laptop with 2GB memory. Open Python and
> try to do simple I/O test and can't even get past first line.
> Tr
On 11/1/2010 2:48 PM Martin v. Loewis said...
My niece is interested in programming and python looks like a good
choice (she already wrote a couple of lines :)) She is 10 and I
thought it would be good to have a bunch of playful coding problems
for her, stuff that she could code herself maybe aft
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 handful of bugs in error handling code. It also adds APIs for
Hello,
I have a class with some members that depend on others. Initially most
of them are None.
For each one there is a function to calculate it as soon as some other
dependencies become available.
In the end, all values can be computed by the right sequence of
function applications.
class A:
[email protected] writes:
> Sorry that is what I mean. What is it for?
Branden, you're welcome to ask questions about Python here.
But please, help us help you:
Don't top-post. It makes the flow of conversation difficult to follow.
Instead, respond in-line beneath the point you're responding
On Mon, 1 Nov 2010 22:24:03 + (UTC), Grant Edwards wrote:
> On 2010-11-01, Lawrence D'Oliveiro wrote:
>> In message <[email protected]>, Peter Pearson wrote:
>>>
diff -b oldfile newfile
>>>
>>> Warning: "diff -b" won't detect changes in indentation. Changes in
>>> inde
On 11/1/2010 3:18 PM Lawrence D'Oliveiro said...
In message<[email protected]>, Peter Pearson wrote:
Warning: "diff -b" won't detect changes in indentation. Changes in
indentation can change a Python program.
I’m getting less and less keen on that particular feature of Python.
On 01/11/2010 22:44, Daniel wrote:
Hello,
I have a class with some members that depend on others. Initially most
of them are None.
For each one there is a function to calculate it as soon as some other
dependencies become available.
In the end, all values can be computed by the right sequence o
On 11/01/2010 01:31 PM, Daniel Fetchinson wrote:
Hi folks,
My niece is interested in programming and python looks like a good
choice (she already wrote a couple of lines :)) She is 10 and I
thought it would be good to have a bunch of playful coding problems
for her, stuff that she could code her
In message , Emile van
Sebille wrote:
> At least you can look at python code and _know_ that spurious placement of
> required line noise don't have the ability to impact what the code does.
But it does. What is spurious whitespace if not noise, after all?
--
http://mail.python.org/mailman/listi
In message
, nu
wrote:
> I want to sync the file foder in different server,and I can't use ftp
> protocl.
> I try to sync files during defferent server and not use username and
> password to login.
Set up an SSH public/private key pair. Then run Rsync over SSH. Job done.
--
http://mail.pytho
In message <[email protected]>, News123 wrote:
> Is there any other way to make screen shots in Linux, ideally without
> creating an intermediate file
The ImageMagick “import” command lets you grab the contents of any window
(including the root window) from your X server
On Tue, Nov 2, 2010 at 9:23 AM, MRAB wrote:
> You might be interested by the story of how AstraZeneca tackled that
> kind of problem in PyDrone: http://www.python.org/about/success/astra/
This might be a good use-case (if I'm reading the post correctly) for
"Traits" (1)
cheers
James
1. http://p
On Nov 1, 3:55 pm, Fossil wrote:
> Just starting with Python.
> Installed:
> Python 2.7
> pywin32-214.win32-py2.7.exe
> pyserial-2.5.win32.exe
> on a Home WinXP SP3 Toshiba laptop with 2GB memory. Open Python and
> try to do simple I/O test and can't even get past first line.
> Transcript b
On Mon, Nov 1, 2010 at 3:16 PM, Lawrence D'Oliveiro
wrote:
> In message <[email protected]>, Martin v. Loewis wrote:
>
>> (in fact, I can't think any situation where I would use the backslash).
>
> for \
> Description, Attr, ColorList \
> in \
> (
> ("norm
On Nov 1, 4:48 pm, Peter Pearson wrote:
> True, but diff doesn't come with an "ignore curly braces" option.
> I'm not personally repelled by Python's use of significant indentation,
> but I must concede that some awkwardness results from assigning
> significance to something (whitespace) that many
On 01/11/2010 23:38, James Mills wrote:
On Tue, Nov 2, 2010 at 9:23 AM, MRAB wrote:
You might be interested by the story of how AstraZeneca tackled that
kind of problem in PyDrone: http://www.python.org/about/success/astra/
This might be a good use-case (if I'm reading the post correctly) for
Thank you, Ian. You put your finger on the problem. As I thrashed
around earlier, I had installed serial i/o pieces before the clean
install pieces of
pywin32-214.win32-py2.7.exe
pyserial-2.5.win32.exe
I did a complete de-install and re-install. Now the serial i/o is
functioning -- I'm stil
*** FBI gets a warm welcome in Chicago for their EXCELLENT performance
- cheers to NEW CONS ***
http://www.youtube.com/watch?v=eq2ZvSd-z0M&feature=player_embedded&related
http://www.youtube.com/watch?v=eq2ZvSd-z0M&feature=player_embedded&related
http://www.youtube.com/watch?v=eq2ZvSd-z0M&feature
On Nov 1, 2010, at 6:43 PM, [email protected] wrote:
> I'm happy to announce the release of pyOpenSSL 0.11.
Congratulations, JP! It's great to see this effort coming together.--
http://mail.python.org/mailman/listinfo/python-list
How exactly does this relate to python?
Sent wirelessly from my BlackBerry device on the Bell network.
Envoyé sans fil par mon terminal mobile BlackBerry sur le réseau de Bell.
-Original Message-
From: silver light
Sender: [email protected]
Date: Mon, 1 Nov
> -Original Message-
> From: silver light
> Sender: [email protected]
> Date: Mon, 1 Nov 2010 18:10:36
> To:
> Cc:
> Subject: *** FBI gets a warm welcome in Chicago for their EXCELLENT
> performance - cheers to NEW CONS ***
>
> *** FBI gets a warm wel
Chris Rebert wrote:
> Or, if possible, refactor the conditional into a function (call) so
> it's no longer multiline in the first place.
Or even simpler, assign the condition result to a variable:
a_b_positive = a > 0 and b > 0
if a_b_positive:
...
--
http://mail.python.org/mailman/listinfo/
In message , Chris
Rebert wrote:
> desc_attr_colors_triples = (("normal", "image",
> MainWindow.ColorsNormalList),
> ("highlighted", "highlight", MainWindow.ColorsHighlightedList),
> ("selected", "select", MainWindow.ColorsSelectedList))
> for in description, attr, color_list in desc_attr
In message
, Fossil
wrote:
> I did a complete de-install and re-install.
Standard solution to Dimdows problems, really...
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 1, 6:35 pm, Chris Rebert wrote:
> > -Original Message-
> > From: silver light
> > Sender: [email protected]
> > Date: Mon, 1 Nov 2010 18:10:36
> > To:
> > Cc:
> > Subject: *** FBI gets a warm welcome in Chicago for their EXCELLENT
> > performa
In message <[email protected]>, Hrvoje Niksic wrote:
> Python has a little-known but very instructive method for determining the
> makeup of a float:
>
1.1 .as_integer_ratio()
> (2476979795053773, 2251799813685248)
Only available in 2.6 or later. Are we already talking as though 2.5
In message , Phil
Thompson wrote:
> PyQt is available under the GPL and a commercial license.
Surely you mean “proprietary” rather than “commercial”. There is nothing
about the GPL that prevents “commercial” use.
--
http://mail.python.org/mailman/listinfo/python-list
In message <[email protected]>, 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.
--
http://mail.python.org/mailman/listinfo/python-list
In message <[email protected]>, Gregory Ewing wrote:
> Steven D'Aprano wrote:
>
>> And how does Python know whether some arbitrary default object is mutable
>> or not?
>
> It doesn't, that's the whole point.
Of course it knows. It is the one defining the concept in the first place
In message
, John
Yeung wrote:
> I will give zfill a little exposure, as it seems unloved/underused:
>
> str(x).zfill(2)
The inside of my brain is a finite place. Each thing I put in there leaves
less room for something else. So I have to think very carefully before
deciding what to keep in
On 02/11/2010 03:18, small Pox wrote:
On Nov 1, 6:35 pm, Chris Rebert wrote:
-Original Message-
From: silver light
Sender: [email protected]
Date: Mon, 1 Nov 2010 18:10:36
To:
Cc:
Subject: *** FBI gets a warm welcome in Chicago for their EXCELLENT
p
Post this question on the C/C++ group...
and do post those replie here
:P
--
http://mail.python.org/mailman/listinfo/python-list
On 2010-11-01 22:31 , Lawrence D'Oliveiro wrote:
In message<[email protected]>, Gregory Ewing wrote:
Steven D'Aprano wrote:
And how does Python know whether some arbitrary default object is mutable
or not?
It doesn't, that's the whole point.
Of course it knows. It is the one
On 2010-11-01, Grant Edwards wrote:
> On 2010-11-01, Lawrence D'Oliveiro wrote:
>> In message <[email protected]>, Peter Pearson wrote:
>>> Warning: "diff -b" won't detect changes in indentation. Changes in
>>> indentation can change a Python program.
>> I'm getting less and less
1 - 100 of 105 matches
Mail list logo