On Mar 18, 3:28 am, Lee Harr miss...@hotmail.com wrote:
If you are a fan of turtle.py please give pynguin a try and let me
know what you think!
Not a 'fan' per se -- just a teacher who has occasionally tried turtle
to introduce programming.
(which was not completely smooth; Ive forgotten all
On Mar 16, 6:29 pm, Roy Smith r...@panix.com wrote:
In article 51440235$0$29965$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
UTF-32 is a *fixed width* storage mechanism where every code point takes
exactly four bytes. Since the entire
I dont usually bother about spelling/grammar etc. And I think it silly
to do so on a python list.
However with this question:
On Mar 14, 5:16 pm, olsr.ka...@gmail.com wrote:
how to couper all the obejcts in a canvas in an auther canvas?
obejcts is clearly objects
and auther is probably other
On Mar 15, 7:10 pm, SHIVDHWAJ PANDEY shivdh...@gmail.com wrote:
Hi,
I am new to this and wanted to know how to start python?
Which book,website, blog, etc.
http://docs.python.org/2/tutorial/
--
http://mail.python.org/mailman/listinfo/python-list
3.2 and 2.7 results on my desktop using Chris examples
(Hope I cut-pasted them correctly)
-
Welcome to the Emacs shell
~ $ python3
Python 3.2.3 (default, Feb 20 2013, 17:02:41)
[GCC 4.7.2] on linux2
Type help, copyright, credits or license for more information.
from
On Mar 16, 8:56 am, Mark Lawrence breamore...@yahoo.co.uk 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
morons such as myself how all the ECMAScript stuff relates to Python's
unicode
On Mar 16, 9:09 am, Chris Angelico ros...@gmail.com wrote:
On Sat, Mar 16, 2013 at 2:56 PM, Mark Lawrence breamore...@yahoo.co.uk
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 morons
On Mar 16, 9:12 am, Thomas 'PointedEars' Lahn pointede...@web.de
wrote:
You have still no clue what you are talking about. Get yourself informed at
least about the (deprecated/obsolete) “language” and the (standards-
compliant) “type” attribute of SCRIPT/“script” elements before you post on
On Mar 14, 11:47 am, Chris Angelico ros...@gmail.com wrote:
snipped
I expect that Python 3.2 will behave comparably to the 2.6 stats, but
I don't have 3.2s handy - can someone confirm please?
I have 3.2 but not 3.3. Can run it later today if no one does.
But better if someone with both on the
On Mar 13, 2:36 pm, jmfauth wxjmfa...@gmail.com wrote:
As a reply to rusi's
comment:http://groups.google.com/group/comp.lang.python/browse_thread/thread/...
From string creation to the itertools usage. A medley. Some timings.
Important:
The real/absolute values of these experiments are not
On Mar 13, 3:07 pm, rusi rustompm...@gmail.com wrote:
On Mar 13, 2:36 pm, jmfauth wxjmfa...@gmail.com wrote:
As a reply to rusi's
comment:http://groups.google.com/group/comp.lang.python/browse_thread/thread/...
From string creation to the itertools usage. A medley. Some timings
On Mar 13, 3:59 pm, Chris Angelico ros...@gmail.com wrote:
On Wed, Mar 13, 2013 at 9:11 PM, rusi rustompm...@gmail.com wrote:
Uhhh..
Making the subject line useful for all readers
I should have read this one before replying in the other thread.
jmf, I'd like to see evidence that there has
On Mar 11, 2:28 pm, jmfauth wxjmfa...@gmail.com wrote:
On 11 mar, 03:06, Terry Reedy tjre...@udel.edu wrote:
...
By teaching 'speed before correctness, this site promotes bad
programming habits and thinking (and the use of low-level but faster
languages).
...
This is exactly what
On Mar 9, 7:16 pm, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote:
Is there a way to see anserws to my posts via ThunderBird that doesn't hve
this formatting issue?
I had posted a suggestion to get back to 'old google groups' here.
Usually if you (can) switch to the old these problems vanish
On Mar 8, 9:50 am, rh richard_hubb...@lavabit.com wrote:
Choices are good.
Having one choice is a mess. And look back at history and current events
if you don't see that.
See http://www.perl.com/pub/1999/03/pm.html for how a real post-modern
hip language gives endless choice. Also called
On Mar 8, 10:47 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Wed, 06 Mar 2013 18:58:12 -0800, rusi wrote:
My questions:
1. Why is Ruby on Rails much more popular than Django?
Where there is choice there is no freedom
http://www.jiddu-krishnamurti.net/en/1954/1954
On Mar 7, 2:52 pm, Sven sven...@gmail.com wrote:
This thread reminds me of an article I read recently:
http://rubiken.com/blog/2013/02/11/web-dev-a-crazy-world.html
Ha Ha! Thanks for that.
Of course its exaggerated. But then hyperbole can tell a story that
logic cannot.
--
On Mar 8, 2:08 am, Russell E. Owen ro...@uw.edu wrote:
In article
3d9fe0b2-7931-4ab6-8929-235460729...@q9g2000pbf.googlegroups.com,
rusi rustompm...@gmail.com wrote:
On Mar 6, 11:03 pm, Jason Hsu jhsu802...@gmail.com wrote:
I'm currently in the process of learning Ruby on Rails
On Mar 2, 1:59 am, leonardo selmi l.se...@icloud.com wrote:
hi
is there anyone can suggest me a good book to learn python? i read many but
there is always
something unclear or examples which give me errors.
The following written assuming you are as new to programming generally
as to python
On Mar 6, 11:03 pm, Jason Hsu jhsu802...@gmail.com wrote:
I'm currently in the process of learning Ruby on Rails. I'm going through
the Rails for Zombies tutorial, and I'm seeing the power of Rails.
I still need to get a Ruby on Rails site up and running for the world to see.
(My first
On Mar 6, 11:03 pm, Jason Hsu jhsu802...@gmail.com wrote:
I'm currently in the process of learning Ruby on Rails. I'm going through
the Rails for Zombies tutorial, and I'm seeing the power of Rails.
I still need to get a Ruby on Rails site up and running for the world to see.
(My first
On Feb 22, 3:40 am, piterrr.dolin...@gmail.com wrote:
Thanks to all for quick relies.
Chris, you are (almost) spot on with the if blocks indentation. This is what
I do, and it has served me well for 15 years.
code
code
if (some condition)
{
code
code
}
code
On Feb 20, 2:20 pm, Chris Angelico ros...@gmail.com wrote:
On Wed, Feb 20, 2013 at 8:08 PM, Rui Maciel rui.mac...@gmail.com wrote:
rusi wrote:
Heh! I am reminded:
Some years ago a new reprint of Knuth's Art of Programming had on the
back cover something to the effect
On Feb 21, 9:04 am, Rita rmorgan...@gmail.com wrote:
Hello,
Here is what I am trying to do. (Currently, I am doing this in cron but i
need much more granularity). I am trying to run program every 20 secs and
loop forever. I have several of these types of processes, some should run
every 5
On Feb 20, 6:54 am, Michael Herman herma...@gmail.com wrote:
First - you can use Python in
Excel.http://www.python-excel.org/orhttps://www.datanitro.com/
Updated code:
import json
import urllib
import csv
url = http://bitcoincharts.com/t/markets.json;
response = urllib.urlopen(url);
On Feb 19, 7:18 am, alex23 wuwe...@gmail.com wrote:
On Feb 18, 3:51 pm, Rick Johnson rantingrickjohn...@gmail.com wrote:
I apologize for this doubling of my messages and i can assure you i
don't do this intentionally. Proper netiquette is very important to me.
These double posts are
On Feb 18, 5:19 pm, Jean-Michel Pichavant jeanmic...@sequans.com
wrote:
- Original Message -
Folks,
It seems that people have been sending threats and abuse to the
company
claiming a trademark on the name Python. And somebody, somewhere,
may
have launched a DDOS attack on
On Feb 9, 7:27 pm, Morten Engvoldsen mortene...@gmail.com wrote:
Hi Team,
I Have saved my output in .doc file and want to format the output with
*Start the File
Some data here
***End of File*
Can you let me
On Feb 8, 6:03 pm, gmspro gms...@yahoo.com wrote:
Hello all,
One said, Python is not programming language, rather scripting language, is
that true?
Thanks.
One said: English is the language spoken in England.
Another One said: English is the language internationally used for
commerce,
On Feb 6, 4:52 am, Banh banh0...@gmail.com wrote:
Hi,
I have a problem with learning Python. My code is really bad and I can't
solve many problems. I
really want to improve it. Do you know any website which helps me to learn
python effectively (for
beginners)? This is my first programming
On Feb 6, 5:58 pm, Andriy Kornatskyy andriy.kornats...@live.com
wrote:
The question of persistence implementation arise often. I found repository
pattern very valuable due to separation of concerns, mediate between domain
model and data source (mock, file, database, web service, etc).
The
- Original Message -
I need to pick up a language that would cover the Linux platform. I
use Powershell for a scripting language on the Windows side of
things. Very simple copy files script. Is this the best way to do
it?
Have you seen/checked http://pash.sourceforge.net/ ?
On Feb 5, 8:10 pm, Bas wegw...@gmail.com wrote:
Since all the functions I have to interface with (read and write of live
data, sending
commands, ...) are implemented in C, the solution will require writing both C
and python.
Standard embedding/extending is ok when the interface is 'thin' ie
On Feb 5, 11:38 pm, maiden129 sengokubasarafe...@gmail.com wrote:
Hi,
I'm trying to create this program that counts the occurrences of each digit
in a string which the user have to enter.
Here is my code:
s=input(Enter a string, eg(4856w23874): )
s=list(s)
Pythons 2.7 and later have dictionary comprehensions. So you can do
this:
{item: s.count(item) for item in set(s)}
{'a': 1, 'b': 1, '1': 2, '3': 1, '2': 2, '4': 1}
Which gives counts for all letters. To filter out the digit-counts
only:
digits=0123456789
{item: s.count(item) for
On Feb 6, 6:55 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
I would not hesitate to use Python, or some other high-level language like
Ruby, over bash for anything non-trivial that I cared about. It might not
be as terse and compact as a well-written bash script, but that's
On Feb 1, 2:59 pm, Stefan Behnel stefan...@behnel.de wrote:
wheelman...@gmail.com, 01.02.2013 05:16:
Are there any softwares like cheat engine and written in python
What's a cheat engine?
I'm guessing its this (in Ruby) required in Python:
http://cheat.errtheblog.com/
And, assuming it
On Feb 1, 2:08 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
wheelman...@gmail.com wrote:
Why there isn't any replys ? .
Three reasons:
1) It's only been a few hours. Maybe the people who know the answer haven't
read it yet.
2) When I try to read your first post, I get
On Jan 30, 7:55 am, Daniel W. Rouse Jr.
dwrous...@nethere.comNOSPAM wrote:
Or, can an anyone provide an example of
more than a three-line example of a tuple or dictionary?
Have you seen this byt the creator of python -- GvR?
http://www.python.org/doc/essays/graphs.html
I have recently started
On Jan 29, 6:22 pm, iMath redstone-c...@163.com wrote:
在 2013年1月29日星期二UTC+8下午9时21分16秒,iMath写道:
why [os.path.join(r'E:\Python', name) for name in []] returns [] ? please
explain it in detail !
[os.path.join(r'E:\Python', name) for name in []]
[]
[Small algebra lesson]
In algebra there
On Jan 25, 10:35 pm, Leonard, Arah arah.leon...@bruker-axs.com
wrote:
It's just a text file after all.
True indeed, let's not worry about trivial issues like indentation, mixing
tabs and spaces or whatever. Notepad anybody? :)
Hey, I didn't say Notepad was the *best* tool for the job,
On Jan 24, 2:43 pm, Hazard Seventyfour hseventyf...@gmail.com wrote:
Hello,
I new in this python and decided to learn more about it, so i can make an own
script :),
for all senior can you suggest me the best, friendly and easy use with nice
GUI editor for me, and have many a good features
On Jan 24, 3:31 pm, mikp...@gmail.com wrote:
Dear all,
I am asking for a design/strategy suggestion.
What I have to do is to write a Python application that will send MIDI
commands to an iPad application.
All I know is that the iPad application can be connected to an external Midi
deck
On Jan 23, 3:54 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
Steven D'Aprano wrote:
I *swear* I only sent it once.
Now Now Steven! Good boys dont swear.
Arrgggh, it's happened again. Sorry for the multiple posts folks...
Trying this time with a different news client.
On Jan 22, 8:59 pm, Ferrous Cranus nikos.gr...@gmail.com wrote:
I just need a way to CONVERT a string(absolute path) to a 4-digit unique
number with INT!!!
That's all i want!! But i cannot make it work :(
I just need a way to eat my soup with a screwdriver.
No I WONT use a spoon.
Im starving
On Jan 23, 7:50 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Tue, 22 Jan 2013 23:40:24 +, Steven D'Aprano wrote:
[snip content]
Holy crap! Sorry for the flood of duplicated posts. That was out of my
control, honest.
--
Steven
Now Now!
Considering that you've
On Jan 21, 5:55 pm, alex23 wuwe...@gmail.com wrote:
On Jan 21, 10:39 pm, Oscar Benjamin oscar.j.benja...@gmail.com
wrote:
This is a very old problem (still unsolved I
believe):http://en.wikipedia.org/wiki/Ship_of_Theseus
+1 internets for referencing my most favourite thought experiment
On Jan 21, 8:07 pm, Ferrous Cranus nikos.gr...@gmail.com wrote:
Τη Δευτέρα, 21 Ιανουαρίου 2013 9:20:15 π.μ. UTC+2, ο χρήστης Chris Angelico
έγραψε:
On Mon, Jan 21, 2013 at 6:08 PM, Ferrous Cranus nikos.gr...@gmail.com
wrote:
An .html page must retain its database counter value
On Jan 13, 12:08 pm, Mitya Sirenef msire...@lightbird.net wrote:
Sure: they play back a list of instructions on use of string methods and
list comprehensions along with demonstration in a mock-up of the
interpreter with a different display effect for commands typed into (and
printed out by)
On Jan 16, 6:51 pm, Ferrous Cranus nikos.gr...@gmail.com wrote:
When trying to open an html template within Python script i use a relative
path to say go one folder back and open index.html
f = open( '../' + page )
How to say the same thing in an absolute way by forcing Python to detect
On Dec 14, 6:13 pm, Dave Angel d...@davea.name wrote:
On 12/14/2012 01:56 AM, Devin Jeanpierre wrote:
On Fri, Dec 14, 2012 at 1:13 AM, rusi rustompm...@gmail.com wrote:
On Dec 14, 8:33 am, Dave Angel d...@davea.name wrote:
Do you know any one computer language thoroughly? Or just a little
On Dec 14, 8:33 am, Dave Angel d...@davea.name wrote:
Do you know any one computer language thoroughly? Or just a little of
many languages?
There is a quote by Bruce Lee to the effect:
I am not afraid of the man who knows 10,000 kicks
I am afraid of the man who has practised 1 kick 10,000
On Dec 14, 11:56 am, Devin Jeanpierre jeanpierr...@gmail.com wrote:
On Fri, Dec 14, 2012 at 1:13 AM, rusi rustompm...@gmail.com wrote:
On Dec 14, 8:33 am, Dave Angel d...@davea.name wrote:
Do you know any one computer language thoroughly? Or just a little of
many languages
On Dec 13, 5:18 am, Michael Torrie torr...@gmail.com wrote:
On 12/12/2012 04:40 PM, Mark Lawrence wrote:
Awesome!!! But what the is it???
Are you serious? You honestly don't know what one of the oldest, most
widely used piece of open source software it and what it does? Samba is
at
On Dec 13, 11:01 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Wed, 12 Dec 2012 21:23:47 -0800, Ramchandra Apte wrote:
Cheers.
Mark Lawrence.
haha. What does Cheers mean?
It is an exclamation expressing good wishes. In particular, good wishes
before drinking.
On Dec 13, 11:51 am, Cameron Simpson c...@zip.com.au wrote:
It looked good-natured, she thought; Still it had very long claws and a
great many teeth, so she felt it ought to be treated with respect.
heh!
If only we could respect without such coercion(s)
--
On Dec 10, 3:03 pm, Jean-Michel Pichavant jeanmic...@sequans.com
wrote:
- Original Message -
On Dec 7, 6:46 pm, Marco name.surn...@gmail.com wrote:
Hi all, do you think this code:
$ more myscript.py
for line in open('data.txt'):
result = sum(int(data) for data in
On Dec 7, 6:46 pm, Marco name.surn...@gmail.com wrote:
Hi all, do you think this code:
$ more myscript.py
for line in open('data.txt'):
result = sum(int(data) for data in line.split(';'))
print(result)
that sums the elements of the lines of this file:
$ more data.txt
On Dec 5, 7:36 am, Roy Smith r...@panix.com wrote:
In article 29c74a30-f017-44b5-8a3d-a3c0d6592...@googlegroups.com,
SherjilOzair sherjiloz...@gmail.com wrote:
Hello list,
When it comes to printing things while some computation is being done, there
are 2 extremes.
1. printing
On Nov 18, 6:32 pm, Artie Ziff artie.z...@gmail.com wrote:
Unfortunately, xml parsing fails due to angle brackets inside
description tags. In particular, xml.etree.ElementTree.parse()
aborts on '' inside xml data such as the following:
testname name=cron_test.sh
description
On Nov 18, 8:54 pm, rusi rustompm...@gmail.com wrote:
Start with cgi.escape perhaps?http://docs.python.org/2/library/cgi.html
This may be a better link for starters
http://wiki.python.org/moin/EscapingHtml
(Note the escaping xml at the bottom)
--
http://mail.python.org/mailman/listinfo/python
On Nov 16, 5:15 pm, chip9munk chip9munk[SSSpAm@gmail.com wrote:
ok, I've got it:http://docs.python.org/3.1/library/configparser.html
works like a charm!
Sorry for the unnecessary question. :/
Not an issue.
And there may be better options (allows nested sections)
On Nov 16, 7:08 pm, Roy Smith r...@panix.com wrote:
These days, if I was writing something that needed a config file and I
didn't want to do import settings for whatever reason, I would go with
YAML. It seems to give an attractive mix of:
* supporting complex data structures
* easy to for
On Nov 16, 2:29 am, ru...@yahoo.com wrote:
But of course, our genius doesn't keep any records
and the cases where he is wrong don't make as much
impression on his memory. Further, he doesn't bother
to check the headers on the non-crap posts. Even a
junior-high science student could see the
On Nov 14, 12:02 pm, ru...@yahoo.com wrote:
==
[*] Actually, now that I think about it, IIRC one can sign
up for python-list email, and go into the mailman settings
and disable mail delivery, allowing one to post to the list
via email yet read the list via GG, Gmane or whatever.
However,
On Nov 12, 12:09 pm, rusi rustompm...@gmail.com wrote:
This is a classic problem -- structure clash of parallel loops
rest snipped
Sorry wrong solution :D
The fidgetiness is entirely due to python not allowing C-style loops
like these:
while ((c=getchar()!= EOF) { ... }
Putting
On Nov 12, 9:09 pm, Steve Howell showel...@yahoo.com wrote:
On Nov 12, 7:21 am, rusi rustompm...@gmail.com wrote:
On Nov 12, 12:09 pm, rusi rustompm...@gmail.com wrote: This is a classic
problem -- structure clash of parallel loops
rest snipped
Sorry wrong solution :D
On Nov 11, 3:58 am, Roy Smith r...@panix.com wrote:
I'm trying to pull down tweets with one of the many twitter APIs. The
particular one I'm using (python-twitter), has a call:
data = api.GetSearch(term=foo, page=page)
The way it works, you start with page=1. It returns a list of tweets.
On Nov 9, 10:41 pm, Peng Yu pengyu...@gmail.com wrote:
I have to explicitly specify the modules I want to ignore. Is there a
way to ignore all the modules by default?
Is this your problem?
http://bugs.python.org/issue10685
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 9, 5:54 pm, Artie Ziff artie.z...@gmail.com wrote:
Hello,
I want to process XML-like data like this:
snipped
Edits were substituting '/' for '\' on the end tags, and adding the
following structure:
If thats all you want, you can try the following:
# obviously this should come from a
On Nov 9, 11:37 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Fri, 09 Nov 2012 17:07:09 +1100, Chris Angelico wrote:
On Fri, Nov 9, 2012 at 12:39 PM, Mark Lawrence breamore...@yahoo.co.uk
wrote:
On 07/11/2012 01:55, Steven D'Aprano wrote:
Who knows? Who cares?
On Nov 9, 4:12 am, Peng Yu pengyu...@gmail.com wrote:
Hi,
In bash, set -v will print the command executed. For example, the
following screen output shows that the echo command is printed
automatically. Is there a similar thing in python?
~/linux/test/bash/man/builtin/set/-v$ cat main.sh
On Nov 7, 5:26 am, MRAB pyt...@mrabarnett.plus.com wrote:
I prefer the term reference semantics.
Ha! That hits the nail on the head.
To go back to the OP:
On Nov 5, 11:28 am, Demian Brecht demianbre...@gmail.com wrote:
So, here I was thinking oh, this is a nice, easy way to initialize a 4D
On Nov 4, 4:14 pm, Jamie Paul Griffin ja...@kode5.net wrote:
/ ru...@yahoo.com wrote on Fri 2.Nov'12 at 11:39:10 -0700 /
(I also hope I haven't just been suckered by a troll
attempt, windows/unix is better then unix/windows being
an age-old means of trolling.)
No, i'm not a troll. I was
On Nov 5, 11:40 am, Chris Angelico ros...@gmail.com wrote:
On Mon, Nov 5, 2012 at 5:10 PM, rusi rustompm...@gmail.com wrote:
Among people who know me, I am a linux nerd: My sister scolded me
yesterday because I put files on her computer without spaces:
DoesAnyoneWriteLikeThis?!?!
My
On Oct 29, 8:20 pm, andrea crotti andrea.crott...@gmail.com wrote:
snipped
Any comments about this? What do you prefer and why?
Im not sure how what the 'prefer' is about -- your specific num
wrapper or is it about the general question of choosing mutable or
immutable types?
If the latter I
On Oct 31, 1:45 am, Neal Becker ndbeck...@gmail.com wrote:
rusi wrote:
On Oct 29, 8:20 pm, andrea crotti andrea.crott...@gmail.com wrote:
snipped
Any comments about this? What do you prefer and why?
Im not sure how what the 'prefer' is about -- your specific num
wrapper or is it about
On Oct 28, 5:49 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
It's sure as hell more beautiful and readable than assignment as an
expression.
If we are going to judge code on the ability of people to take a quick
glance and immediately understand it, then pretty much
On Oct 25, 7:56 pm, Charles Hixson charleshi...@earthlink.net wrote:
In Python3 is there any good way to count the number of on bits in an
integer (after an operation)?
Alternatively, is there any VERY light-weight implementation of a bit
set? I'd prefer to use integers, as I'm probably
On Oct 25, 8:57 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Fri, 26 Oct 2012 02:31:53 +1100, Chris Angelico wrote:
On Fri, Oct 26, 2012 at 2:25 AM, Christian Heimes christ...@python.org
wrote:
Simple, easy, faster than a Python loop but not very elegant:
On Oct 25, 9:30 pm, Chris Angelico ros...@gmail.com wrote:
On Fri, Oct 26, 2012 at 3:17 AM, rusi rustompm...@gmail.com wrote:
On Oct 25, 8:57 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
py min(t.repeat(number=1, repeat=7))
0.6819710731506348
py min(t.repeat
On Oct 23, 7:52 pm, Virgil Stokes v...@it.uu.se wrote:
I am working with some rather large data files (100GB) that contain time
series
data. The data (t_k,y(t_k)), k = 0,1,...,N are stored in ASCII format. I
perform
various types of processing on these data (e.g. moving median, moving
On 10/21/2012 11:33 AM, Vincent Davis wrote:
I am looking for a good way to get every pair from a string. For example,
input:
x = 'apple'
output
'ap'
'pp'
'pl'
'le'
Maybe zip before izip for a noob?
s=apple
[a+b for a,b in zip(s, s[1:])]
['ap', 'pp', 'pl', 'le']
--
On Oct 22, 9:19 pm, rusi rustompm...@gmail.com wrote:
On 10/21/2012 11:33 AM, Vincent Davis wrote:
I am looking for a good way to get every pair from a string. For example,
input:
x = 'apple'
output
'ap'
'pp'
'pl'
'le'
Maybe zip before izip for a noob?
s=apple
[a+b for a,b
On Oct 20, 8:35 am, Michael Torrie torr...@gmail.com wrote:
On 10/19/2012 06:43 PM, Mark Lawrence wrote:
Good morning/afternoon/evening all,
Is there any possibility that we could find a way to prevent the double
spaced rubbish that comes from G$ infiltrating this ng/ml? For example,
On Oct 20, 8:27 am, Tim Chase python.l...@tim.thechases.com wrote:
On 10/19/12 17:14, Steven D'Aprano wrote:
Code never *needs* to be long, because it can always be shortened.
I advocate one bit per line:
1
0
1
0
0
1
0
1
1
0
0
1
0
1
1
1
0
0
0
0
1
1
1
0
1
1
0
0
1
Dont know what your code does/tries to do. Anyway some points:
On Oct 19, 1:40 pm, inshu chauhan insidesh...@gmail.com wrote:
in this prog I have written a code to calculate teh centre of a given 3D
data..
but i want to calculate it for every 3 points not the whole data, but
instead of
On Oct 19, 6:24 pm, graham grah...@tectime.com wrote:
On 16/10/2012 12:29, graham wrote:
Downloaded and installed Python 2.7.3 for windows (an XP machine).
Entered the Python interactive interpreter/command line and typed the
following:
import feedparser
and I get the
On Oct 19, 6:58 pm, Tarek Ziadé ta...@ziade.org wrote:
On 10/19/12 12:22 PM, narasimha1...@gmail.com wrote:
yes but it is not only for one structure like above there will be many
sections like that
I'd use yaml or json then...
Maybe http://www.voidspace.org.uk/python/configobj.html ??
--
On Oct 18, 10:18 am, Zero Piraeus sche...@gmail.com wrote:
:
On 18 October 2012 00:36, rusi rustompm...@gmail.com wrote:
Unfortunately, I feel this whole discussion/thread has got derailed:
Zero you started this thread about aggressive behavior. It does not
seem to me
On Oct 18, 11:06 am, Zero Piraeus sche...@gmail.com wrote:
:
Okay, so, first thing vaguely Python-related that comes to mind [so
probably not even slightly original, but then that's not really the
point]:
What are people's preferred strategies for dealing with lines that go
over 79
On Oct 18, 11:27 am, David Hutto dwightdhu...@gmail.com wrote:
[BTW This was enunciated 2000 years ago by a clever chap: Love your
enemies; drive them crazy
That only works if they're not already insane.
Otherwise you're just prodding a cornered beast.
Usually but not necessarily
\ “When I get new information, I change my position. What, sir, |
`\ do you do with new information?” —John Maynard Keynes |
_o__) |
\ “Anyone who believes exponential growth can go on forever in a |
On Oct 17, 10:22 am, Terry Reedy tjre...@udel.edu wrote:
On 10/16/2012 9:54 PM, Kevin Anthony wrote:
I've been teaching myself list comprehension, and i've run across
something i'm not able to convert.
list comprehensions specifically abbreviate the code that they are
(essentially)
On Oct 17, 11:15 am, alex23 wuwe...@gmail.com wrote:
On Oct 17, 2:43 pm, rusi rustompm...@gmail.com wrote:
Let me try to restate alex without the barb.
Do you offer this service for hire? :)
Hmm now thats an idea…
Are you offering to hire? [Considering how many jobs Ive changed,
never know
On Oct 17, 5:33 pm, Dave Angel d...@davea.name wrote:
On 10/17/2012 12:43 AM, Kevin Anthony wrote: Is it not true that list
comprehension is much faster the the for loops?
If it is not the correct way of doing this, i appoligize.
Like i said, I'm learing list comprehension.
list
On Oct 17, 7:06 pm, rusi rustompm...@gmail.com wrote:
On Oct 17, 5:33 pm, Dave Angel d...@davea.name wrote:
On 10/17/2012 12:43 AM, Kevin Anthony wrote: Is it not true that list
comprehension is much faster the the for loops?
If it is not the correct way of doing this, i appoligize
On Oct 17, 7:37 pm, Dave Angel d...@davea.name wrote:
And I'd wager all the improvement is in the inner loop, the dot() function.
Sorry -- red herring!
Changing
def mm1(a,b): return [[sum(x*y for x,y in zip(ra,rb)) for rb in
zip(*b)] for ra in a]
to
def mm1(a,b): return [[sum([x*y for x,y
On Oct 18, 9:06 am, alex23 wuwe...@gmail.com wrote:
On Oct 18, 2:02 pm, Dwight Hutto dwightdhu...@gmail.com wrote:
[a public response to a private email]
I really don't appreciate you pushing public a *private email
exchange*, especially when it has nothing whatsoever to do with this
list.
On Oct 16, 7:55 pm, Demian Brecht demianbre...@gmail.com wrote:
I'm not sure whether or not this is a troll, but I'll bite.
Do trolls exist any more than pixies, elves, gnomes, unicorns?
Trolling posts of course do... IOW:
There's a small light somewhere deep down that says maybe this is just
501 - 600 of 927 matches
Mail list logo