Re: OT: Quote ? [was: John Bokma harassment]

2006-05-26 Thread John Bokma
ries) The gruff, deedle and wobbly is mentioned IIRC in Wyst (Alastor 1716), but not sure about it. IIRC it's all you need in the egalistic world of Wyst. -- John Bokma Freelance software developer & Experienced Perl program

Re: OT: Quote ? [was: John Bokma harassment]

2006-05-26 Thread John Bokma
"Mike Schilling" <[EMAIL PROTECTED]> wrote: > > "John Bokma" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Chris Uppal" <[EMAIL PROTECTED]> wrote: >> >>> [apologies to the whole flaming crowd fo

Re: Xah's Edu Corner: What is Expressiveness in a Computer Language

2006-03-19 Thread John Bokma
stead of adding to a lot of garbage in serveral groups. -- John Bokma Freelance software developer & Experienced Perl programmer: http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Best strategy for overcoming excessive gethostbyname timeout.

2009-11-27 Thread John Bokma
r0g wrote: > It seems gethostbyname asks the OS to resolve the address and the OS > uses it's own timeout value ( 25 seconds ) rather than the one provided > in setdefaulttimeout. 25 seconds of blocking is way too long for me, I > want the response within 5 seconds or not at all but I can see no

Re: scanning under windows WIA with custom settings (dpi / etc )

2009-11-28 Thread John Bokma
News123 wrote: > MRAB wrote: >> News123 wrote: >>> r wrote: more *maybe useful dump? >>> for i in dev.Items: for p in i.Properties: if not p.IsReadOnly: print p.Name, '->', p.Value [..] > The main question is the correct python method to chan

Re: Object Not Callable, float?

2009-11-29 Thread John Bokma
"W. eWatson" wrote: > Yikes. Thanks very much. Python seems to act unlike other language in > which words like float are reserved. I'll use asum. The problem is that there is a function sum and you creating a float sum: sum = 0.0 and mean = sum(hist) even if both could exist side by side it

Re: top-like behavior

2009-11-30 Thread John Bokma
Jonathan Haddad wrote: > Is there a specific library used for displaying up to date consoles in > the same way top behaves? No experience but I am quite sure that curses behaves like that. http://www.amk.ca/python/howto/curses/ via http://www.google.com/search?q=python%20curses John -- http:

Re: parsing json data

2009-11-30 Thread John Bokma
f...@mauve.rahul.net (Edward A. Falk) wrote: > There's a json parsing library in 2.6. (Sadly, 2.6 is not out for > Ubuntu yet.) Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 on Ubuntu 9.04 John -- http://mail.python.org/mailman/listinfo/python-list

Re: emacs, pdb, python3, ubuntu

