On Sun, Feb 10, 2013 at 4:10 PM, Steven D'Aprano
wrote:
> Mark Janssen wrote:
>
>> A unified data model as I define it, specifies a canonical atomic unit
>> (like the unit integer) and an abstract grouping construct in which
>> these atomic units can be arranged.
On 11/02/2013 02:05, alex23 wrote:
I highly recommend not reading up on any
modern physics as there'll be plenty there that just makes you angry.
Spoil sport. Fancy not wanting rr's views on string theory :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
could come
up with.
import bar as foo
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 11/02/2013 07:24, Chris Angelico wrote:
On Mon, Feb 11, 2013 at 6:19 PM, Mark Lawrence wrote:
On 11/02/2013 02:05, alex23 wrote:
I highly recommend not reading up on any
modern physics as there'll be plenty there that just makes you angry.
Spoil sport. Fancy not wanting rr'
he weekends.
That's a funny quote, besides its questionable accuracy, but your
initial sentences point out that having a unified data model might
actually be of use. A unified data model does for data what lexical
definitions and parsers do for code: organize it in a well-defined
way that is a *complete* specification for all possible data
organizations. (But see my other posts about that ;^)
Mark
Tacoma, Wa
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Feb 11, 2013 at 8:55 PM, Rick Johnson
wrote:
> On Monday, February 11, 2013 7:27:30 AM UTC-6, Chris Angelico wrote:
>
>> So...
>> flatten([None, 23, [1, 2, 3], (2, 3), ["spam", "ham"]])
>>
>> would return
>>
>> [None, 23, 1, 2, 3, (2, 3), "spam", "ham"]
>>
>> I think that's even more unexp
uld be one-- and preferably only one --obvious way to do it."
BROKEN BROKEN BROKEN!
"If the implementation is hard to explain, it's a bad idea."
BROKEN!
"If the implementation is easy to explain, it may be a good idea."
REINFORCED BY BAD EXAMPLE
jmf and rr in combination reminded me of this. I hope you all get my
drift :)
http://www.cc.gatech.edu/fac/Spencer.Rugaber/poems/love.txt
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
See the python extension called "Vigil": https://github.com/munificent/vigil
.
mark
--
http://mail.python.org/mailman/listinfo/python-list
ked at regular expressions and string functions, so far no luck.
Custom function required?
Thank you.
- Spoog98
More likely a visit to the opticians :) See
http://docs.python.org/2/library/stdtypes.html#string-methods for the
find and index methods.
--
Cheers.
Mark Lawrence
--
http://ma
on 3.
col = {"1": ((0,1,2,3),), "2": ((0,1,2,3),(2,3,4,5))}
for key,tuples in col.items():
for t in tuples:
print(key,t)
A slight aside, your keys look more like strings to me than numbers :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 19/02/2013 01:38, Jon Reyes wrote:
Hi Mark. Well, doesn't iteritems() work the same?
It's iteritems for Python 2, items for Python 3.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
ilable to get your answer. Why not use one before
posting your question?
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
test.arff", "w") as w:
IOError: [Errno 22] invalid mode ('w') or filename:
'C:\\Users\\inshu.chauhan\\Desktop\test.arff'
Why my programme is not working ?? :(
Thanks in Advance !!
Use a raw string for the output file name or forward instead of back
slashes. Exp
n\\Desktop\\test.arff"
++
Thomas
Yuck :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
actually set to? You can find out by running python
interactively, then
import os
os.environ['PYTHONPATH']
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 19/02/2013 16:57, [email protected] wrote:
What is PYTHONPATH actually set to? You can find out by running python
interactively, then
i dont know. how do i run pythoin interactively?
Type python at a command prompt :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org
ht find something, if not you'll have to write your
own or do without.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
Today was the first I've heard about it, can anyone shed any light as
documentation appears to be rather sparse?
https://crate.io/
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
t's still
> 2013. On quora, they say that you need to code for it to actually do things.
> Could someone who is good at it rank these sources (or provide a good one)
> on how well they solve the problem?
Sorry, I'm not familiar with those sources, but I can tell that for
tackling r
Sorry, I gave you the wrong book (a different Lutz book). The correct
title is _Programming Python_, by Mark Lutz. It's like 1600 pages and
is application focused.
Cheers!
mark
--
http://mail.python.org/mailman/listinfo/python-list
something like.
c:\Users\Mark>python
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32
bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import datetime
>&g
as it is. I
will see how it goes.
Pete
Perhaps look at code in the standard library to get a feel for things?
This should help you overcome OCD, i.e. Obsessive C Disorder :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
ython implementation of cron which can schedule tasks
(functions) from standard cron expressions or python objects."
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
yet.
Are there other parsers you have used for complete languages ?
Thank you,
Timothy Madden
http://nedbatchelder.com/text/python-parsers.html
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
#x27;s value proposition.
-m
[*] of course, future is hard to predict, especially when it hasn't yet
happened.
Seems like as good a time as any to throw this into the pot
http://www.gossamer-threads.com/lists/python/python/129650?do=post_view_threaded
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
Gauld provided on the tutor mailing
list.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
+ t.second / 86400.0
but that's really ugly. Is there no cleaner way to do this conversion?
IIRC you needn't bother, matplotlib will do all the conversions for you.
In the highly likely case that I'm wrong this should help
http://matplotlib.org/api/dates_api.html#mo
cancelled ?
Postponed see http://comments.gmane.org/gmane.comp.python.devel/137017
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
/issue16061 for work being done to handle
edge cases.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
is the lack of a switch/case structure. This has
to be done with a less convenient extended if/elif/.../else structure.
Or a dict, there are umpteen recipes showing how to do this.
Peter
-=- Larry -=-
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 22/02/2013 21:37, [email protected] wrote:
if (some statement):# short form
rather than
if (some statement == true):# long form
What all those ugly brackets are for?
Peter
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 24/02/2013 19:40, [email protected] 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
tes the downside of the Python philosophy of "There should be
only one obvious way to do things". If that one obvious way has a fatal bug, you're
pretty much SOL.
Misquoted as always. I guess that some day someone will quote it correctly.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
g our code,
unlike those who use statically typed languages which work perfectly
once they've been compiled.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
27;
100 loops, best of 3: 0.473 usec per loop
c:\Users\Mark\MyPython>python
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32
bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
&g
don't think so at all. I think the python docs are quite well organized.
Who googles for python knowledge when you can just go to the official site
and use the doc search?
Mark
--
http://mail.python.org/mailman/listinfo/python-list
warning or explanation.)
Another response to the blog post, by one of the core developers:
http://blog.briancurtin.com/posts/why-i-dont-feel-so-bad.html
Not really when we've got world leading experts to help us out
http://xahlee.info/perl-python/python_doc.html :) * sys.maxint
--
Cheers
[0.11000708521282831, 0.0994753634273593, 0.09901023634051853]
jmf
Haven't I seen you at the airport throwing bread crumbs to the
helicoptors, as clearly that's just how stupid you are?
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
topic that
I have ever seen...
To me, this is a lying troll rant worth less than most of RantingRick's
posts.
Rather making his point, aren't you?
[...]
No.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
3.X ?
Thanks,
Helmut.
Nope please see
http://mail.python.org/pipermail/python-dev/2012-February/116790.html
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
suits
like day jobs or leisure activities. The colours will be raised outside
of RR's home at 05:00 Saturday 02/03/2013.
For more data please contact RR directly, not me.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 01/03/2013 16:23, Jaiky wrote:
it is running in view..
When replying can you please ensure we have the complete context,
otherwise we have to spend time looking, thanks.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
much bigger manual, for most other
commands.
OSError will cover a wide swath of possible exceptions here.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 02/03/2013 21:47, [email protected] wrote:
that code and other mousewheel code arent working on my pc
running windows 7 32bit python 2.6 and Mouse USB
whats the solution ?
Post something that we can read, or do I give up on Thunderbird? :)
--
Cheers.
Mark Lawrence
--
http
at.
*dives for cover*
ChrisA
It's unlikely to happen but the UK should bring back the death penalty
when it gets that bad :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
g the print statement/function.
4) Not taking any notice of what people tell you.
5) Not showing what you expect to happen and what actually happens.
6) You're not doing six wrong.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 05/03/2013 17:11, Νίκος Γκρ33κ wrote:
Any ideas on hopw to embed some html data at the end of each python script?
Write some code.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
show=stats";> %d
'''
''' % data[0]
template = htmldata + counter
print ( template )
=
But still doens't embed co
on
You'll be delighted to know that everybody will have to sign a
contributor agreement if they're supplying a patch file on the bug
tracker, see
http://blog.python.org/2013/03/introducing-electronic-contributor.html
and http://mail.python.org/pipermail/python-dev/2013-March/1245
O files (URL, host,
lastvisit) VALUES (%s, %s, %s)''', (filename, host, date) )
except MySQLdb.Error, e:
print ( "Query Error: ",
sys.exc_info()[1].excepinfo()[2] )
==
Thank you.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
package, Python version and OS, plus give us a code
sample, what you expect to see and what actually happens.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
and MI6. Note however that
it's difficult to hack some of these people as of course they don't
actually exist :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
s to knowing very little about *nix commands, but I believe the
second command referenced above does something like delete everything on
your hard drive. Not that this is a problem as your improved security
ensures that this can't happen, doesn't it?
--
Cheers.
Mark Lawrence
--
h
d section 2 of this
http://wiki.python.org/moin/GoogleGroupsPython to prevent all of your
posts having an excessive number of quoted blank lines.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
slagging six years ago when first posted, what's changed to
make it worth evaluating?
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
representation
does!
And away from technical aspects, you even succeeded to
somehow lose unicode compliance.
jmf
Please stick to something you know about such as sexual self abuse.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
rst case performance O(n log n), best case O(n) and
average case O(n log n). Please don't shoot the messenger :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
e group as they're
linked, select one or the other.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
ython is getting there with its so called Phoenix see
http://wxpython.org/Phoenix/snapshot-builds/
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
, easily done I know.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 16/03/2013 04:35, rusi wrote:
On Mar 16, 9:09 am, Chris Angelico wrote:
On Sat, Mar 16, 2013 at 2:56 PM, Mark Lawrence wrote:
On 16/03/2013 02:44, Thomas 'PointedEars' Lahn wrote:
Chris Angelico wrote:
Thomas and Chris, would the two of you be kind enough to explain to m
t indent_level() = 4
second indent_level() = 8
But hopefully it's a start.
Mark
-Original Message-
From: Python-list
[mailto:[email protected]] On Behalf Of
Peng Yu
Sent: Sunday, March 17, 2013 12:53 AM
To: [email protected]
Subject: How t
e(15)
pprint.pprint(d)
Try writing a for loop that prints one record per line.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
ive things from outside
of it. Things it can't handle (a string sent to an int) just have to
be dropped to some other space, much like stderr does within the O.S.
There are probably many other very interesting examples, but the key
idea I'm working on (as noted in other messages), is a sor
On Sun, Mar 17, 2013 at 9:26 PM, Mark Janssen wrote:
> Continuing on this thread, there would be a new bunch of behaviors to
> be defined. Since "everything is an object", there can now be a
> standard way to define the *next* common abstraction of "every object
> i
ft is that by enforcing a syntax that moves away from invoking
methods and move to message passing between objects, you're
automatically enforcing a more modular approach.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
> Ian Cordasco wrote:
>>
>> On Sun, Mar 17, 2013 at 11:53 PM, Mark Janssen
>> wrote:
>>
>>> Hello,
>>>
>>> I just posted an answers on quora.com about OOP (http://qr.ae/TM1Vb)
>>> and wanted to engage the python community on the
C++ decided to overload the existing operators to mean
> reading into and writing out of a stream doesn't mean it's a good
> idea.
You're right, perhaps there's a better set of symbols that suggest
"moving data".
Mark
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Mar 18, 2013 at 12:06 PM, Georg Brandl wrote:
> Am 18.03.2013 05:26, schrieb Mark Janssen:
>> Continuing on this thread, there would be a new bunch of behaviors to
>> be defined. Since "everything is an object", there can now be a
>> standard way to defin
e whether they become
> friends or dinner.
You're model of computer programming is very alien to me. So I don't
think it will be productive to try to convince you of what I'm
suggesting, but feel free to continue...
Mark
--
http://mail.python.org/mailman/listinfo/python-list
On 18/03/2013 23:51, eli m wrote:
Any other ideas?
How about coming up with a new message passing syntax for objects? I
understand from recent postings that this should be fairly easy :)
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
I'm making, and it's significant because other
programmers can't see other's mental models.
mark
--
http://mail.python.org/mailman/listinfo/python-list
wrong direction as many people found when
programmers started making vast hierarchies of objects to try to categorize
reality (Suburu inherits from Car inherits from Vehicle inherits
from.). So we went the wrong direction.
What's to replace it?
There was an interesting discussion on comp.
weather is sunny today "
raw.split()
['the', 'weather', 'is', 'sunny', 'today']
But how do I do it using join() ?? Thanks
' '.join(raw.split())
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
-mini-
language>
and a list comprehension would streamline things further
t=[round(x*1.0/60),4 for x in range(1440)] #compatible with V2.7 & V3.0)
Really?
c:\Users\Mark\Python>python
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32
bit (Intel)] on win3
this
http://wiki.python.org/moin/GoogleGroupsPython
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
If you are specific about what you tried and what went wrong
you are far more likely to get answers that will take you forward.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
find('a')")
[0.44333188136533863, 0.4232506078969891, 0.4225164843046514]
jmf
Are you saying that to be compliant a unicode implementation has to
perform within given time bounds?
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
at
existed in Python prior to version 3.3 is simply not an option.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
laining why they are wrong, except arguing
the flexible string representation exists!
Sheer unadultered crap. Was your education at the Dr Goebbels Institute?
jmf
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 24/03/2013 15:48, Chris Angelico wrote:
On Mon, Mar 25, 2013 at 2:35 AM, yahya Kacem wrote:
file named multipli:
and file naled test:
from multipli import table
Try naming it multipli.py
ChrisA
Before or after fixing the infinite loop? :)
--
Cheers.
Mark Lawrence
--
http
rs I've felt it was wrong that people apologised for their
poor English. Having read the above link I feel compelled to state,
please do not apologise for your poor English.
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
d it?
Please read this as it helps prevent the bill from my optician soaring
http://wiki.python.org/moin/GoogleGroupsPython
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
/moin/BeginnersGuide ?
--
Cheers.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
t, userName = argv
ValueError: need more than 1 value to unpack
what can i do?
thanks!
Write some error handling to allow for the script being run without the
user name.
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
oogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 26/03/2013 21:14, Chris Angelico wrote:
On Wed, Mar 27, 2013 at 8:08 AM, Grant Edwards wrote:
On 2013-03-26, Mark Lawrence wrote:
On 26/03/2013 20:44, jmfauth wrote:
A character is not an integer (short form).
So?
A character is not an integer.
jmf
But you are an idiot.
I
org/3/library/stdtypes.html#range and
http://docs.python.org/3/library/functions.html#reversed
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 27/03/2013 00:00, Ned Deily wrote:
In article ,
Mark Lawrence wrote:
But you are an idiot.
I repeat the friendly reminder I posted a few weeks ago and I'll be a
little less oblique: please avoid gratuitous personal attacks here. It
reflects badly on the group and especially on
On 27/03/2013 01:31, Ned Deily wrote:
In article ,
Mark Lawrence wrote:
On 27/03/2013 00:00, Ned Deily wrote:
[...]
I repeat the friendly reminder I posted a few weeks ago and I'll be a
little less oblique: please avoid gratuitous personal attacks here. It
reflects badly on the grou
7;re a tonic as I've just clawed my way out
of bed at 12:00 GMT having slept for 15 hours.
Once the PEP393 unicode debacle has been sorted, does anyone have a cure
for Chronic Fatigue Syndrome? :)
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/Googl
On 28/03/2013 18:37, Νίκος Γκρ33κ wrote:
Will someone help me out here please?
I suggest you take a course in diplomacy, but not one given by me :)
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.pytho
Instrument For the Transplantation of Dirt
(Is an antique Steam Shovel ever a Steam Spade?)
Surely you can spade a lot more things than dirt?
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/ma
#x27;re using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
to use a for loop.
Thanks,
Eric
Use the builtin zip function?
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
f.close()"
But it doesn't have the format I want. Can you help?
Thanks!
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
x27;z'")
[0.6362570846925735, 0.6159128762502917, 0.6200501673623791]
(Just an opinion)
jmf
I'm feeling very sorry for this horse, it's been flogged so often it's
down to bare bones.
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
e:
>
> ['1899 Horsey Horseless', '1909 Ford Model T', '1911 Overland OctoAuto',
> '2003 Hummer H2', '2004 Chevy SSR']
>
> Any help would be appreciated!
>
>
As long as your data is consistently ordered, just use list inde
l to mktime, 12 open round brackets to 14 close if I've
counted correctly.
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
3701 - 3800 of 5832 matches
Mail list logo