Jeffrey Schwab wrote:
> Max wrote:
> > I was just thinking perhaps we should create some kind of collection of
> > bits of "impressive" code like this.
>
> Do you mean something like the ASPN Cookbooks?
>
> http://aspn.activestate.com/ASPN/Cookbook/
>
repositories, indexes and search engine
Franz Steinhaeusler wrote:
> Hello, I need a regularexpression, which trims trailing whitespaces.
>
> While with unix line endings, it works;
> but not with Window (Dos) CRLF's:
>
> >>> import re
> >>> retrailingwhitespace = re.compile('(?<=\S)[ \t]+$', re.MULTILINE)
>
> 1) Windows
> >>> r="erewr
gene tani wrote:
> Franz Steinhaeusler wrote:
> >
> > Who can help me (regular expression, which works for both cases).
>
> universal newlines:
> http://www.python.org/doc/2.3.3/whatsnew/node7.html
> http://mail.python.org/pipermail/python-list/2006-February/324410.ht
[EMAIL PROTECTED] wrote:
> I am a newbie to Python. I am mainly using Eric as the IDE for coding.
> Also, using VIM and gedit sometimes.
>
> I had this wierd problem of indentation. My code was 100% right but it
> wont run because indentation was not right. I checked time and again
> but still no
Terry Hancock wrote:
>
> This sounds like an article crying out to be written,
> "(Learning) Design Patterns with Python".
>
> Has it been written already?
>
> Cheers,
> Terry
>
> --
> Terry Hancock ([EMAIL PROTECTED])
> Anansi Spaceworks http://www.AnansiSpaceworks.com
There's a couple Alex M sl
Jay Parlar wrote:
>
> All that looks fantastic, and I'd forgotten there was a paper on
> Shedskin.
>
> Thanks a bunch,
> Jay P.
lots of spirited discussion at artima
http://www.artima.com/forums/flat.jsp?forum=106&thread=7590
http://c2.com/cgi/wiki?DuckTyping
http://lambda-the-ultimate.org/node/
Richard Blackwood wrote:
> Hello all. I have a few questions about simulation programming. One, do
> all programmers know to how to code a simulation? By simulation I mean a
> model of real world relationships (i.e. like Civilization which is a
> simulation of ruling nations through various histor
[EMAIL PROTECTED] wrote:
> i am SURE i am using the wrong terminology...
>
> but what i would like to do is something like this:
>
> pageContent='''
> {toc}
> h1. Header Section
> h2. Date:
> {metadata:date}'''+date+'''{metatdata}
> h2. Author:
> {metadata:author}Len Sweet{metadata}
> h1.
Pitmairen wrote:
> I want to make a program that get info from a website and prints it out
> in a txt file.
>
> I made this:
>
> import urllib
> f = urllib.urlopen("http://www.imdb.com/title/tt0407304/";)
> s = f.read()
> k = open("test.txt","w")
> k.write(s)
> k.close()
> f.close()
>
> That saves
Pitmairen wrote:
> I want to make a program that get info from a website and prints it out
> in a txt file.
>
> I made this:
>
> import urllib
> f = urllib.urlopen("http://www.imdb.com/title/tt0407304/";)
path of even less resistance
http://imdbpy.sourceforge.net/
--
http://mail.python.org/mail
Chapter 5, Python in Nutshell: concise explanations of everythin' you
need to know about inheritance, instantiation, method resolution,
namespaces, class/instance methods, getting under the hood with special
methods, whatever. I couldn't code without it:
http://www.oreilly.com/catalog/pythonian/
hmm, there's lots of ways, huh? you can use itertools.zip instead of
builtin zip, or do:
map(None, list1, list2)
, which will pad the shorter one to match the longer one.
--
http://mail.python.org/mailman/listinfo/python-list
The beautiful brand new cookbook2 has "Fuzzy parsing of Dates" using
dateutil.parser, which you run once you have a decent guess at locale
(page 127 of cookbook)
John Roth wrote:
> "Thomas W" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I'm developing a web-application where t
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303279
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/347689
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303060
OR: collections.deque:
http://python.org/doc/2.4/lib/deque-recipes.html
flamesrock wrote:
> hmmm..that m
#include canonical design pattern advice
longjmp(Borders or other_big_chain_bookstore)
opt1=fopen("Oreilly's Head first design pattern","r")
opt2=fopen("design patterns book by Shalloway and trott (i think that's
their names)","r")
another=poll("any other intro to DP books that people like?")
or Norvig's IAQ:
http://www.norvig.com/python-iaq.html
--
http://mail.python.org/mailman/listinfo/python-list
Sounds like itertools.groupby() is what you're looking for, just sort
your sequence on the grouping func that you will pass as 2nd arg to
groupby(), before you pass the sequence to groupby()
http://www.python.org/doc/2.4/whatsnew/node13.html
http://www.python.org/dev/doc/devel/lib/itertools-functi
On May 6, 6:26 am, "Martin P. Hellwig" <[EMAIL PROTECTED]> wrote:
> Dustan wrote:
> > On May 6, 8:20 am, Steven D'Aprano
> > <[EMAIL PROTECTED]> wrote:
> >> On Sun, 06 May 2007 04:53:23 -0700, Dustan wrote:
> >>> SPAM!
> >>> SPAM!
> >>> SPAM!
> >>> SPAM!
> >>> SPAM!
> >>> SPAM!
> >>> SPAM!
> >>> SP
On Apr 6, 4:52 pm, "Jack" <[EMAIL PROTECTED]> wrote:
> Since the full installation of Python (from either the standard installer or
> ActiveState installer) is too big for my intended use, I'd like to build a
> custom distribution of Python for Windows platform, omitting some lib files,
> such as a
On Apr 10, 1:36 am, Passer By <[EMAIL PROTECTED]> wrote:
> Has any created or not of examples of random sentence generators using
> n-gram models (or other models might be interesting).
>
> I know of one example from a course at MIT, but besides that nothing.
>
> Any help would be great.
Markov ch
aum wrote:
>
> Makes me wonder, just out of curiosity - are there any universities
> actually teaching python (in anything bigger than a small elective
> module), or are they all still owned by Java, C++, C# and Visual Basic?
>
like NLTK, maybe?
http://www.ldc.upenn.edu/sb/home/papers/nltk.pdf
[EMAIL PROTECTED] wrote:
> hi
> i was looking at this :
> http://www.python.org/doc/essays/comparisons.html
> on comparisons of python and other languages? are there any updates to
> this doc? or is there
> other reliable source for such comparison elsewhere? thanks
lots of blogs out there, check
Ant wrote:
> Take a look at the newgroup archives over the last week or two - there
> seem to have been a glut of people coming from Java to Python and
> asking the same sort of questions. There were some links to a bunch of
> Python 'gotcha' pages which will be useful.
>
Here's a few gotchas whi
Just call me James wrote:
> Hi,
>
> Coming away from the luxury of the delphi IDE has been something of a
> shock.
>
> As a consequence I've become aware that maybe I need to spend some
> money on a python IDE.
You can google for lots of IDE reviews, here's a start
http://www.awaretek.com/tutori
John Bokma wrote:
> Roedy Green <[EMAIL PROTECTED]> wrote:
>
> I leave that up to Xah's ISP/USP and hosting provider to decide :-D
>
he's solidified position as top troll of 2003-2006
--
http://mail.python.org/mailman/listinfo/python-list
Rune Strand wrote:
> Is there a way to measure how much memory a data structure use? For
> instance, what is the footprint of a particular list object like
> [0,1,2,3,4,5,6,7,8,9]?
i have a note to try this, but haven't got around to it, if you want to
blog/post
http://pysizer.8325.org/
--
htt
Rune Strand wrote:
> gene tani wrote:
> > Rune Strand wrote:
> > > Is there a way to measure how much memory a data structure use? For
> > > instance, what is the footprint of a particular list object like
> > > [0,1,2,3,4,5,6,7,8,9]?
> >
> > i ha
Erik Max Francis wrote:
> chun ping wang wrote:
>
> > Hey i have a stupid question.
> >
> > How do i get python to print the result in only three decimal place...
> >
> > Example>>> round (2.9954254, 3)
> > 2.9951
> >
> > but i want to get rid of all trailing 0's..how would i d
Roman wrote:
> Does anybody know an easy way (or tool) to guess the language of a
> given text string?
>
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/355807
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/326576
--
http://mail.python.org/mailman/listinfo/python-list
softwindow wrote:
> the re module is too large and difficult to study
it's powerful, takes a little time to work with. Make yourself aware
of the VERBOSE switch, RE debuggers in komodo and Wing, string
functions/methods and when you need a full parser, also
http://www.awaretek.com/tutorials.htm
Bobert wrote:
> Hi,
>
> Do you know by chance if someone has archives from the "daily python url"
> feed (http://www.pythonware.com/daily/rss2.xml) ? An archive of the last 3
> or 6 months would be most useful to me.
it gets picked up on Swik.net, with a bunch of other stuff:
http://swik.net/Pyt
gene tani wrote:
> Bobert wrote:
> > Hi,
> >
> > Do you know by chance if someone has archives from the "daily python url"
> > feed (http://www.pythonware.com/daily/rss2.xml) ? An archive of the last 3
> > or 6 months would be most useful to me.
>
&g
satish wrote:
> how to write script for these
>
> 1.Given a test file containing lines of words such as (abc, abb,
> abd,abb, etc), write a script that prints, in order of frequency, how
> many times each word appears in the file.
>
> 2.
> Write a script running in an endless loop that pings an IP
On Jan 30, 4:40 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote:
> I do not understand why no one has answered the following question:
>
> Has anybody worked with Gene Expression Programming
>
> David Blubaugh
>
David (may i call you David?)
May i sugg
Roy Smith wrote:
> Fredrik Tolf wrote:
> >If I have a variable which points to a function, can I check if certain
> >argument list matches what the function wants before or when calling it?
> >
> >Currently, I'm trying to catch a TypeError when calling the function
> >(since that is what is rais
Rich wrote:
> Hi,
>
> (this is a probably a bit OT here, but comp.lang seems rather
> desolated, so I'm not sure I would get an answer there. And right now
> I'm in the middle of learning Python anyway so...)
>
> Anyway, my question is: what experience you people have with working
> with different
Harry George wrote:
>
> re the OP:
>
> I find I have to concentrate on one language for a while (several
> programs) to ramp up on the syntax, semantics, idioms, and libraries.
> Then I'm safe to wander off and learn other languages. When it comes
> time to do a project, I use one main language u
Colin J. Williams wrote:
> Harry Fuecks wrote:
> > Hi All,
> >
> > Wondering if a tool exists to generate "cross reference" documentation
> > for Python code bases?
> >
> > Particularly after something like phpxref -
> > http://phpxref.sourceforge.net/ : written in Perl, scans a bunch of
> > PHP s
JuHui wrote:
> Hi
> I want to get 20 html pages content from one server, you know
> urllib.urlopen need construct network connection, it will be very
> slowly, how to speed up this function?
> I try to using multi-thread, it speed up, but I want to quickly more,
> any idea about it?
> Thank
Duncan Booth wrote:
> Enigma Curry wrote:
>
> > I've been looking for similar stuff recently. I haven't found much, but
> > this is the list of links I've come across so far:
> >
http://awaretek.com/nowak/mygale.html
http://cheeseshop.python.org/pypi/spider.py/0.5
http://sig.levillage.org/?p=599
gene tani wrote:
> Duncan Booth wrote:
> > Enigma Curry wrote:
> >
a couple more
http://cheeseshop.python.org/pypi/Orchid/1.0
http://cheeseshop.python.org/pypi/webstemmer/0.5.0
--
http://mail.python.org/mailman/listinfo/python-list
vj wrote:
> I've been given a project which requires writing scripts that need to
> be run on over 3000 servers. Only about 15% of them have python
> installed on them. While all/most of them will have perl.
>
> I'll try and do as much as possible in pexpect but am sure I'll have do
> some signifi
Christoph Zwerschke wrote:
> Just because nobody has mentioned them so far:
>
> - SciTe is a perfect editor for Pyhton on Win and Linx
> - PyScripter is a wonderful IDE (but only on Win)
> - DrPython is a nice platform independent editor/mini-IDE
>
http://www.artima.com/forums/flat.jsp?forum=106
gene tani wrote:
> Christoph Zwerschke wrote:
> > Just because nobody has mentioned them so far:
> >
http://spyced.blogspot.com/2006/02/pycon-python-ide-review.html
--
http://mail.python.org/mailman/listinfo/python-list
Dave Benjamin wrote:
> On Tue, 28 Mar 2006, David Hirschfield wrote:
>
> > I need to be able to parse the script, modify some variable settings and
> > then write the script back out so that the only changes are the
> > variables I've modified (comments, ordering of statements, etc. must
> > remai
[EMAIL PROTECTED] wrote:
> Like in C we comment like
> /*
> Bunch of lines of code
> */
>
scite has a feature where you modify your delimiter in block comments,
i.e. what comes after "#"
http://scintilla.sourceforge.net/SciTEDoc.html
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> the "what now?" page in the tutorial
>
> to replace it with something else, what should that be? what sites
> do pythoneers and pythonistas visit these days?
>
> post your suggestions in this thread or on this page:
>
Pilgrims tricks/ips
http://diveintopython.org/appendix/t
Peter Otten wrote:
> The old Python "To-Do List" now lives principally in a
> SourceForge reincarnation.
> http://sourceforge.net/tracker/?atid=355470&group_id=5470&func=browse
> http://python.sourceforge.net/peps/pep-0042.html
>
Thanks, very nice summary.
One thing, the
Lou Pecora wrote:
> YIKES! Don't do that. Don't mess with Apple's python. Not
> recommended. Check the MacPython FAQ and Wiki pages. Python 2.4 was
> installed in /usr/local/bin. You should put that in your $PATH variable
> Before /usr/bin. That will cause the new Python to be launched.
>
Ralph H. Stoos Jr. wrote:
> Tim,
>
> After a little more research, I did find that out. It is funny, but in
> the tutorial "Non-Programmers Tutorial For Python", it makes no mention
> of the indentation issue, at least in the beginning portions which I had
> read.
>
> This is an age old problem o
pool/mail/. Much more
peacefull now, for about 2 years...
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
--
https://mail.python.org/mailman/listinfo/python-list
t is not only Monospaced
but quite civilized to look at. I use it for editing any executable
codes source language, and here in kmail too.
> and even there, only if you draw ASCII-art in multi-line comment
> blocks. But its true, that it will have a notable place in a museum.
>
> Mikh
live long enough to see that
happen isn't up to me. At 82, it doesn't look like near as big a chance
as it did when I was 60.
>
> Not all Americans, perhaps not even a majority or a plurality, are
> Ugly Americans, but there are enough of them to screw it up for
> everyone e
and other
> government black actors spy on them for free in the bargain. It's a
> strange, strange world.
>
> Deborah
Pay attention to this lady, she has BTDT enough to make an astute
observation.
I'm hiding behind a locked down dd-wrt router, but sure as hell, some
black ha
Greetings all;
I have a need for the subjects function but installed on wheezy. But it
is not in the repo's.
Is there a solution that doesn't break wheezy?
Thanks.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo
On Friday 19 May 2017 09:32:00 Ethan Furman wrote:
> On 05/19/2017 04:49 AM, Gene Heskett wrote:
> > I have a need for the subjects function but installed on wheezy.
> > But it is not in the repo's.
> >
> > Is there a solution that doesn't break wheezy?
>
On Friday 19 May 2017 10:21:26 Peter Otten wrote:
> Gene Heskett wrote:
> > On Friday 19 May 2017 09:32:00 Ethan Furman wrote:
> >> On 05/19/2017 04:49 AM, Gene Heskett wrote:
> >> > I have a need for the subjects function but installed on wheezy.
>
; ] },
>"\n"
>]
>}
>
> > XML just needs to die.
>
> Thankfully, that seems to be happening.
Slowly please, it is still being heavily used in the custom gui creation
field. We would love to have gladevcp back in a usable state, but it
wa
wxr-xr-x 1 dbruno dbruno 590 giu 13 14:48 restart.py
>
> You can help me ?
>
> Thank you
export PATH=
but be prepared to type the full path to anything you want to run. It a
PITA, or a cast iron bitch or whatever definition fits.
Cheers, Gene Heskett
--
"There are four
On Saturday 24 June 2017 21:03:18 Steve D'Aprano wrote:
> On Sun, 25 Jun 2017 08:39 am, Gene Heskett wrote:
> > On Saturday 24 June 2017 16:49:25 Smith wrote:
> >> Hello to all,
> >> I wanted to ask you how I could delete a line of an environment
> >> va
7;s laconic juxtaposition points
> > to the deep non-rational programming in our subconscious mind of
> > what we accept and what we dont
> >
> > [Larry seems to be angry about/at somethin'… No idea who/what…]
>
> I think Chomsky is a jerk, and I'm angry at
Christian Seberino wrote:
> A beginner I think could learn Lisp much faster than Python.
For talented beginners, Lisp rocks much like Python, in that easy assignments
are easy enough to implement. On the high end, Lisp rocks again: Lisp masters
are astonishingly productive. In between, beyond pe
t? Never heard of it. xml? I've written hundred of kilobytes of
it in plain old geany. I didn't know there was a special editor for xml.
Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-E
or computers and have the computers start
working for us?
If this is being voted on, pretend you are in Georgia, vote often and
early. Best question of the century.
Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in th
27;t degenerate into name calling. As I look at my nintyieth in a
month or so I always hope next year will be better. Please make it so.
What decision-making processes are usable in the face of such large
numbers - and how seriously are/would they be taken by 'the average
Python user
601 - 665 of 665 matches
Mail list logo