On Sat, 15 Jun 2013 10:36:00 -0700, rusi wrote:
> With you as our spamming-guru, Onward! Sky is the limit!
If you're going to continue making unproductive, off-topic, inflammatory
posts that prolong these already excessively large threads, Nikos won't
be the only one kill-filed.
If you have no
On Sat, 15 Jun 2013 11:18:03 -0700, rusi wrote:
> At least two people -- Alex and Antoon -- have told you that by
> supporting Nikos, when everyone else wants him off list, you are part of
> the problem.
And others have publicly thanked me for giving useful answers to Nikos,
because they have le
On Sat, 15 Jun 2013 22:29:29 +0100, Mark Lawrence wrote:
> Your arrogance clearly has no bounds. This is a public forum and people
> can say what they like. You've wasted enough time as it is, so why
> don't you simply bugger off.
Congratulation. You have just entered an extremely exclusive clu
On Sun, 16 Jun 2013 09:09:37 +1000, Chris Angelico wrote:
> On Sun, Jun 16, 2013 at 3:47 AM, Steven D'Aprano
> wrote:
>> On Sat, 15 Jun 2013 19:25:21 +0200, Chris “Kwpolska” Warrick wrote:
>>> The source code seems to think otherwise:
>>
>> Mailman is not
On Sat, 15 Jun 2013 18:55:05 -0700, Tim Roberts wrote:
> Nick the Gr33k wrote:
>>
>>but i'm doing this all day long i just dont comprehend why it works this
>>way. it doesn't make any sense to me.
>
> It's just a rule you'll have to learn. The "and" and "or" operators in
> Python simply do not
Nikos,
Have you considered subscribing to this?
http://mail.python.org/mailman/listinfo/python-greece
Possibly some of these concepts will be easier for you to understand if
explained to you in your native language. Or you might be able to join a
local Users Group who can help you.
--
Ste
On Sun, 16 Jun 2013 14:13:13 +1000, Chris Angelico wrote:
> I didn't think there would be that much difference, tbh. Mainly, I'm
> just seeing cpython as not being 200MB of history, or so I'd thought.
> Pike has ~30K commits (based on 'git log --oneline|wc -l'); CPython has
> roughly 80K (based on
On Sun, 16 Jun 2013 11:28:00 +0300, Nick the Gr33k wrote:
> On 16/6/2013 8:06 πμ, Steven D'Aprano wrote:
>> Nikos,
>>
>> Have you considered subscribing to this?
>>
>> http://mail.python.org/mailman/listinfo/python-greece
[...]
> I prefer staying here
On Sun, 16 Jun 2013 10:51:31 +, Denis McMahon wrote:
> On Sun, 16 Jun 2013 12:59:00 +0300, Nick the Gr33k wrote:
>
>> Whats the difference of "interpreting " to "compiling" ?
>
> OK, I give up!
Actually, that's a more subtle question than most people think. Python,
for example, is a compil
On Sun, 16 Jun 2013 09:22:20 +, Denis McMahon wrote:
>>> Python:
>>>
>>> b = 6
>>> a = b
>>>
>>> In Python, this first puts the value 6 in in a memory location and
>>> points "b" at that memory location, then makes "a" point to the same
>>> memory location as "b" points to.
That may be true i
On Sun, 16 Jun 2013 12:06:08 -0700, C. N. Desrosiers wrote:
> Hi,
>
> I'm planning to buy a Macbook Air and I want to use it as a sort of
> alarm. I'd like to write a program that boots my computer at a specific
> time,
If your computer is turned off, how is the program supposed to run?
--
On Sun, 16 Jun 2013 12:31:59 -0700, Mark Janssen wrote:
Whats the difference of "interpreting " to "compiling" ?
>>>
>>> OK, I give up!
>>
>> Actually, that's a more subtle question than most people think. Python,
>> for example, is a compiled language. (What did you think the "c" in
>> ".pyc
On Sun, 16 Jun 2013 20:16:34 +0200, Antoon Pardon wrote:
> You are trying to get it both ways. On the one hand you try to argue
> that there are no boundaries
I have never, ever argued that there are no boundaries. I have repeatedly
made it clear to Nikos when I thought he was behaving improper
On Mon, 17 Jun 2013 08:17:48 +0300, Νίκος wrote:
[...]
>> The latter is false because the binding of "b" to the int 6 was broken
>> in order to bind b to the int 5.
>
> Very surprising.
> a and b was *references* to the same memory address, it was like a
> memory address having 2 names to be addr
On Mon, 17 Jun 2013 09:11:05 +0300, Νίκος wrote:
> everything work as expected but not the part when the counter of a
> filename gets increased when the file have been requested.
>
> I don't see how since:
>
> if filename:
> #update file counter
> cur.execute('''UPDATE files SET hits
On Mon, 17 Jun 2013 07:41:54 -0700, rurpy wrote:
> On 06/17/2013 01:23 AM, Chris Angelico wrote:
>> On Mon, Jun 17, 2013 at 3:04 PM, Ferrous Cranus
>> wrote:
>>> The only thing i'm feeling guilty is that instead of reading help
>>> files and PEP's which seem too technical for me, i prefer the liv
On Mon, 17 Jun 2013 14:34:57 +0300, Simpleton wrote:
> On 17/6/2013 9:51 πμ, Steven D'Aprano wrote:
>> Now, in languages like Python, Ruby, Java, and many others, there is no
>> table of memory addresses. Instead, there is a namespace, which is an
>> association betwee
On Mon, 17 Jun 2013 09:31:53 +0200, Antoon Pardon wrote:
> Op 16-06-13 22:04, Steven D'Aprano schreef:
>> On Sun, 16 Jun 2013 20:16:34 +0200, Antoon Pardon wrote:
>>
>>> You are trying to get it both ways. On the one hand you try to argue
>>> that there a
On Mon, 17 Jun 2013 09:31:18 -0700, sixtyfourbit wrote:
> I'm in the first chapter of Natural Language Processing with Python and
> am trying to run the example .dispersion_plot. I am using Python 2.7.4
> (Anaconda) on Mac OSX 10.8.
>
> When I load all of the necessary modules and try to create t
On Mon, 17 Jun 2013 19:39:16 +0300, Simpleton wrote:
> Hello again, something simple this time:
Have you read these links yet?
http://sscce.org/
http://www.catb.org/esr/faqs/smart-questions.html
Especially the first one. Until you read it, and follow it's advice, I
will not answer your ques
On Tue, 18 Jun 2013 02:26:39 +0300, Νίκος wrote:
> Στις 18/6/2013 2:09 πμ, ο/η Steven D'Aprano έγραψε:
>> {"a": "Hello world"}
>>
>> Do you see a memory location there? There is no memory location. There
>> is the name, "a", and the o
On Tue, 18 Jun 2013 00:41:53 +, Steven D'Aprano wrote:
> In Python 3.2 and older, the data will be either UTF-4 or UTF-8,
> selected when the Python compiler itself is compiled. In Python 3.3, the
> data will be stored in either Latin-1, UTF-4, or UTF-8, depending on the
>
On Mon, 17 Jun 2013 21:06:57 -0400, Dave Angel wrote:
> On 06/17/2013 08:41 PM, Steven D'Aprano wrote:
>>
>>
>>
>> In Python 3.2 and older, the data will be either UTF-4 or UTF-8,
>> selected when the Python compiler itself is compiled.
>
> I thi
On Tue, 18 Jun 2013 02:38:20 +, Steven D'Aprano wrote:
> On Tue, 18 Jun 2013 00:41:53 +, Steven D'Aprano wrote:
>
>> In Python 3.2 and older, the data will be either UTF-4 or UTF-8,
>> selected when the Python compiler itself is compiled. In Python 3.3,
&
On Tue, 18 Jun 2013 00:12:34 -0400, Dave Angel wrote:
> On 06/17/2013 10:42 PM, Steven D'Aprano wrote:
>> On Mon, 17 Jun 2013 21:06:57 -0400, Dave Angel wrote:
>>
>>> On 06/17/2013 08:41 PM, Steven D'Aprano wrote:
>>>>
>>>>
>>&
On Mon, 17 Jun 2013 23:39:10 -0700, Larry Hudson wrote:
> On 06/17/2013 08:50 AM, Simpleton wrote:
>> On 17/6/2013 2:58 μμ, Michael Torrie wrote:
>>
>> a = 5
>> b = a
>>
>> a <---> memory address
>> b <---> memory address
>>
>> I like to think a and b as references to the same memory address
>>
>
On Tue, 18 Jun 2013 11:49:36 +0300, Νίκος wrote:
> Στις 18/6/2013 9:39 πμ, ο/η Larry Hudson έγραψε:
>> Not quite: a and b _are_ memory addresses, At the same time, a and b
>> are references to the data (the objects) stored in those memory
>> locations.
>>
>> The distinction is probably more impo
On Tue, 18 Jun 2013 12:45:29 -0400, Roy Smith wrote:
> I've got a 170 MB file I want to search for lines that look like:
>
> [2010-10-20 16:47:50.339229 -04:00] INFO (6): songza.amie.history -
> ENQUEUEING: /listen/the-station-one
>
> This code runs in 1.3 seconds:
>
> -
On Tue, 18 Jun 2013 22:11:01 -0400, Dave Angel wrote:
> On 06/18/2013 09:51 PM, Steven D'Aprano wrote:
>
>
>>
>> Even if the regex engine is just as efficient at doing simple character
>> matching as `in`, and it probably isn't, your regex tries
On Tue, 18 Jun 2013 19:47:34 -0700, andrewblundon wrote:
> However, for one part of the program I'd like to be able to create a 3D
> model based on the user input. The model would be very basic consisting
> of a number of lines and objects. We have 3D models of each component
> within our CAD sy
On Tue, 18 Jun 2013 10:47:57 +0100, andrea crotti wrote:
> Using a CouchDB server we have a different database object potentially
> for every request.
>
> We already set that db in the request object to make it easy to pass it
> around form our django app, however it would be nice if I could set
On Wed, 19 Jun 2013 17:07:28 +1000, Chris Angelico wrote:
> On the contrary, stereotyping is "You are-a , therefore you
> will behave in ".
I don't think that's how stereotypes usually work.
"He wears a turban, therefore he's an Arab terrorist."
"He's wearing black, has pale skin, listens to t
On Wed, 19 Jun 2013 18:21:40 +1000, Chris Angelico wrote:
> You can't reference an object without
> somewhere having either a name or a literal to start it off.
True, but not necessarily a name bound to the object you are thinking of:
some_function()
gives you an object, but it's not a literal,
On Wed, 19 Jun 2013 12:40:15 -0600, Ian Kelly wrote:
> On the other hand, the flamers responding to the trolls are regular
> contributers to the list who presumably do care about keeping the list
> courteous, respectful, welcoming and enjoyable to participate in.
> Toward that end, I do not think
On Wed, 19 Jun 2013 12:17:35 -0700, Ahmed Abdulshafy wrote:
> I'm reading the Python.org tutorial right now, and I found this part
> rather strange and incomprehensible to me>
>
> Important warning: The default value is evaluated only once. This makes
> a difference when the default is a mutable
On Wed, 19 Jun 2013 23:16:51 -0600, Michael Torrie wrote:
> The real power and expressivity of Python comes from embracing the
> abstractions that Python provides to your advantage. There's a certain
> elegance and beauty that comes from such things, which I believe really
> comes from the elegan
On Wed, 19 Jun 2013 18:46:59 -0700, Rick Johnson wrote:
> On Thursday, June 13, 2013 2:11:08 AM UTC-5, Steven D'Aprano wrote:
>
>> Gah! That's twice I've screwed that up. Sorry about that!
>
> Yeah, and your difficulty explaining the Unicode implementation r
On Thu, 20 Jun 2013 09:19:48 -0400, Roy Smith wrote:
> In article
> <447dd1c6-1bb2-4276-a109-78d7a067b...@d8g2000pbe.googlegroups.com>,
> rusi wrote:
>
>> > > def f(a, L=[]):
>> > > L.append(a)
>> > > return L
>
>> Every language has gotchas. This is one of python's.
>
> One of our pr
On Thu, 20 Jun 2013 11:05:32 -0700, Rick Johnson wrote:
> On Thursday, June 20, 2013 10:38:34 AM UTC-5, Chris Angelico wrote:
>> Function defaults in Python, being implemented as attributes on the
>> function object, are very similar in nature to static variables in C.
>
> Oh wait a minute. i thi
On Thu, 20 Jun 2013 11:57:34 -0600, Ian Kelly wrote:
> Additionally, with late-binding semantics the default values would no
> longer be default *values*. They would be initialization code instead,
> which sort of flies in the face of the idea that late-binding would
> somehow be better for funct
On Thu, 20 Jun 2013 07:49:37 -0700, Rick Johnson wrote:
> When the subroutine is completed, all inputs and local variables are
> expected to be destroyed. If the programmer wants a return value, he
> need simply ask. Data persistence is not a function of subroutines!
> Finally, a subroutine should
On Thu, 20 Jun 2013 10:12:01 -0700, rusi wrote:
> Python (and all the other 'cool' languages) dont have gotchas because
> someone malevolently put them there.
> In most cases, the problem is seen too late and the cost of changing
> entrenched code too great.
> Or the problem is clear, the solution
On Thu, 20 Jun 2013 11:05:32 -0700, Rick Johnson wrote:
> Python functions are objects that take arguments, of which (the
> arguments) are then converted to attributes of the function object.
> Ah-Ha! Urm, but wait! We already have a method to define Objects. Heck,
> I can even create my own calla
On Thu, 20 Jun 2013 20:16:19 -0700, Rick Johnson wrote:
> On Thursday, June 20, 2013 7:57:28 PM UTC-5, Steven D'Aprano wrote:
>> On Thu, 20 Jun 2013 11:05:32 -0700, Rick Johnson wrote:
>> They [default argument values] have to be stored *somewhere*, and
>> Python c
On Fri, 21 Jun 2013 11:26:39 -0700, Rick Johnson wrote:
> You know, out of all these post, not one of you guys has presented a
> valid use-case that will give validity to the existence of this PyWart
LOL.
Okay, you're trolling. Time for another month in the kill-file.
*plonk*
--
Steven
--
h
On Fri, 21 Jun 2013 23:49:51 +0100, MRAB wrote:
> On 21/06/2013 21:44, Rick Johnson wrote:
[...]
>> Which in Python would be the "MutableArgumentWarning".
>>
>> *school-bell*
>>
> I notice that you've omitted any mention of how you'd know that the
> argument was mutable.
That's easy. Just call is
On Fri, 21 Jun 2013 17:48:54 -0400, Ray Cote wrote:
> Also remember when entering long lines of text that strings concatenate
> within parenthesis. So,
> ("a, b, c"
> "d, e, f"
> "g, h, i")
>
> Is the same as ("a, b, cd, e, fg, h, i")
Technically, you don't need the parentheses. You can also us
On Sat, 22 Jun 2013 05:07:59 +1000, Chris Angelico wrote:
> Oh! I know. Function argument defaults will now be restricted to
> int/float/tuple. That would do it, right? Nobody would be bothered by
> little restrictions like that, would they.
Alas, tuples won't do it. Fortunately, you can include
On Sun, 23 Jun 2013 02:20:56 +0100, MRAB wrote:
> One vs not-one isn't good enough. Some languages use the singular with
> any numbers ending in '1'. Some languages have singular, dual, and
> plural. Etc. It's surprising how inventive people can be! :-)
This is a good time to link to these intere
On Sat, 22 Jun 2013 19:39:30 -0700, christhecomic wrote:
> Writing simple program asking a question with the answer being
> "yes"...how do I allow the correct answer if user types Yes, yes, or
> YES?
Take the user's input, strip off any whitespace from the beginning and
end, then fold the case t
On Sat, 22 Jun 2013 19:58:38 -0700, Adam wrote:
> class FooBar(object):
> def __init__(self):
> ...
>
> Inheritance usually takes a class name to indicate which class is the
> 'parent' class. However, in the previous example, from a django book,
> the class actually takes an 'object'
On Sat, 22 Jun 2013 23:12:49 -0400, Roy Smith wrote:
> In article <51c66455$0$2$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
>> http://infiniteundo.com/post/25326999628/falsehoods-programmers-
believe-about-
>> time
>
> Number 2 on
On Sat, 22 Jun 2013 22:27:10 -0600, Ian Kelly wrote:
> On Sat, Jun 22, 2013 at 9:20 PM, Steven D'Aprano
> wrote:
>> * on the down side, automatic delegation of special double-underscore
>> methods like __getitem__ and __str__ doesn't work with new-style
>> clas
On Sun, 23 Jun 2013 08:51:41 -0700, wxjmfauth wrote:
> utf-8: how many bytes to hold an "a" in memory? one byte.
>
> flexible string representation: how many bytes to hold an "a" in memory?
> One byte? No, two. (Funny, it consumes more memory to hold an ascii char
> than ascii itself)
Incorrect.
On Sun, 23 Jun 2013 10:15:38 -0600, Ian Kelly wrote:
> If you're worried about efficiency, you can also explicitly name the
> superclass in order to call the method directly, like:
>
> A.__init__(self, arg)
Please don't. This is false economy. The time you save will be trivial,
the over
On Sat, 22 Jun 2013 23:40:53 -0600, Ian Kelly wrote:
> On Sat, Jun 22, 2013 at 11:23 PM, Steven D'Aprano
> wrote:
>> On Sat, 22 Jun 2013 22:27:10 -0600, Ian Kelly wrote:
>>> I actually consider that an up side. Sure it's inconvenient that you
>>> can
On Sun, 23 Jun 2013 11:18:41 -0600, Ian Kelly wrote:
> Incidentally, although super() is useful, it's not perfect, and this is
> one of my grievances with it: that a user can, based upon the name, draw
> an inaccurate assumption about what it does without reading or fully
> understanding the docum
On Sun, 23 Jun 2013 12:49:42 -0400, Roy Smith wrote:
> One thing I've never understood about Python 2.x's multiple inheritance
> (mostly because I almost never use it) is how you do something like
> this:
>
> class Base1(object):
>def __init__(self, foo):
> self.foo = foo
>
> class Bas
On Sun, 23 Jun 2013 12:04:35 -0600, Ian Kelly wrote:
> On Sun, Jun 23, 2013 at 11:36 AM, Steven D'Aprano
> wrote:
>> On Sun, 23 Jun 2013 11:18:41 -0600, Ian Kelly wrote:
>>
>>> Incidentally, although super() is useful, it's not perfect, and this
>>>
On Sun, 23 Jun 2013 16:18:35 -0700, christhecomic wrote:
> How do I bring users back to beginning of user/password question once
> they fail it? thx
Write a loop. If they don't fail (i.e. they get the password correct),
then break out of the loop.
--
Steven
--
http://mail.python.org/mailman/
On Sun, 23 Jun 2013 13:40:07 -0700, cutems93 wrote:
> Hello,
>
> I am new to python development and I want to know what kinds of tools
> people use for python development. I went to Python website and found
> several tools.
[snip list of a dozen tools]
> What else do I need?
You don't *need* an
On Sun, 23 Jun 2013 13:09:21 -0600, Ian Kelly wrote:
> On Sun, Jun 23, 2013 at 12:50 PM, Steven D'Aprano
> wrote:
>> What else would you call a function that does lookups on the current
>> object's superclasses?
>
> Well, as James Knight points out in the &q
On Sun, 23 Jun 2013 15:24:14 -0400, Roy Smith wrote:
> In article <51c74373$0$2$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>> What else would you call a function that does lookups on the current
>> object's superclasses?
>
> Wel
On Mon, 24 Jun 2013 02:53:06 +0100, Rotwang wrote:
> On 23/06/2013 18:29, Steven D'Aprano wrote:
>> On Sat, 22 Jun 2013 23:40:53 -0600, Ian Kelly wrote:
>>> [...]
>>>
>>> Can you elaborate or provide a link? I'm curious to know what other
>>
On Sun, 23 Jun 2013 21:38:33 -0400, Roy Smith wrote:
> In article <51c7a087$0$2$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
>> On Sun, 23 Jun 2013 15:24:14 -0400, Roy Smith wrote:
>>
>> > In article <51c74373$0$2$c3e8d
On Mon, 24 Jun 2013 08:58:23 -0700, Mark Janssen wrote:
>>> Mostly I'm saying that super() is badly named.
>>
>> What else would you call a function that does lookups on the current
>> object's superclasses?
>
> ^. You make a symbol for it. ^__init__(foo, bar)
If you want Perl, you can find it
On Tue, 25 Jun 2013 17:05:50 -0700, willlewis965 wrote:
> thanks man you answered my questions very clear, btw do you know of a
> place where I can learn python I know some tutorials but are 2.
> something and I'm using 3.3 and I've been told they are different.
Try here:
http://mail.python.org/
On Tue, 25 Jun 2013 16:19:08 -0700, Mark Janssen wrote:
> Well you've been spoiled by all the work that came before you. The
> issue now is not to go "back to the machine" so much as to tear down and
> build up again from raw materials, objects of more and more complexity
> where very complex "me
On Tue, 25 Jun 2013 12:39:53 -0400, jimjhb wrote:
> I just checked and MISRA-C 2012 now allows gotos in specific, limited
> circumstances. I think it was the MISRA-C 1998 standard that caused all
> this trouble. So if MISRA now allows goto, why not Python :)
[humour]
You can! Just use the
On Wed, 26 Jun 2013 16:24:56 +0100, Joshua Landau wrote:
> On 25 June 2013 22:48, Gene Heskett wrote:
>> On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine:
>
> I did not.
Unless there are two people called "Joshua Landau" with email address
, I'm afraid that you did.
Here's the email t
On Wed, 26 Jun 2013 13:14:44 -0700, Ethan Furman wrote:
> On 06/23/2013 11:50 AM, Steven D'Aprano wrote:
>> What else would you call a function that does lookups on the current
>> object's superclasses?
>
> Well, I would call it super(). Trouble is, that is not
On Wed, 26 Jun 2013 10:09:13 -0700, rusi wrote:
> On Wednesday, June 26, 2013 8:54:56 PM UTC+5:30, Joshua Landau wrote:
>> On 25 June 2013 22:48, Gene Heskett wrote:
>> > On Tuesday 25 June 2013 17:47:22 Joshua Landau did opine:
>>
>> I did not.
>
> I guess Joshua is saying that saying ≠ opinin
On Thu, 27 Jun 2013 01:34:34 -0700, Russel Walker wrote:
> The type() builtin according to python docs, returns a "type object".
> http://docs.python.org/2/library/types.html
>
> And in this module is bunch of what I assume are "type objects". Is this
> correct? http://docs.python.org/2/library/f
On Thu, 27 Jun 2013 12:02:22 -0400, Dave Angel wrote:
> On 06/27/2013 09:49 AM, Andrew Berg wrote:
>> On 2013.06.27 08:08, Roy Smith wrote:
>>> Can you give us a concrete example of what you're trying to do?
>> The actual code I've written so far isn't easily condensed into a short
>> simple snipp
On Fri, 28 Jun 2013 18:36:37 -0700, Ethan Furman wrote:
> On 06/27/2013 03:49 PM, Steven D'Aprano wrote:
>>
>> [rant]
>> I think it is lousy design for a framework like argparse to raise a
>> custom ArgumentError in one part of the code, only to catch it
>&g
On Sat, 29 Jun 2013 04:29:23 -0700, fobos3 wrote:
> Hi,
>
> I am trying to use a program called MeCab, which does syntax analysis on
> Japanese text. The problem I am having is that it returns a byte string
> and if I try to print it, it prints question marks for almost all
> characters. However,
On Sat, 29 Jun 2013 04:21:46 -0700, cts.private.yahoo wrote:
> Thank you. You reminded me of the (weak) workaround of using arrays
I think you mean lists, rather than arrays. Python does have an array
type, but it is much more restricted.
If you want an indirect reference to a value, the simp
On Sat, 29 Jun 2013 19:02:01 +0200, Antoon Pardon wrote:
> Op 29-06-13 16:02, Michael Torrie schreef:
>>
>> The real problem here is that you don't understand how python variables
>> work. And in fact, python does not have variables. It has names that
>> bind to objects.
>
> I don't understand
On Sat, 29 Jun 2013 11:37:55 -0700, cts.private.yahoo wrote:
> :) Thank you guys for saying what I was biting my tongue about (thanks
> everybody for the help, BTW!).
>
> This "python-think" stuff was starting to get on my nerves - but then it
> occurred to me that - although having many powerfu
On Sat, 29 Jun 2013 18:45:30 +, Steven D'Aprano wrote:
> Python require declarations for local names, but if it did it would
> probably use "local".
Oops, I meant *doesn't* require declarations. Sorry for the error.
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 29 Jun 2013 12:35:54 -0600, Michael Torrie wrote:
> Python's
> basic data types are immutable. At best we could say they are read-only
> variables.
Python's basic data types are not necessarily immutable. Lists and dicts
are not immutable. Being a high-level language, the idea of "primi
On Sat, 29 Jun 2013 12:20:45 -0700, cts.private.yahoo wrote:
> exactly that.
Exactly what? Who are you replying to? Your post has no context.
> Without wanting to analyze it in too much depth now, I
> would want a local keyword to allow me to know I was protecting my
> variables, and a way to
On Sat, 29 Jun 2013 19:13:47 +, Martin Schöön wrote:
> $PYTHONPATH points at both the code and the test directories.
>
> When I run blablabla_test.py it fails to import blablabla.py
What error message do you get?
> I have messed around for oven an hour and get nowhere. I have done
> unitt
On Sat, 29 Jun 2013 14:42:58 -0500, Tim Chase wrote:
> On 2013-06-29 19:19, Steven D'Aprano wrote:
>> Nobody ever asks why Python doesn't let you sort an int, or take the
>> square of a list...
>
> just to be ornery, you can sort an int:
>
>>&g
On Sun, 30 Jun 2013 01:56:25 -0700, rusi wrote:
[...]
> All of which adds up to making scoping/variables an arcane craft.
>
> Now having such passes is one thing. Defining the language in terms of
> them quite another...
I don't believe that Python's behaviour is defined in terms of the number
On Sun, 30 Jun 2013 16:06:35 +1000, Chris Angelico wrote:
> So, here's a challenge: Come up with something really simple, and write
> an insanely complicated - yet perfectly valid - way to achieve the same
> thing. Bonus points for horribly abusing Python's clean syntax in the
> process.
Here's a
On Sat, 29 Jun 2013 23:46:12 -0600, Ian Kelly wrote:
> On a related note, I think that generator functions should in some way
> be explicitly marked as such in the declaration, rather than needing to
> scan the entire function body for a yield statement to determine whether
> it's a generator or n
On Mon, 01 Jul 2013 09:45:52 +0100, Robert Kern wrote:
> On 2013-06-29 16:52, Joshua Landau wrote:
>> On 29 June 2013 15:30, Mark Lawrence wrote:
>>>
>>> On 29/06/2013 14:44, Dave Angel wrote:
Since you're using the arrogant and buggy GoogleGroups, this
http://wiki.python.org/moin/
On Mon, 01 Jul 2013 10:52:28 +0300, Νίκος wrote:
> All i did was asking for help for issues i couldn't solve. That what
> everybody would do if he couldn't help himself solve something.
[...]
> So shut your piehole and start proving yourself useful in this list. Or
> sod off.
> Preferably do the l
On Mon, 01 Jul 2013 16:28:52 +0300, Νίκος wrote:
> Στις 1/7/2013 3:43 μμ, ο/η Steven D'Aprano έγραψε:
[...]
>> The above of course assumes that I have not kill-filed you for
>> continuing to be abusive on-list.
>
> So, Steven you want me to sit tight and read all the
On Mon, 01 Jul 2013 15:08:18 +0200, Antoon Pardon wrote:
> Op 01-07-13 14:43, Steven D'Aprano schreef:
>
>> Νίκος, I am not going to wade through this long, long thread to see
>> what problem you are trying to solve today.
>
> Nikos is not trying to solve a problem
On Mon, 01 Jul 2013 14:38:50 -0700, rusi wrote:
> On Tuesday, July 2, 2013 1:24:30 AM UTC+5:30, Tobiah wrote:
>> > Are you familiar with absolute and relative imports:
>> > http://docs.python.org/release/2.5/whatsnew/pep-328.html
>>
>> Doesn't seem to work:
>> Python 2.7.3 (default, May 10 2012,
On Mon, 01 Jul 2013 20:36:29 +0100, Marcin Szamotulski wrote:
> Here is another example which I came across when playing with
> generators, the first function is actually quite useful, the second
> generator is the whole fun:
>
> from functools import wraps
> def init(func):
> """decorator wh
On Mon, 01 Jul 2013 20:42:48 +0200, Antoon Pardon wrote:
> How about the following comprimise. I'll get myself a second identity.
> Every respons I make to Nikos will be done with the same identity.
> Normal python exchanges will be done with the other. You can then simply
> killfile my identity t
On Mon, 01 Jul 2013 21:34:42 -0700, rusi wrote:
> 2. "I am killfiling you" is bullying behavior. It is worse than useless
> because a. The problem cases couldn't care a hoot b. Those who could
> contribute usefully are shut up c. The messengers are being shot as
> substitute for the culprits
I d
On Tue, 02 Jul 2013 10:43:03 -0700, subhabangalore wrote:
> I could not use BeautifulSoup as I did not find an .exe file.
I believe that BeautifulSoup is a pure-Python module, and so does not
have a .exe file. However, it does have good tutorials:
https://duckduckgo.com/html/?q=beautifulsoup+tu
On Tue, 02 Jul 2013 23:43:51 +0200, Surya Kasturi wrote:
> Hi all, this seems to be quite stupid question but I am "confused".. We
> set the initial value to 0, +1 for up-vote and -1 for down-vote! nice.
>
> I have a list of bool values True, False (True for up vote, False for
> down-vote).. subm
On Tue, 02 Jul 2013 14:58:18 +0100, Robert Kern wrote:
> On 2013-07-02 14:00, Chris “Kwpolska” Warrick wrote:
>> On Tue, Jul 2, 2013 at 2:39 PM, Νίκος wrote:
>
>>> Please suggest an editor that has built in rsync ability so to
>>> immediately upload my cgi-scripts when i hit save in the text edi
On Tue, 02 Jul 2013 12:53:53 +, Denis McMahon wrote:
> On Tue, 02 Jul 2013 10:16:37 +0200, Antoon Pardon wrote:
>
>> I would like people to have that in mind when they try to tell others
>> to just ignore the behaviour that bothers them. Maybe it would help
>> them to be a bit more patient to
On Tue, 02 Jul 2013 16:51:38 +0100, Steve Simmons wrote:
> Erm,
>
> It probably isn't the best time to start this post but I was
> wondering...
>
> Does this list have a code of conduct or a netiqeutte (sp?)
> statement/requirement?
>
> If not, should it?
I *knew* this would be raised. You are
201 - 300 of 13783 matches
Mail list logo