Python-list Digest, Vol 88, Issue 67

williem75 at gmail.com williem75 at gmail.com
Wed Jan 26 16:25:54 EST 2011


Sent from my LG phone

python-list-request at python.org wrote:

>Send Python-list mailing list submissions to
>	python-list at python.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://mail.python.org/mailman/listinfo/python-list
>or, via email, send a message with subject or body 'help' to
>	python-list-request at python.org
>
>You can reach the person managing the list at
>	python-list-owner at python.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Python-list digest..."
>
>Today's Topics:
>
>   1. Re: Python use growing fast (Colin J. Williams)
>   2. Career path - where next? (Alan Harris-Reid)
>   3. Re: Career path - where next? (Terry Reedy)
>   4. Re: Python use growing fast (Terry Reedy)
>   5. Re: Ideas for a module to process command line arguments
>      (Alice Bevan?McGregor)
>   6. Re: Python use growing fast (Krzysztof Bieniasz)
>   7. Re: Career path - where next? (Jon Clements)
>   8. Re: Career path - where next? (Philip Semanchuk)
>   9. Best way to automatically copy out attachments from an email
>      (Matty Sarro)
>  10. How to populate all possible hierarchical clusterings from a
>      set of	elements? (justin)
>
>On 10-Jan-11 16:02 PM, MRAB wrote:
>> On 10/01/2011 20:29, Dan Stromberg wrote:
>>> I invite folks to check out Tiobe's Language Popularity Rankings:
>>>
>>> http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
>>>
>>> The gist is: Python grew faster than any other programming language
>>> over the last year, according to this (slightly arbitrary, but better
>>> than no indicator) ranking.
>>>
>>> ...despite our wikipedia page whose first paragraph almost seems like
>>> it was written with the intention of scaring off new converts, with
>>> its "unusual" comment:
>>>
>>> http://en.wikipedia.org/wiki/Python_%28programming_language%29
>>>
>>> (Like it or not, people do frequently confuse the descriptive for the
>>> normative)
>>
>> It shows an example of Python code, which happens to have 2 syntax
>> errors!
>
>Why not correct the Wikipedia entry?
>
>Colin W.
>
>
>
>Hi there, I wonder if any Python folk out there can help me.
>
>For many years I was a contractor developing desktop and web 
>applications using Visual Foxpro as my main language, with Foxpro, 
>SQL-server and Oracle as back-end databases.  Unfortunately Foxpro was 
>killed-off by Microsoft, hence my work dried-up and my last 'big' 
>contract ended about a year ago.  Since then I have taken time off 
>programming doing house-renovation, and in the last 6 months I have been 
>updating my programming skills by learning Python (3) with SQLite, 
>JavaScript, HTML and CSS to a level where I can create and deploy 
>data-based web-sites.
>
>My situation now is that I am reasonably comfortable with the above 
>languages and am now in a position where I wish to return to employment 
>using my new and/or existing skills (contract/permanent, full/part-time 
>or teleworking).   However, I have yet to find any UK vacancy which will 
>accept a relative 'beginner' - they all require at least 2-3 years 
>Python in a commercial environment.  It's a catch-22 situation - it's 
>hard to get a job without experience, but you need a job to get 
>experience in the 1st place!
>
>I would even consider doing small projects for nothing so that I can 
>'get my foot in the door' (although I hope to be wise-enough to know 
>when I am being taken advantage of!).  I am also mailing CVs to agencies 
>I think may be interested.
>
>If anyone out has ideas as to how to proceed towards achieving my goal, 
>I would be grateful for any advice.
>
>Regards,
>Alan Harris-Reid
>
>
>
>On 1/12/2011 11:37 AM, Alan Harris-Reid wrote:
>
>...
>> updating my programming skills by learning Python (3) with SQLite,
>> JavaScript, HTML and CSS to a level where I can create and deploy
>> data-based web-sites.
>...
>> I would even consider doing small projects for nothing so that I can
>> 'get my foot in the door' (although I hope to be wise-enough to know
>
>I believe both Roundup/Python tracker and PyPI (Python package index) 
>are based on sqlite and have small projects available/needed. I cannot 
>help you otherwise. Good luck.
>
>-- 
>Terry Jan Reedy
>
>
>
>On 1/12/2011 9:51 AM, Colin J. Williams wrote:
>
>>> It shows an example of Python code, which happens to have 2 syntax
>>> errors!
>>
>> Why not correct the Wikipedia entry?
>
>As I reported early, the errors, if any, are in .png and .svg images of 
>text, which would have to be replaced, not corrected. Would be good 
>since the imaged snippet is a haphazard except from a much larger file 
>and inane out of context.
>
>-- 
>Terry Jan Reedy
>
>
>
>On 2011-01-11 21:41:24 -0800, Michele Simionato said:
>
>> Originally plac too was able to recognize flags automatically by 
>> looking at the default value (if the default value is a boolean then 
>> the option is a flag); however I removed that functionality because I 
>> wanted to be able to differentiate between flag and (smart) options 
>> (see 
>> http://micheles.googlecode.com/hg/plac/doc/plac.html#scripts-with-options-and-smart-options).
>
>Not 
>> 
>entirely sure what you mean by 'smart' options.  If your'e referring to 
>using a single hyphen and a list of characters to represent a long 
>option (which, to the rest of the world, use two leading hyphens) then 
>that's pretty weird.  ;)
>
>Consider most of the GNU tools:
>
>	ls -lvh
>	tar -xzvf file.tgz (goes so far as to make the leading hyphen optional!)
>	less -ceF logfile
>	bc -qw
>	ps -aux (same as tar)
>
>And even third-party tools:
>
>	mysql -fH
>	pg_dump -abO ...
>
>One major system in the world that doesn't really differentiate between 
>long and short options is... DOS, and by extension, Windows.  But they 
>also use / as a switch character.
>
>Anyway; I'm happy with what I have wrought (and am continuing to update 
>with support for class-based sub-command dispatch) and will be 
>utilizing it for all scripts in the Marrow suite.  To each their own, 
>but reinvention itself can be for motivations other than NIH.  I wanted 
>something pure-Python, portable across the 3k barrier without code 
>modification (no 2to3), that didn't use optparse, getopt, or argparse 
>and basically be a translation layer.  It can be simpler than that, as 
>marrow.script demonstrates.
>
>	- Alice.
>
>
>
>
>> As I reported early, the errors, if any, are in .png and .svg images of
>> text, which would have to be replaced, not corrected. Would be good
>> since the imaged snippet is a haphazard except from a much larger file
>> and inane out of context.
>
>I don't think it really is a big deal. I mean, this is merely an 
>illustration for the syntax-highlighted python code. So the message 
>isn't: "Go ahead and try it with your Python". It's rather "Look, you can 
>have colorful highlighting of python code, isn't that cool?!" It actually 
>presents the specific indentation of Python code and therefore it is 
>mostly useful to someone who never used Python. And actually I wouldn't 
>expect any Python programmer to look for feedback on Wikipedia. It's not 
>that I have anything against Wikipedia -- on the contrary, I use it all 
>the time. But remember that it's an encyclopedia not a Python manual.
>
>
>On Jan 12, 4:37 pm, Alan Harris-Reid <aharrisr... at googlemail.com>
>wrote:
>> Hi there, I wonder if any Python folk out there can help me.
>>
>> For many years I was a contractor developing desktop and web
>> applications using Visual Foxpro as my main language, with Foxpro,
>> SQL-server and Oracle as back-end databases.  Unfortunately Foxpro was
>> killed-off by Microsoft, hence my work dried-up and my last 'big'
>> contract ended about a year ago.  Since then I have taken time off
>> programming doing house-renovation, and in the last 6 months I have been
>> updating my programming skills by learning Python (3) with SQLite,
>> JavaScript, HTML and CSS to a level where I can create and deploy
>> data-based web-sites.
>>
>> My situation now is that I am reasonably comfortable with the above
>> languages and am now in a position where I wish to return to employment
>> using my new and/or existing skills (contract/permanent, full/part-time
>> or teleworking).   However, I have yet to find any UK vacancy which will
>> accept a relative 'beginner' - they all require at least 2-3 years
>> Python in a commercial environment.  It's a catch-22 situation - it's
>> hard to get a job without experience, but you need a job to get
>> experience in the 1st place!
>>
>> I would even consider doing small projects for nothing so that I can
>> 'get my foot in the door' (although I hope to be wise-enough to know
>> when I am being taken advantage of!).  I am also mailing CVs to agencies
>> I think may be interested.
>>
>> If anyone out has ideas as to how to proceed towards achieving my goal,
>> I would be grateful for any advice.
>>
>> Regards,
>> Alan Harris-Reid
>
>Hi Alan,
>
>Just some ideas (not in any order, just as they're thought of):-
>
>- Emphasise your experience with Oracle & SQL Server, and use Python
>as a "I also have". It may be someone will accept that as viable
>(saves them a DBA or something), and maybe you'll get into an
>experienced group and get on the job training. (I assume you have good
>SQL skills).
>
>- Look at cwjobs.co.uk / monster / etc..., and search for Python. Get
>a list of agencies there. Phone them *first*, explain what is it
>you've done, and what you can do. If the person seems to know what
>they're talking about send your CV - but chase often.
>
>- Look at web-frameworks. Django seems to be the most listed for
>"required"/"nice to have". Also check out javascript-frameworks -
>jquery & extjs are the biggest 2, so at least you can say you've had
>some experience.
>
>- Perhaps phone your local job centre, and ask for a contact for their
>local volunteer centre. They might have something like work for a
>small charity that just needs a couple of pages done. The idea being:
>1) If it's a cause you believe in, it makes up for not getting paid;
>2) You can use it as an example and reference; 3) You might be able to
>use it as networking - might get a free lunch from an event and meet
>someone with money, that's impressed with your good will and work, and
>just happens to have a job going spare...
>
>- Build a copy of your CV designed for the web. Make sure it looks
>good, is HTML/CSS compliant, and even add some nice interactive stuff
>to it, and include it as a link in your CV. [The other thing you can
>do, is only display the CV on entry of a short PIN (different for each
>one you send - '2431' or something'), then you can log who's bothered
>looking at it, and when, enabling timing of a follow-up better)].
>
>- Look in local papers for local companies that offer not necessarily
>web design, but possibly just print design. See if you can't have a
>chat with them and get some work your way. Other options might be new-
>starts up, non-chain pubs, community/sports clubs, a local church for
>fund-raising, your local chinese/indian takeaway - wouldn't hurt to
>put their menu online with an online order form would it!? [What you
>might find about this, is that as they're not likely to be technical,
>you can take your own time, charge a reasonable amount, experiment a
>little and learn, and not have too tight deadlines or someone looking
>over your shoulder].
>
>Brain (or somewhere else) dump finished.
>
>hth
>
>Jon.
>
>
>
>
>On Jan 12, 2011, at 11:37 AM, Alan Harris-Reid wrote:
>
>> 
>> Hi there, I wonder if any Python folk out there can help me.
>> 
>> For many years I was a contractor developing desktop and web applications using Visual Foxpro as my main language, with Foxpro, SQL-server and Oracle as back-end databases.  Unfortunately Foxpro was killed-off by Microsoft, hence my work dried-up and my last 'big' contract ended about a year ago.  Since then I have taken time off programming doing house-renovation, and in the last 6 months I have been updating my programming skills by learning Python (3) with SQLite, JavaScript, HTML and CSS to a level where I can create and deploy data-based web-sites.
>> 
>> My situation now is that I am reasonably comfortable with the above languages and am now in a position where I wish to return to employment using my new and/or existing skills (contract/permanent, full/part-time or teleworking).   However, I have yet to find any UK vacancy which will accept a relative 'beginner' - they all require at least 2-3 years Python in a commercial environment.  It's a catch-22 situation - it's hard to get a job without experience, but you need a job to get experience in the 1st place!
>> 
>> I would even consider doing small projects for nothing so that I can 'get my foot in the door' (although I hope to be wise-enough to know when I am being taken advantage of!).  I am also mailing CVs to agencies I think may be interested.
>> 
>> If anyone out has ideas as to how to proceed towards achieving my goal, I would be grateful for any advice.
>
>Contributing to open source projects (your own or someone else's) will help to convince some employers that you're worth taking a look at. If nothing else it gives you a public example of the work that you can point them to.
>
>Good luck
>Philip
>
>As of now here is my situation:
>I am working on a system to aggregate IT data and logs. A number of
>important data are gathered by a third party system. The only
>immediate way I have to access the data is to have their system
>automatically email me updates in CSV format every hour. If I set up a
>mail client on the server, this shouldn't be a huge issue.
>
>However, is there a way to automatically open the emails, and copy the
>attachments to a directory based on the filename? Kind of a weird
>project, I know. Just looking for some ideas hence posting this on two
>lists.
>
>Thanks all, and happy hump day!
>-Matty
>
>
>The title sounds too complex, but my question is actually simple.
>
>Suppose I have [1,2,3,4,5], then there are many ways of making
>clustering.
>Among them, I want to pair up terminals until there is only one left
>at the end.
>For example, ((((1,2),3),4),5), (1,(2,(3,(4,5)))), or (((1,2),(3,4)),
>5) would be legitimate ones.
>
>How do you think can I, using the modules of Python such as itertools
>as much as possible, make all possible such clusterings?
>
>Thanks in advance,
>Justin.
>
>
>-- 
>http://mail.python.org/mailman/listinfo/python-list


More information about the Python-list mailing list