On Mon, Feb 25, 2013 at 5:26 PM, llanitedave wrote:
> On the other hand, it *is* a bit frustrating that Linux recognizes an
> html-style relative path, while Windows insists on the entire absolute path.
> Maybe we can call it a Windows bug, but a workaround would be nice to have.
That is, unfo
On Mon, Feb 25, 2013 at 5:14 PM, Frank Millman wrote:
> On 24/02/2013 16:58, Chris Angelico wrote:
>> MySQL has a philosophical structure of "user logs in to app,
>> but app logs in to database as superuser regardless of user login".
>
> Out of curiosity, is there anything wrong with that approach
On Sunday, February 24, 2013 9:35:17 PM UTC-8, Terry Reedy wrote:
> On 2/24/2013 4:35 AM, Chris Rebert wrote:
>
>
>
> > Sounds like this might be your problem:
>
> > http://bugs.python.org/issue8936
>
>
>
> I just closed that issue an invalid. Here is most of what I wrote.
>
> '''
>
> Afte
On 24/02/2013 16:58, Chris Angelico wrote:
[...]
MySQL has a philosophical structure of "user logs in to app,
but app logs in to database as superuser regardless of user login".
Out of curiosity, is there anything wrong with that approach?
The project I am developing is a business/accountin
On 2/24/2013 3:28 PM, llanitedave wrote:
http://bugs.python.org/issue8936
Holy Toledo! That's a two-year-old bug spanning two versions of the language!
We need more volunteers who will do the kind of careful review of
report, doc, and code I just did. Feel free to help.
--
Terry Jan Ree
On 2/24/2013 4:35 AM, Chris Rebert wrote:
Sounds like this might be your problem:
http://bugs.python.org/issue8936
I just closed that issue an invalid. Here is most of what I wrote.
'''
After reading the doc and the code, I am convinced that current behavior
is close to the implied wanted beh
Hi
I have a script which calls getLogger to set up a logging service.
The standard logger description used both the consoleHandler and the
syslogHandler.
It seems that if syslogd is shut down, getLogger fails, and the script
won't be able to log at all.
is there a way to make it immune against t
On Friday, February 22, 2013 12:03:30 PM UTC-6, Xx7 wrote:
> Hi, could somebody possibly provide a basic listview example? thanks!
Depends on your definition of a "listview".
We NOW know you want examples of GUI widgets; but /which/ GUI library do you
plan on using? If you are not sure which l
On Saturday, February 23, 2013 4:50:43 PM UTC-6, Rex Macey wrote:
> Here is one general and one specific question about
> creating GUIs using tkinter from a newbie. I have created
> a class in which to hold some data. I want to create a
> GUI to get the data from the user and store it in the
> ob
Well, we can mark this one as solved.
Simple enough, actually -- thanks to Chris and Demian for leading me to water.
The following code works on both Linux and Windows 7:
def OnDocs(self, event):
"""Opens the User's Guide in the default web browser"""
fullpath = os.path.abspath('
On 02/24/2013 05:53 PM, Chris Angelico wrote:
On Mon, Feb 25, 2013 at 12:44 PM, Oscar Benjamin
wrote:
On 25 February 2013 01:24, Chris Angelico wrote:
Once again, Ethan gets the short end of the citations stick...
'twarn't me wrote that, he did. Not that it's at all contrary to my
views, and
On 25 February 2013 02:08, Dennis Lee Bieber wrote:
> On Sun, 24 Feb 2013 21:58:36 +, Joshua Landau
> declaimed the following in
> gmane.comp.python.general:
>
>
> >
> > condition1 = long_condition_expression_1
> > condition2 = long_condition_expression_2
> > condition3 = long_condition_expr
On 24/02/2013 23:03, Roy Smith wrote:
In article ,
"J.R." wrote:
PS.: JavaScript is a trademark, and the actual language name is
specified as ECMAScript.
The decision whether to call it JavaScript or ECMAScript really comes
down to, "Do you want to be correct, or do you want people to know
On Mon, Feb 25, 2013 at 1:03 PM, Roy Smith wrote:
> In article ,
> "J.R." wrote:
>
>> PS.: JavaScript is a trademark, and the actual language name is
>> specified as ECMAScript.
>
> The decision whether to call it JavaScript or ECMAScript really comes
> down to, "Do you want to be correct, or do
On Sunday, February 24, 2013 3:51:09 PM UTC-8, Demian Brecht wrote:
> For the record, I completely misread and misunderstood the question. I
>
> should stop posting that late at night :P
>
>
>
> On Sun, Feb 24, 2013 at 1:25 AM, Demian Brecht wrote:
>
> > Rather than using a relative path, try
On 2013-02-25 01:53, Chris Angelico wrote:
On Mon, Feb 25, 2013 at 12:44 PM, Oscar Benjamin
wrote:
On 25 February 2013 01:24, Chris Angelico wrote:
Once again, Ethan gets the short end of the citations stick...
'twarn't me wrote that, he did. Not that it's at all contrary to my
views, and I m
In article ,
"J.R." wrote:
> PS.: JavaScript is a trademark, and the actual language name is
> specified as ECMAScript.
The decision whether to call it JavaScript or ECMAScript really comes
down to, "Do you want to be correct, or do you want people to know what
you're talking about?"
--
htt
On 21/02/2013 19:40, piterrr.dolin...@gmail.com wrote:
I am nervous about using variables "out of the blue", without having
to declare them. For example, when I write "i = 0" it is perfectly OK
to Python without 'i' being declared earlier. How do I know that I
haven't used this variable earlie
On Mon, Feb 25, 2013 at 12:44 PM, Oscar Benjamin
wrote:
> On 25 February 2013 01:24, Chris Angelico wrote:
>> Once again, Ethan gets the short end of the citations stick...
>> 'twarn't me wrote that, he did. Not that it's at all contrary to my
>> views, and I might well have said it if he hadn't,
On 02/24/2013 03:43 PM, piterrr.dolin...@gmail.com wrote:
> I wanted Python to register what type of variable I'm after. So I
> init my vars accordingly, int might be 0, float 0.0 and string with
> null, err... None.
As several people on the list have pointed out, there are no variables
in Python.
On 25 February 2013 01:24, Chris Angelico wrote:
> On Mon, Feb 25, 2013 at 11:45 AM, Oscar Benjamin
> wrote:
>> On 25 February 2013 00:08, wrote:
>> Chris Angelico wrote:
For example (I believe it's already been mentioned) "declaring" intX with
some integer value does *nothing* to ma
On 02/24/2013 06:04 PM, Steven D'Aprano wrote:
> Variables do not have types in Python.
>
> Reset your thinking. Python is a dynamic language with name bindings and
> strongly-typed objects, not a static language with strongly-typed
> variables. If you don't understand the difference, ask. But s
On 02/24/2013 03:40 PM, Mitya Sirenef wrote:
> But if block doesn't have to be inside a function, right? It needs
> to be inside a module, but then again everything is inside a module, but
> it wouldn't be very object-oriented if the module was the only object in
> Python :-).
A module indeed fits
On Sunday, February 24, 2013 7:27:54 PM UTC-5, Chris Rebert wrote:
> On Sunday, February 24, 2013, Adam W. wrote:
> I'm trying to write a simple script to scrape
> http://www.vudu.com/movies/#tag/99centOfTheDay/99c%20Rental%20of%20the%20day
>
>
>
>
> in order to send myself an email every day
On Mon, Feb 25, 2013 at 12:04 PM, Steven D'Aprano
wrote:
> Not at all. The only difference is whether you get a compiler error or a
> runtime error. Instead of:
>
> 10 Write code.
> 20 Compile.
> 30 If compiler error, GO TO 10.
> 40 REM code compiles, but it still needs to be tested
> 50 Test code
On Mon, Feb 25, 2013 at 11:45 AM, Oscar Benjamin
wrote:
> On 25 February 2013 00:08, wrote:
> Chris Angelico wrote:
>>> For example (I believe it's already been mentioned) "declaring" intX with
>>> some integer value does *nothing* to maintain
>>>
>>> X as an integer:
>>>
>>> --> intX = 32
>>>
On Sunday, February 24, 2013 7:30:00 PM UTC-5, Dave Angel wrote:
> On 02/24/2013 07:02 PM, Adam W. wrote:
>
> > I'm trying to write a simple script to scrape
> > http://www.vudu.com/movies/#tag/99centOfTheDay/99c%20Rental%20of%20the%20day
>
> >
>
> > in order to send myself an email every day o
On Sun, 24 Feb 2013 17:40:54 -0500, Mitya Sirenef wrote:
> But if block doesn't have to be inside a function, right? It needs to be
> inside a module, but then again everything is inside a module, but it
> wouldn't be very object-oriented if the module was the only object in
> Python :-).
Python
On Sun, 24 Feb 2013 16:08:06 -0800, piterrr.dolinski wrote:
>> For example (I believe it's already been mentioned) "declaring" intX
>> with some integer value does *nothing* to maintain
>>
>> X as an integer:
>>
>> --> intX = 32
>>
>> --> intX = intX / 3.0
>>
>> --> intX
>>
>> 10.66
>
On Sunday, February 24, 2013 2:15:10 PM UTC-8, MRAB wrote:
> On 2013-02-24 20:28, llanitedave wrote:
>
> > On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote:
>
> [snip]
>
> >> Sounds like this might be your problem:
>
> >>
>
> >> http://bugs.python.org/issue8936
>
> >>
>
> >>
On Sun, 24 Feb 2013 11:40:05 -0800, piterrr.dolinski wrote:
>> > if (some statement): # short form
>> >
>> > rather than
>> >
>> > if (some statement == true): # long form
>>
>>
>> What all those ugly brackets are for?
>>
>>
> Mark,
>
> Back in the day when C was king, or
On Monday, February 25, 2013 8:51:28 AM UTC+8, Oscar Benjamin wrote:
> On 25 February 2013 00:39, Ziliang Chen wrote:
>
> > Hi folks,
>
> > When I am trying to understand "yield" expression in Python2.6, I did the
> > following coding. I have difficulty understanding why "val" will be "None"
>
In article ,
piterrr.dolin...@gmail.com wrote:
> Yes I did see that it is possible to redefine the type of a variable. But I
> don't think I would ever do this intentionally
One does not need language features to protect themselves against things
they do intentionally. They need language feat
On 25 February 2013 00:08, wrote:
Chris Angelico wrote:
>> For example (I believe it's already been mentioned) "declaring" intX with
>> some integer value does *nothing* to maintain
>>
>> X as an integer:
>>
>> --> intX = 32
>>
>> --> intX = intX / 3.0
>>
>> --> intX
>>
>> 10.66
>>
>
> Y
Hi folks,
When I am trying to understand "yield" expression in Python2.6, I did the
following coding. I have difficulty understanding why "val" will be "None" ?
What's happening under the hood? It seems to me very time the counter resumes
to execute, it will assign "count" to "val", so "val" sho
On 25 February 2013 00:39, Ziliang Chen wrote:
> Hi folks,
> When I am trying to understand "yield" expression in Python2.6, I did the
> following coding. I have difficulty understanding why "val" will be "None" ?
> What's happening under the hood? It seems to me very time the counter resumes
>
In article ,
Ethan Furman wrote:
> On 02/24/2013 03:38 PM, piterrr.dolin...@gmail.com wrote:
> >
> >>> intX = 32 # decl + init int var
> >> How is it not obvious that "intX" is an integer *without* the comment?
> >
> > Indeed the assignment is enough to deduce "intX" is
On Sun, 24 Feb 2013 16:08:01 -0500, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> > no need to remember what's an object and what's not -- everything is
>> > an object
>
> Well, not quite everything. If I write:
>
> if foo:
>do_this()
>and_this()
>
> the code block ma
On 02/24/2013 04:08 PM, piterrr.dolin...@gmail.com wrote:
For example (I believe it's already been mentioned) "declaring" intX with some
integer value does *nothing* to maintain
X as an integer:
--> intX = 32
--> intX = intX / 3.0
--> intX
10.66
Yes I did see that it is possible
Hi folks,
When I am trying to understand "yield" expression in Python2.6, I did the
following coding. I have difficulty understanding why "val" will be "None" ?
What's happening under the hood? It seems to me very time the counter resumes
to execute, it will assign "count" to "val", so "val" sho
Hi folks,
When I am trying to understand "yield" expression in Python2.6, I did the
following coding. I have difficulty understanding why "val" will be "None" ?
What's happening under the hood? It seems to me very time the counter resumes
to execute, it will assign "count" to "val", so "val" sho
On 25/02/2013 00:08, piterrr.dolin...@gmail.com wrote:
For example (I believe it's already been mentioned) "declaring" intX with some
integer value does *nothing* to maintain
X as an integer:
--> intX = 32
--> intX = intX / 3.0
--> intX
10.66
Yes I did see that it is possible to
On 25 February 2013 00:08, wrote:
> > For example (I believe it's already been mentioned) "declaring" intX
> with some integer value does *nothing* to maintain
> >
> > X as an integer:
> >
> > --> intX = 32
> >
> > --> intX = intX / 3.0
> >
> > --> intX
> >
> > 10.66
> >
>
> Yes I did see
On 02/24/2013 07:02 PM, Adam W. wrote:
I'm trying to write a simple script to scrape
http://www.vudu.com/movies/#tag/99centOfTheDay/99c%20Rental%20of%20the%20day
in order to send myself an email every day of the 99c movie of the day.
However, using a simple command like (in Python 3.0):
urllib
On Sunday, February 24, 2013, Adam W. wrote:
> I'm trying to write a simple script to scrape
> http://www.vudu.com/movies/#tag/99centOfTheDay/99c%20Rental%20of%20the%20day
>
> in order to send myself an email every day of the 99c movie of the day.
>
> However, using a simple command like (in Pytho
> For example (I believe it's already been mentioned) "declaring" intX with
> some integer value does *nothing* to maintain
>
> X as an integer:
>
> --> intX = 32
>
> --> intX = intX / 3.0
>
> --> intX
>
> 10.66
>
Yes I did see that it is possible to redefine the type of a variable
I'm trying to write a simple script to scrape
http://www.vudu.com/movies/#tag/99centOfTheDay/99c%20Rental%20of%20the%20day
in order to send myself an email every day of the 99c movie of the day.
However, using a simple command like (in Python 3.0):
urllib.request.urlopen('http://www.vudu.com/mo
On 02/24/2013 03:38 PM, piterrr.dolin...@gmail.com wrote:
intX = 32 # decl + init int var
How is it not obvious that "intX" is an integer *without* the comment?
Indeed the assignment is enough to deduce "intX" is an int. The comment is
there to let me know it is unl
For the record, I completely misread and misunderstood the question. I
should stop posting that late at night :P
On Sun, Feb 24, 2013 at 1:25 AM, Demian Brecht wrote:
> Rather than using a relative path, try using
> webbrowser.open('{}/documentation/help.html'.format(os.path.dirname(__file__))).
On Mon, Feb 25, 2013 at 10:38 AM, wrote:
>
>>> intX = 32 # decl + init int var
>> How is it not obvious that "intX" is an integer *without* the comment?
>
> Indeed the assignment is enough to deduce "intX" is an int. The comment is
> there to let me know it is unlikely i
On Mon, Feb 25, 2013 at 9:33 AM, Ethan Furman wrote:
> On 02/24/2013 12:58 PM, Chris Angelico wrote:
>>
>> On Mon, Feb 25, 2013 at 7:34 AM, Ethan Furman wrote:
>>>
>>>
>>>- no variable declarations, just use 'em
>>
>>
>> Variable declarations can go either way; Python requires you to name
>>
>> intX = 32 # decl + init int var
> How is it not obvious that "intX" is an integer *without* the comment?
Indeed the assignment is enough to deduce "intX" is an int. The comment is
there to let me know it is unlikely intX appears earlier in the code. Please,
let me do
> Most of what gets hung in art galleries these days is far less
> visually pleasing than well-written code.
+1 QOTW
--
http://mail.python.org/mailman/listinfo/python-list
On 24 February 2013 23:18, Oscar Benjamin wrote:
> On 24 February 2013 21:35, Joshua Landau
> wrote:
> >
> > determinant = b**2 - 4*a*c
>
> It's called the discriminant. A determinant is something altogether
> different.
*cries at own idiocy*
Thank you.
--
http://mail.python.org/mailman/listi
On 24 February 2013 22:08, Chris Angelico wrote:
> On Mon, Feb 25, 2013 at 8:35 AM, Joshua Landau
> wrote:
> > def solve_quadratic(a, b, c):
> > """Solve a quadratic equation of the form ax² + bx + c = 0
> >
> > The result will be a tuple of the two results; the results can be equal
> if
> > the
On 24 February 2013 22:43, wrote:
> Josh,
>
> Not thank you for your malicious post.
>
Be careful, us programmers do *eventually* catch on to who is a troll, and
if you say things like that we may eventually mark you off as just to
hostile.
I *honestly* meant no malice or insult. If you can't ta
Motorola RAZR HD
http://www.youtube.com/watch?v=u28AjcMah0o
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Feb 24, 2013 at 5:43 PM, wrote:
> Josh,
>
> Not thank you for your malicious post.
> I think you are missing the point here.
>
> My source code was just a dummy to offer context for the question I wanted
> to ask. Further down the line, if I ever feel I don't need to
> pseudo-declare vari
On 02/24/2013 10:46 AM, piterrr.dolin...@gmail.com wrote:
Hi guys,
Question. Have this code
intX = 32 # decl + init int var
intX_asString = None # decl + init with NULL string var
None is not a str, and it's not a "NULL string var" Perhaps what you
wa
Josh,
Not thank you for your malicious post.
I think you are missing the point here.
My source code was just a dummy to offer context for the question I wanted to
ask. Further down the line, if I ever feel I don't need to pseudo-declare
variables I will stop doing it. But for the moment I am tr
On 02/24/2013 12:58 PM, Chris Angelico wrote:
On Mon, Feb 25, 2013 at 7:34 AM, Ethan Furman wrote:
- no variable declarations, just use 'em
Variable declarations can go either way; Python requires you to name
all globals that you mutate
I'm not sure what you mean -- example?
--
~Ethan~
On 02/24/2013 04:44 PM, Chris Angelico wrote:
On Mon, Feb 25, 2013 at 8:08 AM, Roy Smith wrote:
>> In article ,
>> Chris Angelico wrote:
>>
no need to remember what's an object and what's not -- everything
is an
object
>
> Careful on the citations - Ethan Furman said that, I just
On 2013-02-24 20:28, llanitedave wrote:
On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote:
[snip]
Sounds like this might be your problem:
http://bugs.python.org/issue8936
The fix would seem to be ensuring that the URL you pass includes
the scheme (in your case, "file:").
Hol
On Mon, Feb 25, 2013 at 8:35 AM, Joshua Landau
wrote:
> def solve_quadratic(a, b, c):
> """Solve a quadratic equation of the form ax² + bx + c = 0
>
> The result will be a tuple of the two results; the results can be equal if
> the determinant is 0.
> This supports imaginary results for if the det
On 24 February 2013 20:48, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
> > On Mon, Feb 25, 2013 at 7:34 AM, MRAB
> wrote:
> > > Some languages require parentheses, others don't.
> > >
> > > C does. C++, Java and C# are descended from, or influenced by, C.
> > >
> > > Algol didn't
On 24 February 2013 19:29, wrote:
> Hi. Steve, I don't know where you have been over the past couple of days
> but it is widely known (if the thread title is any indication) that I am
> indeed very new to Python, but not new to programming in general.
>
> To give a bit of background where I found
Am 24.02.2013 20:27 schrieb 7segment:
When in doubt, check some other way, such as with a browser.
Thank you Ian. Browser is not a good idea, because I need this tool to
work automatically. I don't have time to check and compare the response
times manually and put them into the database.
Of
In article ,
Chris Angelico wrote:
> > no need to remember what's an object and what's not -- everything is an
> > object
Well, not quite everything. If I write:
if foo:
do_this()
and_this()
the code block making up the body of the "if" statement is not an
object. In some languages,
On Sunday, February 24, 2013 12:50:02 PM UTC-8, Mark Lawrence wrote:
> On 24/02/2013 20:28, llanitedave wrote:
>
> > On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote:
>
> >> On Feb 24, 2013 1:21 AM, "llanitedave" wrote:
>
> >>
>
> >>>
>
> >>
>
> >>> I created an html help pa
In article ,
Chris Angelico wrote:
> On Mon, Feb 25, 2013 at 7:34 AM, MRAB wrote:
> > Some languages require parentheses, others don't.
> >
> > C does. C++, Java and C# are descended from, or influenced by, C.
> >
> > Algol didn't (doesn't?). Pascal, Modula-2, Oberon, Ada, and others
> > don't.
On Sunday, February 24, 2013 12:48:40 PM UTC-8, Chris Rebert wrote:
> On Sun, Feb 24, 2013 at 12:28 PM, llanitedave wrote:
>
> > On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote:
>
> >> On Feb 24, 2013 1:21 AM, "llanitedave" wrote:
>
> >> > I created an html help page for my P
On Sun, Feb 24, 2013 at 12:28 PM, llanitedave wrote:
> On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote:
>> On Feb 24, 2013 1:21 AM, "llanitedave" wrote:
>> > I created an html help page for my Python 2.7.3 application and put it in
>> > a documentation folder. I used webbrowse
On Mon, Feb 25, 2013 at 7:34 AM, Ethan Furman wrote:
> One of the things I love about Python is its ability to get out of the way
> and let me work:
>
> - no variable declarations, just use 'em
> - no type declarations, just use 'em
> - no need to remember what's an object and what's not --
On 24/02/2013 20:28, llanitedave wrote:
On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote:
On Feb 24, 2013 1:21 AM, "llanitedave" wrote:
I created an html help page for my Python 2.7.3 application and put it in a
documentation folder. I used webbrowser.open() to fetch th
On 02/24/2013 11:40 AM, piterrr.dolin...@gmail.com wrote:
Back in the day when C was king, or take many newer long established languages (C#,
Java), the use of () has been widespread and mandated by the compilers. I have never
heard anyone moan about the requirement to use parentheses. Now come
On 24/02/2013 19:40, piterrr.dolin...@gmail.com wrote:
if (some statement):# short form
rather than
if (some statement == true):# long form
What all those ugly brackets are for?
Mark,
Back in the day when C was king, or take many newer long established languages (C#,
Jav
On Mon, Feb 25, 2013 at 7:34 AM, MRAB wrote:
> Some languages require parentheses, others don't.
>
> C does. C++, Java and C# are descended from, or influenced by, C.
>
> Algol didn't (doesn't?). Pascal, Modula-2, Oberon, Ada, and others
> don't.
>
> Parentheses are used where required, but not us
On 2013-02-24 19:40, piterrr.dolin...@gmail.com wrote:
if (some statement):# short form
rather than
if (some statement == true):# long form
What all those ugly brackets are for?
Mark,
Back in the day when C was king, or take many newer long established
languages (C#, Java
On Sun, 24 Feb 2013 20:40:05 +0100, wrote:
> if (some statement): # short form
>
> rather than
>
> if (some statement == true): # long form
What all those ugly brackets are for?
Mark,
Back in the day when C was king, or take many newer long established
languages (C#,
On Sunday, February 24, 2013 1:35:31 AM UTC-8, Chris Rebert wrote:
> On Feb 24, 2013 1:21 AM, "llanitedave" wrote:
>
> >
>
> > I created an html help page for my Python 2.7.3 application and put it in a
> > documentation folder. I used webbrowser.open() to fetch the page.
>
> >
>
> > On linu
On Mon, Feb 25, 2013 at 5:19 AM, Grant Edwards wrote:
> On 2013-02-23, Chris Angelico wrote:
>
>> It's worth noting, though, that there are self-perpetuating aspects to
>> it. I can happily distribute a .py file to a Linux audience, because
>> many Linux distros come with a Python already install
On 02/24/2013 02:40 PM, piterrr.dolin...@gmail.com wrote:
if (some statement): # short form
>>>
>>> rather than
>>>
>>> if (some statement == true): # long form
>>
>>
>> What all those ugly brackets are for?
>>
>
> Mark,
>
> Back in the day when C was king, or take many newer long established
>
> > if (some statement):# short form
> >
> > rather than
> >
> > if (some statement == true):# long form
>
>
> What all those ugly brackets are for?
>
Mark,
Back in the day when C was king, or take many newer long established languages
(C#, Java), the use of () has bee
> To demonstrate that the person who wrote this code was not a good Python
>
> programmer. I hope it wasn't you :-) This person obviously had a very
>
> basic, and confused, understanding of Python.
>
>
>
> And, quite frankly, was probably not a very good programmer of *any*
>
> language:
On 23 fév, 15:26, Devin Jeanpierre wrote:
> Hi folks,
>
> I'm pretty unsure of myself when it comes to unicode. As I understand
> it, you're generally supposed to compare things in a case insensitive
> manner by case folding, right? So instead of a.lower() == b.lower()
> (the ASCII way), you do a.
On Sun, 24 Feb 2013 11:55:09 -0700, Ian Kelly wrote:
> On Sun, Feb 24, 2013 at 10:48 AM, 7segment <7segm...@live.com> wrote:
>> Hi!
>>
>> The subject is a segment of a sentence which I copied from Python's
>> official homepage. In whole, it reads:
>>
>> "The urlopen() and urlretrieve() functions c
On Sun, 24 Feb 2013 19:04:28 +, MRAB wrote:
> On 2013-02-24 18:55, Ian Kelly wrote:
>> On Sun, Feb 24, 2013 at 10:48 AM, 7segment <7segm...@live.com> wrote:
>>> Hi!
>>>
>>> The subject is a segment of a sentence which I copied from Python's
>>> official homepage. In whole, it reads:
>>>
>>> "T
On 2013-02-24 18:55, Ian Kelly wrote:
On Sun, Feb 24, 2013 at 10:48 AM, 7segment <7segm...@live.com> wrote:
Hi!
The subject is a segment of a sentence which I copied from Python's
official homepage. In whole, it reads:
"The urlopen() and urlretrieve() functions can cause arbitrarily long
delay
On Sun, Feb 24, 2013 at 10:48 AM, 7segment <7segm...@live.com> wrote:
> Hi!
>
> The subject is a segment of a sentence which I copied from Python's
> official homepage. In whole, it reads:
>
> "The urlopen() and urlretrieve() functions can cause arbitrarily long
> delays while waiting for a network
In article ,
Ethan Furman wrote:
> On the bright side, if this is one of his 2000 line scripts, he should be
> able to get it down
> to at least half that once he has a good feel for Python and re-writes it.
I hope he doesn't get paid by the line :-)
--
http://mail.python.org/mailman/listinfo
On 02/24/2013 01:23 PM, Steven D'Aprano wrote:
On Sun, 24 Feb 2013 13:09:56 -0500, Mitya Sirenef wrote:
>
>> On 02/24/2013 12:29 PM, Michael Torrie wrote:
>
>> > Another way to explain the double underscore methods is that they are
>> > how things like operator overloading is performed. Want to
On 02/24/2013 09:29 AM, Michael Torrie wrote:
On 02/24/2013 09:23 AM, Ethan Furman wrote:
On 02/24/2013 07:46 AM, piterrr.dolin...@gmail.com wrote:> Hi guys,
Question. Have this code
intX = 32 # decl + init int var
intX_asString = None # decl + init with
On Sun, 24 Feb 2013 13:09:56 -0500, Mitya Sirenef wrote:
> On 02/24/2013 12:29 PM, Michael Torrie wrote:
> > Another way to explain the double underscore methods is that they are
> > how things like operator overloading is performed. Want to make a
> > class that you can use the [index] notati
On 2013-02-23, Chris Angelico wrote:
> It's worth noting, though, that there are self-perpetuating aspects to
> it. I can happily distribute a .py file to a Linux audience, because
> many Linux distros come with a Python already installed, or at very
> least can grab one easily via the package ma
In article ,
Michael Torrie wrote:
> It's interesting to note that Windows NT sort of descends from VMS.
More than "sort of". Dave Cutler was the chief architect of both.
--
http://mail.python.org/mailman/listinfo/python-list
On 02/24/2013 12:29 PM, Michael Torrie wrote:
> I think he's maintaining existing code. It's unfortunate that his first
> exposure to python is code written by someone else in such a poor style,
> and in a way that definitely isn't pythonic. No wonder he's struggling
> to like python! Though I'
On 02/24/2013 10:37 AM, Dennis Lee Bieber wrote:
> Decided to look up the VAX/VMS scheme...
>
> """
> If you know the condition code for a message, you can use F$MESSAGE to
> translate the code to its associated message. For example:
> $ WRITE SYS$OUTPUT F$MESSAGE(%X0001)
> %SYSTEM-S-NOR
Hi!
The subject is a segment of a sentence which I copied from Python's
official homepage. In whole, it reads:
"The urlopen() and urlretrieve() functions can cause arbitrarily long
delays while waiting for a network connection to be set up. This means
that it is difficult to build an interacti
On Sun, 24 Feb 2013 07:46:07 -0800, piterrr.dolinski wrote:
> Hi guys,
>
> Question. Have this code
>
> intX = 32 # decl + init int var
> intX_asString = None # decl + init with NULL string var
>
> intX_asString = intX.__str__ ()# convert int to string
On Saturday, February 23, 2013 02:50:43 PM Rex Macey wrote:
> Here is one general and one specific question about creating GUIs using
> tkinter from a newbie. I have created a class in which to hold some data.
> I want to create a GUI to get the data from the user and store it in the
> object. B
1 - 100 of 122 matches
Mail list logo