2009-11-30 Thread John Bokma
"K. Richard Pixley" wrote: > Does anyone have this combination working? > > And if so, which version of ubuntu and what did you have to do to get it > to work? I run Ubuntu 8.10 and use Emacs to code Python (mostly 2.5.x but I've done some small Python 3). What has Emacs to do with it? John

Re: Bored.

2009-11-30 Thread John Bokma
Stef Mientki wrote: > There's also a Python site, were projects are submitted that needs > something ( some even pay a little), > but I can't remember where it is :-( OP: A Python program to find it :D John -- http://mail.python.org/mailman/listinfo/python-list

Re: Moving from Python 2 to Python 3: A 4 page "cheat sheet"

2009-12-01 Thread John Bokma
Mark Summerfield writes: > It is available as a free PDF download (no registration or anything) > from InformIT's website. Here's the direct link: > http://ptgmedia.pearsoncmg.com/imprint_downloads/informit/promotions/python/python2python3.pdf Thanks! > And of course, if you want more on Python

Re: Moving from Python 2 to Python 3: A 4 page "cheat sheet"

2009-12-02 Thread John Bokma
Mark Summerfield writes: > On 1 Dec, 23:52, John Bokma wrote: >> Mark Summerfield writes: >> > It is available as a free PDF download (no registration or anything) >> > from InformIT's website. Here's the direct link: >> >http://ptgmedia.pearso

Re: Question on Python as career

2009-12-03 Thread John Bokma
was considering giving it a go one of these days. Not a good > idea? If you have no problem with coding projects that take 80 hours and have a budget of 200 USD... -- John Bokma Read my blog: http://johnbokma.com/ Hire me (Perl/Python): http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: switch

2009-12-10 Thread John Bokma
profusion of provider formats. Yup, and there is no other solution to that than to convert them to something universal. > Yes, having been programming since I was in middle-school (quick > calculation yields a "boy I'm old" estimate of about 20 years...does > anybody miss 3

Re: Parsing file format to ensure file meets criteria

2009-12-17 Thread John Bokma
overview of modules. -- John Bokma Read my blog: http://johnbokma.com/ Hire me (Perl/Python): http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming intro book ch1 and ch2 (Windows/Python 3) - Request For Comments

2009-12-18 Thread John Bokma
ave been out of touch with compiler building too long) -- John Bokma Read my blog: http://johnbokma.com/ Hire me (Perl/Python): http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Sort the values of a dict

2009-12-19 Thread John Bokma
r version (2.x) and have no problem at all recommending the Python 3 edition. You can read/download it here: http://diveintopython3.org/ -- John Bokma Read my blog: http://johnbokma.com/ Hire me (Perl/Python): http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-26 Thread John Bokma
or such a service. [1] really small stuff is 15 USD in books but everything above that is multiples of 35 USD/books. It's a nice way to create a library of technical books that way, while leaving plenty of room for books for leisure. -- John Bokma Read my blog: http://johnbokma.com/ Hire m

Re: Author of a Python Success Story Needs a Job!

2009-12-28 Thread John Bokma
I do get work that way. Besides, I do also very small things in exchange for (technical) books. It might take you at least a year or so to get sufficient traffic, but if you blog more (than I on Perl) on Python you and keep updating your skills, and show to your visitors what you can do. -- John

Re: Xah's Edu Corner: Teach Ourself Programing In Ten Years?

2010-01-02 Thread John Bokma
Alain Picard writes: > If you want to change the world, you start by changing yourself. Like for starters setting a follow-up to header, especially if you spam 4 groups. But Xah is Xah. -- John Bokma Read my blog: http://johnbokma.com/ Hire me (Perl/Python): http://castleamber.com/ -- h

Re: xml.sax parsing elements with the same name

2010-01-11 Thread John Bokma
result= eval(self.filter) > if result: > ... > > How do I get the result value I require when events have the same > names like above? You have to keep track if you're inside a filters section, and keep track of the filter elements (first, second, etc.) assuming you want the result value of the first filter. -- John Bokma Read my blog: http://johnbokma.com/ Hire me (Perl/Python): http://castleamber.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: xml.sax parsing elements with the same name

2010-01-11 Thread John Bokma
amadain writes: > On Jan 11, 7:26 pm, John Bokma wrote: >> amadain writes: >> > > > uniqueId="1261

Re: Python Goldmine has been updated: http://preciseinfo.org/Convert/index_Convert_Python.html

2010-01-11 Thread John Bokma
ta...@mongo.net (tanix) writes: > Sorry to tell you, but I studied Google architecture in sufficient > detail to say what I am saying. http://groups.google.com/groups?lnk=hpsg&q=group%3Acomp.lang.python%20pyparsing -- John Bokma Read my blog: http://johnbokma.com/ Hire me (Perl/Pyt

Re: lightweight encryption of text file

2010-01-11 Thread John Bokma
Paul Rubin writes: > John Bokma writes: >>> Why EVER make anything yourself when you can buy it? >> >> Do you make your own processors? Your own hard disk drives? >> Why not? > > Well, if you try to make your own processors or hard drives, worst > normal

Re: lightweight encryption of text file

2010-01-12 Thread John Bokma
Anthra Norell writes: > Why EVER make anything yourself when you can buy it? Do you make your own processors? Your own hard disk drives? Why not? -- John Bokma Read my blog: http://johnbokma.com/ Hire me (Perl/Python): http://castleamber.com/ -- http://mail.python.org/mailman/listi

Re: BeautifulSoup

2010-01-15 Thread John Bokma
p/3.1-problems.html You might want to do: sudo easy_install -U "BeautifulSoup==3.0.7a" and try again. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: BeautifulSoup

2010-01-15 Thread John Bokma
John Nagle writes: >It's just somebody pirating movies. Ineptly. Ignore. Wow, what a childish reply. You should've followed your own advice and ignored the OP instead of replying with a top post + full quote (!). -

Re: BeautifulSoup

2010-01-15 Thread John Bokma
John Bokma writes: > yamamoto writes: > >> Hi, >> I am new to Python. I'd like to extract "a" tag from a website by >> using "beautifulsoup" module. >> but it doesnt work! > > [..] > >> check_for_whole_start_tag >>

Re: basic Class in Python

2010-01-17 Thread John Bokma
BarryJOgorman writes: > class Person: > def _init_(self, name, job=None, pay=0): def __init__(self, name, job=None, pay=0): Note 2x _ before and after init. -- John Bokma j3b Hacking & Hiking in Mexi

Re: IDLE Namespace Toolbox? Windows.

2010-01-17 Thread John Bokma
r think maybe there are even more tools to > generally help. on the command prompt: cmd | more works -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: Py 3: Terminal script can't find relative path

2010-01-18 Thread John Bokma
/Content.plist' What does: ls -l Data/Content.plist in the terminal give? -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: Python or Ant

2010-01-26 Thread John Bokma
version. If I am happy with how it looks, I do ant upload Ant makes several things really easy. The things I do with it would take me more lines in either Perl or Python. So I use Perl (or Python) when it makes things easier, and ant to glue everything together if that's easier. --

Re: python 3's adoption

2010-01-26 Thread John Bokma
stuff in as many groups as possible to promote his website. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3's adoption

2010-01-26 Thread John Bokma
"Alf P. Steinbach" writes: > * John Bokma: >> "Alf P. Steinbach" writes: >> >>> Please don't post more noise and ad hominem attacks to the group, >>> Steve. >> >> Funny that you talk about noise while replying yourself to no

Re: python 3's adoption

2010-01-27 Thread John Bokma
at a time. Post to on-topic groups only, really on-topic groups, not as many as you can select. And participate like you know do, and nobody will complain about /how/ you post. And if you cross-post /set a follow-up-to/. That's ne

Re: PEP 3147 - new .pyc format

2010-01-30 Thread John Bokma
ython 3.1 wow: so much for human readable file names :-( -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3147 - new .pyc format

2010-01-30 Thread John Bokma
MRAB writes: > Alf P. Steinbach wrote: >> * John Bokma: >>> MRAB writes: >>> >>>> The PEP has a .pyr directory for each .py file: >>>> >>>> foo.py >>>> foo.pyr/ >>>> f2b30a0d.pyc # Pyth

Re: PEP 3147 - new .pyc format

2010-01-31 Thread John Bokma
Based on the magic numbers I've seen so far it looks like that not an option. They increment with every minor change. So to me, at this moment (and maybe it's my ignorance) it looks like a made up example to justify what to me still looks like a bad decision. -- John Bokma

Re: iglob performance no better than glob

2010-01-31 Thread John Bokma
Kyp writes: > Is there a way to get the first X # of files from a dir with lots of > files, that does not take a long time to run? Assuming Linux: what does time ls thedir | head give? with thedir the name of the actual dir Also how many is many files? -- John

Re: Python and Ruby

2010-01-31 Thread John Bokma
braces example but can't with this one. if x: if y: foo() else: bar() While braces might be considered redundant they are not when for one reason or another formatting is lost or done incorrectly. FWIW: I have no problem with how Python d

Re: Python and Ruby

2010-01-31 Thread John Bokma
Steven D'Aprano writes: > On Sun, 31 Jan 2010 14:47:08 -0600, John Bokma wrote: > >> An editor can correct the indenting of the braces example but can't with >> this one. >> >> if x: >> if y: >> foo() >> else: >&g

Re: Python and Ruby

2010-01-31 Thread John Bokma
Steven D'Aprano writes: > On Sun, 31 Jan 2010 14:47:08 -0600, John Bokma wrote: > >> An editor can correct the indenting of the braces example but can't with >> this one. >> >> if x: >> if y: >> foo() >> else: >&g

Re: Python and Ruby

2010-01-31 Thread John Bokma
Steven D'Aprano writes: > On Sun, 31 Jan 2010 18:47:42 -0600, John Bokma wrote: > >> Steven D'Aprano writes: >> >>> On Sun, 31 Jan 2010 14:47:08 -0600, John Bokma wrote: >>> >>>> An editor can correct the indenting of the brac

Re: Python and Ruby

2010-02-01 Thread John Bokma
iated with key of hash ref. by bar $bar = \&foo; # bar contains now a reference to a sub $bar->( 45 ); # call sub ref. by bar with 45 as an argument Consistent: yes. New syntax? No. Also, it helps to think of $ as a thing @ as thingies indexed by numbers % as thingies i

Re: Python and Ruby

2010-02-01 Thread John Bokma
me of the book that was used, but it was quite good IMO). I want to start (re)learning Haskell later this year, because I liked Miranda/Gofer a lot back then. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Ruby

2010-02-02 Thread John Bokma
IMO, that keeps people away from a language, because you can't feel nothing but a failure after a statement like this. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl &

Re: Python and Ruby

2010-02-02 Thread John Bokma
Jonathan Gardner writes: > On Feb 1, 6:36 pm, John Bokma wrote: [..] >> It should be $bar = \&foo >> Your example actually calls foo... > > I rest my case. I've been programming perl professionally since 2000, > and I still make stupid, newbie mistakes lik

Re: Python and Ruby

2010-02-02 Thread John Bokma
Steven D'Aprano writes: > On Tue, 02 Feb 2010 23:11:49 -0600, John Bokma wrote: > >> Jonathan Gardner writes: >> >>> I can explain, in an hour, every single feature of the Python language >>> to an experienced programmer, all the way up to metaclasses

Re: Python and Ruby

2010-02-02 Thread John Bokma
John Bokma writes: > Steven D'Aprano writes: > >> On Tue, 02 Feb 2010 23:11:49 -0600, John Bokma wrote: >> >>> Jonathan Gardner writes: >>> >>>> I can explain, in an hour, every single feature of the Python language >>>

Re: python admin abuse complaint

2010-02-03 Thread John Bokma
to do on IRC? Copy paste line by line one of your "fine" articles, followed by a link to your site. And what the hell were you doing, asking a Python question in #python? Shouldn't that be asked the Xah way in #perl or #lisp? -- John Bokma

Re: Dreaming of new generation IDE

2010-02-03 Thread John Bokma
uch an IDE in the Synthesizer Generator, but I have no idea if it's still available. And back when I used it (at university) one had to pay for it, and most likely was closed source as well. See also: http://www.google.com/search?q=synthesizer%20generator -- John Bokma

Re: Dreaming of new generation IDE

2010-02-03 Thread John Bokma
/some extent/ and editor can do analyses, if it does compilation as well (and even runs the code, but the latter is not always desirable). I mentioned the Synthesizer Generator before, which can do compilation on the fly, if you implement it (or if it has been implemented for the language you edit wi

Re: The best library to create charting application

2010-02-03 Thread John Bokma
mk writes: > The application will display (elaborate) financial charts. > > Pygame? Smth else? You might want to check out the book "Beginning Python Visualisation". -- John Bokma j3b Hacking & H

Re: Dreaming of new generation IDE

2010-02-03 Thread John Bokma
Phlip writes: > John Bokma wrote: > >> my $x = ( 5, "hello", sub {}, [], {} )[ int rand 5 ]; >> >> what's $x? The answer is: it depends. > > That's why my blog post advocated (as usual for me) developer tests. > Then you either mock the rand,

Re: Dreaming of new generation IDE

2010-02-03 Thread John Bokma
.wikipedia.org/wiki/Structure_editor http://portal.acm.org/citation.cfm?doid=358746.358755 -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: Dreaming of new generation IDE

2010-02-03 Thread John Bokma
tabase and > Django as UI. You might check out articles that mention the Synthesizer Generator, etc. http://citeseer.ist.psu.edu/cis?q=synthesizer+generator&cs=1 http://citeseer.ist.psu.edu/cis?q=structure+editor&cs=1 The idea is not new (at leas

Re: Python and Ruby

2010-02-03 Thread John Bokma
Jonathan Gardner writes: > On Feb 2, 9:11 pm, John Bokma wrote: >> Jonathan Gardner writes: >> > I can explain, in an hour, every single feature of the Python language >> > to an experienced programmer, all the way up to metaclasses, >> >> Either you&

YAML (was: Python and Ruby)

2010-02-03 Thread John Bokma
oth reading/writing data and for debugging purposes (YAML is quite human readable, for programmers at least) Of course there is also YAML support for Python: http://pyyaml.org/. -- John Bokma j3b Hacking & Hiking in Mexico - http:

Re: Passing parameters in URL

2010-02-04 Thread John Bokma
t easy to guess, and expire. And make very sure that session ids can't leak to others. Moreover, each time you modify a database use POST. One could argue to also use POST for logging out, otherwise another site might be able to log your users out if they visit that site. -- John Bokma

Re: Passing parameters in URL

2010-02-04 Thread John Bokma
"Diez B. Roggisch" writes: > Am 03.02.10 19:11, schrieb John Bokma: >> Alan Harris-Reid writes: >> >>> I have a web-page where each row in a grid has edit/delete buttons to >>> enable the user to maintain a selected record on another page. The >

Re: Passing parameters in URL

2010-02-04 Thread John Bokma
"Diez B. Roggisch" writes: > Am 04.02.10 01:42, schrieb John Bokma: [..] >> Maybe you should think about what happens if someone posts: >> http://example.com/item_delete?id=123";> to a popular forum... > > And the difference to posting > > from ur

Re: Python and Ruby

2010-02-04 Thread John Bokma
Marius Gedminas writes: > On Feb 4, 1:03 am, John Bokma wrote: >> Jonathan Gardner writes: >> > I can explain all of Python in an hour; >> >> OK, in that case I would say give it a go. Put it on YouTube, or write a >> blog post about it (or post it her

Re: YAML

2010-02-04 Thread John Bokma
Lou Pecora writes: > In article <87eil1ddjp.fsf...@castleamber.com>, > John Bokma wrote: > >> Lou Pecora writes: >> >> > That's a pretty accurate description of how I transitioned to Python >> > from C and Fortran. >> >> No

Re: Python and Ruby

2010-02-04 Thread John Bokma
Marius Gedminas writes: > On Feb 4, 1:03 am, John Bokma wrote: >> Jonathan Gardner writes: >> > I can explain all of Python in an hour; >> >> OK, in that case I would say give it a go. Put it on YouTube, or write a >> blog post about it (or post it her

Re: YAML

2010-02-04 Thread John Bokma
ntation#LoadingYAML yaml.safe_load however, limits to simple Python objects and Python objects you mark as safe. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl &

Re: Passing command line argument to program from within IDLE?

2010-02-04 Thread John Bokma
umed that > sys.argv was an ordinary list which you can modify at will, but having > been caught out on faulty assumptions before, I would try it and see > before commenting publicly. I guess that Terry means that a solution that makes it possible to specify in IDLE *outside* of the Python code the arguments would be better. Hardcoding the command line arguments isn't something I would do for testing. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: Passing command line argument to program from within IDLE?

2010-02-04 Thread John Bokma
John Bokma writes: > Steven D'Aprano writes: > >> On Thu, 04 Feb 2010 16:28:17 -0500, Steve Holden wrote: >> >>> Terry Reedy wrote: >>>> On 2/4/2010 3:55 PM, Alan Biddle wrote: >>>>> Just finishing my first Python (2.6 on Win XP) p

Re: Passing command line argument to program from within IDLE?

2010-02-04 Thread John Bokma
Tim Chase writes: > Gabriel Genellina wrote: >> En Thu, 04 Feb 2010 20:46:52 -0300, John Bokma >> >>> Oops, that should've been Steve, my apologies. >> >> See http://bugs.python.org/issue5680 > > Am I the only one that expected that issue to b

Re: Subclassing datetime.date

2010-02-06 Thread John Bokma
ot to the construct method. __init__ is *not* the construction method, __new__ is (at least with new style classes) > Is there some kind of built in I'm missing here? I guess __new__ but I am quite the newbie. -- John Bokma j3

Re: TABS in the CPython C source code

2010-02-06 Thread John Bokma
e used TextPad for ages, and it can be configured to hard tab 8 (might even be the default [1]). [1] With Perl coding I configured it to indent 4 spaces, hard tab 4 spaces and convert hard tabs to 4 spaces while saving, so no surprises. -- John Bokma

Re: python admin abuse complaint

2010-02-08 Thread John Bokma
h's sockpuppet. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: Py3: Terminal or browser output?

2010-02-13 Thread John Bokma
as advantage (or disadvantage) that you can set the variable at the CLI and see the output the browser could get. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python

Re: Download unnamed web image?

2010-02-16 Thread John Bokma
r running this code: > > AttributeError: 'NoneType' object has no attribute 'strip' Wild guess, since you didn't provide line numbers, etc. foo4 is None (I also would like to suggest to use more meaningful names) -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: Download unnamed web image?

2010-02-16 Thread John Bokma
e 210, in retrieve url = unwrap(toBytes(url)) File "/usr/lib/python2.5/urllib.py", line 1009, in unwrap url = url.strip() AttributeError: 'NoneType' object has no attribute 'strip' --8<---cut here---end--->8--- To

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-17 Thread John Bokma
. Sadly, often bold statements about a language are made in ignorance. [1] perl is the program that executes Perl programs ;-). -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl

Re: MediaWiki to RTF/Word/PDF

2010-02-17 Thread John Bokma
XML and a suitable stylesheet might give you the nicest looking result though (but quite some work). -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- htt

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-17 Thread John Bokma
Steven D'Aprano writes: > On Wed, 17 Feb 2010 12:39:30 -0600, John Bokma wrote: [..] >> If it was Perl [1], I doubt it. Because line numbers are reported, and >> if that doesn't help you, you can annotate anonymous functions with a >> nick name using >

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-18 Thread John Bokma
ficult to read and > understand, even for experienced Lispers. I am pleased that Python is > not following Lisp in that regard. > > for n in range(1,6): ^ should be 7 But for the rest, I agree with you. I can read

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-18 Thread John Bokma
John Bokma writes: > Jonathan Gardner writes: > >> On Feb 18, 8:15 am, Steve Howell wrote: >>> >>>     def print_numbers() >>>         [1, 2, 3, 4, 5, 6].map { |n| >>>             [n * n, n * n * n] >>>         }.reject {

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-21 Thread John Bokma
nguages. Heh! When I learned Miranda it felt natural to me. Prolog on the other hand... In short: I am afraid you're overgeneralizing here; it depends on one's background. If not, citation needed ;-) -- John Bokma j3b Hackin

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread John Bokma
Jonathan Gardner writes: > On Sun, Feb 21, 2010 at 10:22 AM, John Bokma wrote: >> Jonathan Gardner writes: >>> On Fri, Feb 19, 2010 at 11:16 PM, Lie Ryan wrote: >>>> >>>> Now, why don't we start a PEP to make python a fully-functional language &g

Re: What's Going on between Python and win7?

2010-02-22 Thread John Bokma
gt; Windows 7 has symbolic links? Symbolic links are designed to aid in migration and application compatibility with UNIX operating systems. Microsoft has implemented its symbolic links to function just like UNIX links. : Symbolic links are available in NTFS starting with Win

Re: What's Going on between Python and win7?

2010-02-22 Thread John Bokma
Grant Edwards writes: > On 2010-02-22, John Bokma wrote: >> Gib Bogle writes: >> >>> MRAB wrote: >>>> W. eWatson wrote: >>>>> Last night I copied a program from folder A to folder B. It >>>>> inspects the contents of files in

Re: python dowload

2010-02-23 Thread John Bokma
oolwaterheaters.com/downloads/6510413.pdf' response = urllib2.urlopen(url) fh = open('adobe.pdf', 'wb') fh.write(response.read()) fh.close() response.close() -- John Bokma j3b Hacking & Hiking in Mexi

Re: Docstrings considered too complicated

2010-02-26 Thread John Bokma
; would assume you were moving the contents of AX into BX. Eh? It's a bad comment, it's of the same quality as: > x = x + 1 # Add one to x. You think the former is good because (I guess) you are not familiar with the language. The same reason why beginne

Re: Docstrings considered too complicated

2010-02-27 Thread John Bokma
a piece of code that requires a comment on every line unless one can guess its meaning. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: Python dos2unix one liner

2010-02-27 Thread John Bokma
you for throw-away code. Use Python for the > code you want to keep (and read and understand later). Amusing how long those Python toes can be. In several replies I have noticed (often clueless) opinions on Perl. When do people learn that a language is

Re: Python dos2unix one liner

2010-02-27 Thread John Bokma
that matter. > I've written lots of both Python and Perl and sometimes, for > one-off's, Perl is quicker; if you know it. > > I sure don't want to maintain Perl applications though; even ones I've > written. Ouch, I am afra

Re: stripping fields from xml file into a csv

2010-02-27 Thread John Bokma
s,6 > > I am new to python and xml and it would be great to see some slick > ways of achieving the above by using python's XML capabilities to > parse the original file or python's regex to achive what I did using > sed. It's not clear how your XML actually looks, but (

Re: Python dos2unix one liner

2010-02-28 Thread John Bokma
Steven D'Aprano writes: > On Sat, 27 Feb 2010 11:27:04 -0600, John Bokma wrote: > >> When do people learn that a >> language is just a tool to do a job? > > When do people learn that there are different sorts of tools? A > professional wouldn't use

Re: cpan for python?

2010-03-02 Thread John Bokma
an setuptools. AFAIK the python >> community has developed nothing like it. > > python have easy_install How easy is it to /remove/ something? ;-) (Last time I checked I read something like "manually remove the .egg"... -- John Bokma

Re: cpan for python?

2010-03-03 Thread John Bokma
John Gabriele writes: > On Mar 2, 11:58 pm, John Bokma wrote: >> Lie Ryan writes: >> > On 03/03/2010 09:47 AM, TomF wrote: >> >> [..] >> >> >> There >> >> is also a program called cpan, distributed with Perl.  It is used for >>

Re: Working group for Python CPAN-equivalence?

2010-03-03 Thread John Bokma
nager to add a Perl module, or CPAN, or would both work? Both would work, but I would make very sure to use a separate installation directory for modules installed via CPAN. AFAIK there are also programs that pack CPAN modules/bundles into something the package manager can use t

Re: Working group for Python CPAN-equivalence?

2010-03-04 Thread John Bokma
a /must/ when you have 17,530 (at the time of writing) modules. If Python wants it's own CPAN it might be a good first move to not have modules named "xmlrpclib", "wave", "keyword", "zlib", etc. But I don't see that happen soon :-). -- John

Re: Draft PEP on RSON configuration file format

2010-03-05 Thread John Bokma
t;> a plain text document. > > I use footnotes all the time[1] in plain text documents and emails. I > don't think there's anything bizarre about it at all. http://docutils.sourceforge.net/docs/user/rst/quickref.html#footnotes [#]_. .. [#] the keyword is ReST. -- John Bokma

Re: Anything like "Effective Java" for Python?

2010-03-12 Thread John Bokma
th people who have experience with programming in mind. I've both the Python 2 and Python 3 version (books). You can download a version of each for free: http://www.google.com/search?q=dive%20into%20python -- John Bokma j3b

Re: Unicode characters in btye-strings

2010-03-12 Thread John Bokma
ot;string") are not really > unicode-, but utf8-strings? utf8 is a Unicode *encoding*. -- John Bokma j3b Hacking & Hiking in Mexico - http://johnbokma.com/ http://castleamber.com/ - Perl & Python Development -- http://mail.python.org/mailman/listinfo/python-list

Re: POS Tagging

2010-03-12 Thread John Bokma
Hephzibah writes: > ImportError: No module named numpy > > Can someone pls. tell me what I'm supposed to do next? Install numpy would be my first guess. -- John Bokma j3b Hacking & Hiking in Mexico - http://j

Re: python to exe

2010-03-12 Thread John Bokma
Gabriel Genellina writes: > On 13 mar, 00:26, Robin wrote: > >> Does anyone know of a good python to stand alone exe compiler? > > http://tinyurl.com/yfcfzz4 Wow, pathetic fuck. You don't have to post you know. -- John Bokma

Re: python to exe

2010-03-13 Thread John Bokma
g.perl.misc was quite unfriendly because of a certain attitude. comp.lang.python was quite a refreshment for a while: very newbie friendly, less pissing contests, etc. (but way more fanboism). Yesterday was a sady day: I finally had to conclude that it was only wishful thinking on my part; there i

<    1   2   3   4   5   6   >