symlinks with python3 http.server.CGIHTTPRequestHandler

2022-01-10 Thread Nat Taylor
Is it possible to get http.server.CGIHTTPRequestHandler to run a symlink-ed script? In the example below, GET /cgi-bin/test.py results in a 404 because it is a symlink. % mkdir -p test/cgi-bin % cd test % vi test.py % chmod +x test.py % ln -s test.py cgi-bin % cp test.py cgi-bin/test2.py % chmod

Using Python with a website

2018-07-04 Thread Adrian Taylor
line prompt. Can anyone help? Regards, Adrian Taylor InfoHub - ICT - Helpdesk A : 5 Faith Avenue, Plainland , QLD 4341 T : 07 5466 9900 E : atay...@faithlc.qld.edu.au<mailto:atay...@faithlc.qld.edu.au> W : www.faithlc.qld.edu.au<http://www.faithlc.qld.edu.au/> [cid:image005.png@

Re: logger.info / logger.error with logger.addHandler - how to split streams?

2016-12-28 Thread Alec Taylor
Thanks On Tue, Dec 27, 2016 at 2:57 AM, gst wrote: > Le lundi 26 décembre 2016 10:34:48 UTC-5, Alec Taylor a écrit : > > So I'm putting .info in one StringIO and .error in another StringIO. > > > > How do I stop them from both being put into both? > > > > C

logger.info / logger.error with logger.addHandler - how to split streams?

2016-12-26 Thread Alec Taylor
So I'm putting .info in one StringIO and .error in another StringIO. How do I stop them from both being put into both? Code: http://ideone.com/Nj6Asz -- https://mail.python.org/mailman/listinfo/python-list

Re: Force virtualenv pip to be used

2016-11-07 Thread Alec Taylor
On Monday, November 7, 2016 at 1:07:12 AM UTC+11, Chris Angelico wrote: > On Sun, Nov 6, 2016 at 10:19 PM, Peter Otten <__pete...@web.de> wrote: > > Chris Angelico wrote: > > > >> On Sun, Nov 6, 2016 at 9:17 PM, Alec Taylor > >> wrote: > >>> Ru

Re: Force virtualenv pip to be used

2016-11-06 Thread Alec Taylor
On Sunday, November 6, 2016 at 10:20:53 PM UTC+11, Peter Otten wrote: > Chris Angelico wrote: > > > On Sun, Nov 6, 2016 at 9:17 PM, Alec Taylor > > wrote: > >> Running Ubuntu 16.10 with Python 2.7.12+ (default one) and virtualenv > >> 15.0.3 (`sudo -H pip i

Force virtualenv pip to be used

2016-11-06 Thread Alec Taylor
Running Ubuntu 16.10 with Python 2.7.12+ (default one) and virtualenv 15.0.3 (`sudo -H pip install virtualenv`). What am I doing wrong? $ virtualenv a && . "$_"/bin/activate && pip --version New python executable in /tmp/a/bin/python Installing setuptools, pip, wheel...done. pip 9.

Install Error

2016-02-04 Thread Barrie Taylor
ram to fix this problem.' Needless to say, I have tried uninstalling and reinstalling ad repairing the program a number of times to no avail. Any help with this issue would be greatly appreciated. Kind Regards, Barrie Taylor -- https://mail.pyt

Re: building c extensions with setuptools that are not tied to python installed on build machine

2015-02-12 Thread Matthew Taylor
Ned, thank you for your insight on this problem. I will take your advice and do some more digging. You've been very helpful. Regards, - Matt Taylor OS Community Flag-Bearer Numenta On Wed, Feb 11, 2015 at 4:23 PM, Ned Deily wrote: > In article > , > Matthew Taylor

JDBC support in a CPython ORM? - Maybe via the JayDeBeApi package?

2015-02-11 Thread Alec Taylor
Attempting to connect to Hadoop-based SQL layers, which are [practically] all written in JVM languages. Sure, I can use something like JayDeBeApi, but I would prefer proper object mapping. How would I go about interfacing with e.g.: SQL Alchemy or peewee-orm? Thanks for all suggestions -- htt

building c extensions with setuptools that are not tied to python installed on build machine

2015-02-11 Thread Matthew Taylor
7;re doing something egregiously wrong. [1] https://github.com/numenta/nupic [2] https://travis-ci.org/numenta/nupic [3] https://github.com/numenta/nupic/issues/1813 [4] https://github.com/numenta/nupic/blob/master/setup.py Thanks thanks in advance, - Matt Taylor OS Community Flag-Bear

Re: Help with map python 2

2015-01-04 Thread Alec Taylor
^To print the first 8. To print the first 100: map(lambda i: -i if i&1==1 else i, xrange(2, 102)) On Sun, Jan 4, 2015 at 10:47 PM, Alec Taylor wrote: > map(lambda i: -i if i&1==1 else i, xrange(2, 10)) > > On Sun, Jan 4, 2015 at 10:34 PM, flebber wrote: >> In repsonse to

Re: Help with map python 2

2015-01-04 Thread Alec Taylor
map(lambda i: -i if i&1==1 else i, xrange(2, 10)) On Sun, Jan 4, 2015 at 10:34 PM, flebber wrote: > In repsonse to this question: Write a program that prints the first 100 > members of the sequence 2, -3, 4, -5, 6, -7, 8. > > This is my solution it works but ugly. > > series = range(2,100) > # a

Python REST API Wrapper framework?

2014-12-12 Thread Alec Taylor
It's not overly difficult to build a wrapper of someones RESTfull HTTP API using something like: urllib2 or requests. However, there is still a decent amount of generic boilerplate required. Are there any decent frameworks around which reduce the amount of boilerplate required to consume 3rd-part

Re: To automate email login through browser

2014-08-29 Thread Beau Taylor
Have you tried Selenium Python? http://selenium-python.readthedocs.org/ Beau On Fri, Aug 29, 2014 at 4:11 PM, subin alex wrote: > Hi Guys, > > I am very new to python and am trying to learn python. > I want to automate my email login through browser,in a way that when my > computer boots up,it

Re: Is pip being automatically installed for Python 3.4.0?

2014-07-04 Thread Conrad Taylor
On Wednesday, July 2, 2014 9:59:46 PM UTC-7, Ned Deily wrote: > In article , > > Conrad Taylor wrote: > > > Hi, shouldn't pip be automatically installed for Python 3.4.0 release? I > > > have read through the release and the PEP 453. Thus, can someone confir

Re: Is pip being automatically installed for Python 3.4.0?

2014-07-02 Thread Conrad Taylor
On Wednesday, July 2, 2014 6:29:53 PM UTC-7, Frank Liou wrote: > it's truth > > > > pip will be automatically install Python3.4.0 > > > > if you want to use another version > > > > you should use wget This doesn't appear to be the case when installing via MacPorts. -- https://mail.pyth

Is pip being automatically installed for Python 3.4.0?

2014-07-02 Thread Conrad Taylor
Hi, shouldn't pip be automatically installed for Python 3.4.0 release? I have read through the release and the PEP 453. Thus, can someone confirm whether or not this is the case? BTW, I have installed Python 3.4.0 using MacPorts. -- Think different and code well, -Conrad -- https://mail.p

Re: Kivy contest 2014

2014-03-19 Thread Alexander Taylor
The theme will be announced when the contest officially starts, the 15th April. On Wednesday, 19 March 2014 09:27:14 UTC, audiowerk wrote: > > Hi! > > Is there already a date when the theme will be announced? > > Am Sonntag, 16. März 2014 18:42:16 UTC+1 schrieb qua-non: >> >> Hi folks, >> >> Kivy

Output JSON-schema from bottle application?

2014-02-27 Thread Alec Taylor
How do I do this? Thanks for all suggestions, Alec Taylor -- https://mail.python.org/mailman/listinfo/python-list

Looking for an open-source: Task, feature and issue tracker

2014-02-20 Thread Alec Taylor
Python which cover this list; then do you know of ones written in any language with this support? Finally if there are no open-source projects fully covering this feature-set; can you recommend a proprietary offering? Thanks for all suggestions, Alec Taylor -- https://mail.python.org/mailman/listinfo/python-list

Generating documentation for Python and JavaScript/AngularJS to the one doc server?

2014-01-19 Thread Alec Taylor
The advantages of this approach include: - Consistent docstring syntax everywhere - Centralsied documentation server; find all your docs in one place Search and jump-to-source from any documented function or class; in either language Are there any modules integrating with Sphinx or simila

Re: Suggest an open-source log analyser?

2014-01-08 Thread Alec Taylor
So yeah, if you know of a good one; please share. Thanks On Sun, Jan 5, 2014 at 2:50 PM, Alec Taylor wrote: > Because I'm thinking that something with a much less expressive query > interface would serve me better in the long run... e.g.: Redis or > maybe Hadoop > > On Sat,

Using multiple ORMs? - And SQLalchemy vs Pony vs Peewee vs stdnet vs …

2014-01-04 Thread Alec Taylor
something other than the 4 mentioned in the subject which I should look into? Thanks for all suggestions, Alec Taylor -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggest an open-source log analyser?

2014-01-04 Thread Alec Taylor
Because I'm thinking that something with a much less expressive query interface would serve me better in the long run... e.g.: Redis or maybe Hadoop On Sat, Jan 4, 2014 at 5:35 PM, Walter Hurry wrote: > On Thu, 02 Jan 2014 16:40:19 +1100, Alec Taylor wrote: > >> I use the Py

Highest performance HTTP REST microframework?

2014-01-03 Thread Alec Taylor
What is the highest performance REST microframework? Happy if it's mostly written in C or C++; as long as it provides a simple routes interface in Python. Currently using bottle and utilising its application, @route and app.merge(app2) extra features. -- https://mail.python.org/mailman/listinfo/

Re: Suggest an open-source log analyser?

2014-01-03 Thread Alec Taylor
, 2014 at 1:13 AM, William Ray Wing wrote: > On Jan 2, 2014, at 12:40 AM, Alec Taylor wrote: > >> I use the Python logger class; with the example syntax of: >>Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') >> >> Can of course eas

Suggest an open-source log analyser?

2014-01-01 Thread Alec Taylor
r drilling down into my logs? Thanks for your suggestions, Alec Taylor -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-22 Thread Alec Taylor
Miki: I would much prefer a Python implementation. On Thu, Nov 21, 2013 at 4:07 AM, Miki Tebeka wrote: > On Wednesday, November 20, 2013 6:36:56 AM UTC-8, Alec Taylor wrote: >> Anyway, here is the link: https://github.com/rauhryan/huboard > I thought you wanted a Python ba

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-20 Thread Alec Taylor
I actually did end up finding one; but now need bitbucket integration also. Anyway, here is the link: https://github.com/rauhryan/huboard On Mon, Nov 18, 2013 at 5:47 AM, Kevin Walzer wrote: > On 11/13/13, 7:46 AM, Alec Taylor wrote: >> >> Started to build this on my own; then wa

How can I get the variable to subtract the input please?

2013-11-18 Thread Ed Taylor
This will be very simple to most of you I guess but it's killing me! print ("Please type in your age") age = input () leave = 16 print ("You have" + leave - age + "years left at school") I want to have an input where the users age is inserted and then subtracted from the variable age which is s

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-17 Thread Alec Taylor
Thanks, I have actually been leaning towards Apache Bloodhound (which is built on Trac) On Sun, Nov 17, 2013 at 12:28 PM, Miki Tebeka wrote: >> Can you recommend an open source project (or two) written in Python; >> which covers multi project + sub project issue tracking linked across >> github r

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-16 Thread Alec Taylor
Also my team is a Python dev team; so why not choose an open platform written in Python from which we can easily contribute to? On Sun, Nov 17, 2013 at 4:24 AM, Thomas Mlynarczyk wrote: > Jason Friedman schrieb: >> >> >> Can you recommend an open source project (or two) written in Python; >>

Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-13 Thread Alec Taylor
ks for all suggestions! =) Alec Taylor -- https://mail.python.org/mailman/listinfo/python-list

Highest performance [benchmarked] "HTTP microframework"?

2013-11-12 Thread Alec Taylor
s? Thanks for all suggestions, Alec Taylor -- https://mail.python.org/mailman/listinfo/python-list

Open-source vs. closed-source for centralised social-networks?

2013-08-13 Thread Alec Taylor
Fear open-sourcing fledgling social-networks; as centralisation is easily losable. Open-sourcing social-networks when large, seems to work (e.g.: Reddit). Without centralisation it becomes difficult to establish community. An example of a "decentralised" open-source social-network is: Disapora.

Re: Designing a Pythonic search DSL for SQL and NoSQL databases

2013-07-19 Thread Alec Taylor
tages abstracting their differences creates. On Fri, Jul 19, 2013 at 10:49 PM, Roy Smith wrote: > In article , > Alec Taylor wrote: > >> Dear Python community, >> >> I am analysing designing an abstraction layer over a select few NoSQL >> and SQL databases. >> &g

Designing a Pythonic search DSL for SQL and NoSQL databases

2013-07-19 Thread Alec Taylor
subset of PEP249, e.g.: `fetchone` and `fetchmany` Will open-source this once it's of sufficient functionality. What do you think? Advice on better design; or just feedback on what I've mentioned? Thanks, Alec Taylor PS: I am using Bottle. You'll note that some of the syntax I&#

Highest performance Python framework for API exposure?

2013-05-03 Thread Alec Taylor
ueues. An additional requirement is support for serving static, downloadable content efficiently. Currently looking at Falcon, Bottle and Werkzeug. Suggestions are greatly appreciated. Thanks, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: How to choose between ORMs?

2013-04-03 Thread Alec Taylor
I know None. Currently I use web2py's; which is a DAL not an ORM. On Thu, Apr 4, 2013 at 4:05 AM, Rodrick Brown wrote: > Pick the one you learn and know. > > Sent from my iPhone > > On Apr 3, 2013, at 2:17 AM, Alec Taylor wrote: > >> SQLalchemy and Storm are a few

How to choose between ORMs?

2013-04-02 Thread Alec Taylor
e NoSQL systems; what else should I be looking for? Thanks for all suggestions, Alec Taylor *not sure if widgets should be a requirement; by widgets I mean annotation of db schema to specify which widget to use with the form generator PS: Will likely use this ORM with: Flask, Bottle or Twisted

Are there any Python libraries/frameworks which generate AngularJS?

2013-03-19 Thread Alec Taylor
RESTful setup; with JSON as format] Thanks for all suggestions, Alec Taylor BTW: Also posted this on stackoverflow - http://stackoverflow.com/q/15513907 PS: I currently use the web2py framework; but this is an important enough feature that I am willing to switch to ANY other Python web-framework

Re: Python source to C++ and/or Java

2013-03-07 Thread Alec Taylor
Saw a talk at a Python usergroup today which talked about: Ply http://www.dabeaz.com/ply/ But you're probably looking for Cython. Python can run of the JRE e.g.: see Jython. There was also another one that you can use to build C extensions with, it was MP... something On Fri, Mar 8, 2013 at 2:1

Re: PyQT app accessible over network?

2013-02-24 Thread Alec Taylor
On Sat, Feb 23, 2013 at 10:37 AM, Michael Torrie wrote: > On 02/22/2013 02:49 PM, Monte Milanuk wrote: >> Web2py does seem pretty attractive in that it seems to come with a lot >> of functionality rolled in already. It seems to be pretty easy to >> deploy... since this would be more of a case whe

Re: PyQT app accessible over network?

2013-02-22 Thread Alec Taylor
Monte: I noticed you mentioned web2py; that would be my recommendation. You also mention different features being available to different users; perfect use-case for web2py's built-in RBAC. Scalability: Go with Postgres, MySQL; or considering how much data you're talking about, even SQLite would b

Re: Number validation issue

2013-02-22 Thread Alec Taylor
Whoops, my mistake: In [5]: [not len(x) >= 2 and len(x)<=25 for x in [str(y) for y in xrange(30)]] Out [5]: [True]*10, [False]*20 But still, I'm guessing that's not the result you were looking for… On Sat, Feb 23, 2013 at 2:30 AM, Alec Taylor wrote: > Out[1]: '0 1 2 3

Re: Number validation issue

2013-02-22 Thread Alec Taylor
Out[1]: '0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29' In [2]: [not len(x) >= 2 and len(x)<=25 for x in _] Out[2]: [True]*79 # shorthand to prevent spam I trust you can see the error now! On Sat, Feb 23, 2013 at 2:09 AM, Morten Engvoldsen wrote: > Hi , > I ha

Re: Thoughts on SQL vs ORM

2013-02-06 Thread Alec Taylor
I agree that ORMs can be rather complicated; especially when you need to do some refactoring. Another reason not to use ORMs is difficult of measuring query complexity. However, some of the most major advantages of ORMs are: - Generation of forms - Same code can be used with multiple backends - T

Re: Compiling native extensions with Visual Studio 2012?

2013-01-12 Thread Alec Taylor
On Sun, Jan 13, 2013 at 1:34 AM, Christian Heimes wrote: > Am 12.01.2013 08:45, schrieb Alec Taylor: >> There have been various threads for MSVC 2010[1][2], but the most >> recent thing I found for MSVC 2012 was [3]… from 6 months ago. >> >> Basically I want to be able

Re: Compiling native extensions with Visual Studio 2012?

2013-01-12 Thread Alec Taylor
Okay, got all extensions I require to compile successfully with MSVC 2012. Trick was using this fork: https://github.com/wcdolphin/py-bcrypt (See their issue log for traceback) =] On Sat, Jan 12, 2013 at 6:45 PM, Alec Taylor wrote: > There have been various threads for MSVC 2010[1][2],

Re: Command Line Progress Bar

2012-12-26 Thread Alec Taylor
On Thu, Dec 27, 2012 at 3:05 AM, Irmen de Jong wrote: > On 26-12-2012 7:17, Kevin Anthony wrote: >> Hello, >> I'm writing a file processing script(Linux), and i would like to have a >> progress bar. >> But i would also like to be able to print messages. Is there a simple way >> of doing >> thi

MVC web-framework with RESTfully Decoupled Views?

2012-12-07 Thread Alec Taylor
frameworks which has added functionality for generating decoupled views? Thanks for all suggestions, Alec Taylor BTW: Full disclosure, also posted this on stackoverflow: http://stackoverflow.com/q/13761200 -- http://mail.python.org/mailman/listinfo/python-list

Re: Yet another Python textbook

2012-11-22 Thread Alec Taylor
you so much. > > I edited the textbook based on responses that I received. Based > on several inquiries we also decided to add Python 3.2 to NCLab. > New release is coming in one or two weeks. > > Cheers, > > Pavel > > > On Wed, Nov 21, 2012 at 4:34 PM, Alec Taylor wrot

Re: surprising += for lists

2012-11-04 Thread Alec Taylor
Quick aside, you can insert tuples without much effort: `points += ((3,5),)` And also that I can't do the reverse, i.e.: >>> foo = tuple() >>> foo += [5,6] Traceback (most recent call last): File "", line 1, in TypeError: can only concatenate tuple (not "list") to tuple On Sun, Nov 4, 2012 at

Re: can we append a list with another list in Python ?

2012-10-23 Thread Alec Taylor
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> [1,2,3,4,5] + [99,88,77,66,0] [1, 2, 3, 4, 5, 99, 88, 77, 66, 0] On Tue, Oct 23, 2012 at 6:36 PM, inshu chauhan wrote: > can we append a li

Re: pydelicious documentation

2012-10-10 Thread Alec Taylor
No worries, happy to help :) On Tue, Oct 9, 2012 at 11:44 PM, Andres Soto wrote: > This one I didn't know > Thanks you! > Prof. Dr. Andrés Soto > > > ________ > From: Alec Taylor > To: Andres Soto > Cc: "python-list@python.org"

Re: pydelicious documentation

2012-10-09 Thread Alec Taylor
Actually it seems this project has been official abandoned. Unofficially use this, was updated only a month ago: https://github.com/mgan59/python-pinboard On Tue, Oct 9, 2012 at 10:47 PM, Alec Taylor wrote: > Hi Professor Soto, > > Not sure what's going on with their servers'

Re: pydelicious documentation

2012-10-09 Thread Alec Taylor
lecode.com/svn/trunk/doc/htmlref/dlcs.html https://pydelicious.googlecode.com/svn/trunk/doc/htmlref/pydelicious.html Just save the files locally then open them in your browser. All the best, Alec Taylor On Tue, Oct 9, 2012 at 10:06 PM, Andres Soto wrote: > Does somebody know where

Re: REST code-golf: How concisely can you expose and consume services?

2012-09-28 Thread Alec Taylor
On Sat, Sep 29, 2012 at 12:17 AM, Demian Brecht wrote: > (A little OT so my apologies up front) > > > On 12-09-28 12:39 AM, Chris Angelico wrote: >> >> I love the idea, even though I shan't be entering. Code golf is awesome >> fun! > > > Code golf is indeed awesome fun and I usually enjoy taking p

REST code-golf: How concisely can you expose and consume services?

2012-09-27 Thread Alec Taylor
web2py (7 lines): https://gist.github.com/3798093 Includes creation of models, validator, controllers and urls. Rules: - Must have [at least] the same functionality as my 7-line example - Imports are allowed and not taken into line count, on the condition that everything remains generic. I.e.: on

Re: Fastest web framework

2012-09-26 Thread Alec Taylor
Thanks Andriy for benchmarking web2py. With this public benchmark the entire web2py community will be hard at work to bring our numbers up higher :) On Tue, Sep 25, 2012 at 9:01 PM, Andriy Kornatskyy < andriy.kornats...@live.com> wrote: > > Alec > > While performing benchmark for web2py I notice

Re: Fastest web framework

2012-09-24 Thread Alec Taylor
Can you throw in web2py? Thanks On Sun, Sep 23, 2012 at 7:19 PM, Andriy Kornatskyy < andriy.kornats...@live.com> wrote: > > I have run recently a benchmark of a trivial 'hello world' application for > various python web frameworks (bottle, django, flask, pyramid, web.py, > wheezy.web) hosted in

Re: For Counter Variable

2012-09-23 Thread Alec Taylor
You can always use a counter if you don't like our fancy for-each loops; foolist = [1,24,24,234,23,423,4] for i in xrange(len(foolist)): print foolist[i] On Mon, Sep 24, 2012 at 9:29 AM, Tim Chase wrote: > On 09/23/12 17:54, Steven D'Aprano wrote: > > On Sun, 23 Sep 2012 10:45:53 -0700, jimb

Re: submit jobs on multi-core

2012-09-11 Thread Alec Taylor
http://celeryproject.org/ Don't eat it all at once On Tue, Sep 11, 2012 at 2:16 PM, Dhananjay wrote: > Dear all, > > I have a python script in which I have a list of files to input one by one > and for each file I get a number as an output. > I used for loop to submit the file to script. > My sc

Re: python CAD libraries?

2012-09-11 Thread Alec Taylor
Blender is definitely the most popular open-source CAD software; it has even forked its own version of Python to make things run neatly :P On Tue, Sep 11, 2012 at 5:33 PM, Dwight Hutto wrote: > And just a little more for you from: > > http://wiki.python.org/moin/Applications#A3D_CAD.2FCAM > > Thi

Re: running Lua in Python

2012-09-02 Thread Alec Taylor
Or you can use a module made for this task: http://labix.org/lunatic-python http://pypi.python.org/pypi/lupa On Sun, Sep 2, 2012 at 7:24 PM, Ian Kelly wrote: > > On Sun, Sep 2, 2012 at 3:04 AM, Arnaud Delobelle wrote: > > Hi all, > > > > I'm looking for a way to run Lua scripts in Python, and

Re: Intermediate Python user needed help

2012-08-06 Thread Alec Taylor
On Tue, Aug 7, 2012 at 2:05 AM, Ethan Furman wrote: > John Mordecai Dildy wrote: >> >> I am currently using python 2.6 and am not going to install the newer >> versions of python and i am looking for people that are still using ver 2.6 >> in python to help with with the code line: >> >> sentence =

Re: PyPy, is it a 1:1 replacement for CPython?

2012-07-20 Thread Alec Taylor
ask on PyPy's list But yes, it is designed as a 1:1 replacement of CPython On Sat, Jul 21, 2012 at 1:35 PM, Simon Cropper wrote: > Hi, > > Can you use PyPy as a direct replacement for the normal python or is it a > specialized compiler that can only work with libraries that are manipulated > to

Re: OAuth 2.0 implementation

2012-07-06 Thread Alec Taylor
est. > > Unfortunately AFAIK (according to the OAuth provider list on Wikipedia), > both Twitter and LinkedIn still use OAuth 1.0a, so until they hop on the > OAuth 2.0 bandwagon, they won't be added. > > -Original Message- > From: Alec Taylor [mailto:alec.tayl...@gmail

Re: OAuth 2.0 implementation

2012-07-06 Thread Alec Taylor
have been untested > thus far. Looking good. Keep adding more to the list! I'd especially be interesting in seeing the 3-phase Twitter and LinkedIn auths added to the list. Also I'll be extending it a little more at some point to make it "friendlier" :P Thanks fo

Re: OAuth 2.0 implementation

2012-07-05 Thread Alec Taylor
On Fri, Jul 6, 2012 at 12:06 AM, Demian Brecht wrote: > FWIW, this package has undergone a major overhaul (474 LOC down to much > happier 66) and is available at https://github.com/demianbrecht/sanction. > Also available from PyPI. Thanks for this, I've now shared it on my favourite web-framewo

Re: Python and Facebook

2012-06-24 Thread Alec Taylor
This is the most active one, forked from the official facebook one (when they used to maintain it themselves): https://github.com/pythonforfacebook/facebook-sdk On Mon, Jun 25, 2012 at 1:35 AM, Chris Angelico wrote: > On Mon, Jun 25, 2012 at 1:16 AM, Jerry Rocteur > wrote: >> >> Hi, >> >> I pos

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Alec Taylor
On Sun, Jun 10, 2012 at 8:44 AM, Yesterday Paid wrote: > > I'm planning to learn one more language with my python. > Someone recommended to do Lisp or Clojure, but I don't think it's a > good idea(do you?) > So, I consider C# with ironpython or Java with Jython. > It's a hard choice...I like Visua

Re: Academic citation of Python

2012-06-15 Thread Alec Taylor
I think it's more like when you see articles with a passage like: The C programming language[1] or the C++ programming language[2] are both > examples of... > Are both easy to find the proper reference for. On Sat, Jun 16, 2012 at 2:13 PM, Ben Finney wrote: > Mark Livingstone writes: > > > I

Re: Academic citation of Python

2012-06-15 Thread Alec Taylor
Maybe quote the "Programming Python" book, since Guido wrote the forward? http://www.python.org/doc/essays/foreword2/ On Sat, Jun 16, 2012 at 1:24 PM, Mark Livingstone wrote: > Hello! > > I wish to properly cite Python in an academic paper I am writing. > > Is there a preferred document etc to c

Re: PIL for the Python 3.2.3

2012-06-15 Thread Alec Taylor
On Fri, Jun 15, 2012 at 10:18 PM, Gonzalo de Soto wrote: > Dear Python Org, > > It wanted to know if already PIL's > version is available for Python 3.2.3. > > ** ** > > Thanks. > >Gonzalo > > > > ** ** > > * * > >

python View Controller for decoupled website architectures?

2012-06-03 Thread Alec Taylor
an you show me some boilerplate for session control, routing and RBAC templates? Thanks, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

Templating library which generates HTML+JS for interfacing RESTfully?

2012-05-31 Thread Alec Taylor
n, forced redirects and more fine grained RBAC. Is there a templating language which can easily interface via REST (XML xor JSON), XMLRPC xor JSONRPC? Thanks for all information and suggestions, Alec Taylor [1] | The example JavaScript widgets: - DISQUS gives the following snip

Automatically caching computationally intensive variable values?

2012-05-26 Thread Alec Taylor
I am working with a few corpora included in nltk-data with NTLK (http://nltk.org/) to figure out certain algorithms. So my code would generally be something of the style: import re, nltk, random from nltk.corpus import reuters def find_test_and_train_data():

Python web-framework+db with the widest scalability?

2012-05-14 Thread Alec Taylor
g. Django, Web2Py or Flask—would you recommend? Thanks for all suggestions, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: Good data structure for finding date intervals including a given date

2012-05-13 Thread Alec Taylor
There is an ordered dict type since Python 3.1[1] and Python 2.7.3[2]. If you are looking for the best possible self-sorting structure for searching, then perhaps you are looking for what's outlined in the 2002 article by Han & Thorup: Integer Sorting in O(n sqrt(log log n)) Expected Time and Line

Re: Opening a csv file in python on a mac

2012-05-12 Thread Alec Taylor
Import csv Lookup usage in the python docs On 13/05/2012 9:22 AM, "Brian Heese" wrote: > I created a csv file called python test file.csv. It is stored on my > Desktop directory. When I try to open it using the command open ('Desktop > python test file.csv') I get the following error: "No such

Python web-framework with the widest scalability?

2012-05-12 Thread Alec Taylor
I am building a project requiring high performance and scalability, entailing: - Role-based authenticationwith API-keylicensing to access data of specific users - A

Re: which book?

2012-05-08 Thread Alec Taylor
plot issues? On Wed, May 9, 2012 at 4:16 AM, wrote: > folks > hi, > I am going to learn python for some plot issues. which book or sources, do > you recommend please? > Cheers, > Dave > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-l

Re: sorting 1172026 entries

2012-05-06 Thread Alec Taylor
Also, is there a reason you are sorting the data-set after insert rather than using a self-sorting data-structure? A well chosen self-sorting data-structure is always more efficient when full data flow is controlled. I.e.: first insert can be modified to use the self-sorting data-structure I can

Re: Python SOAP library

2012-05-02 Thread Alec Taylor
Client and server (unfortunately) I need to support serialisation between formats On Thu, May 3, 2012 at 7:24 AM, John Nagle wrote: > On 5/2/2012 8:35 AM, Alec Taylor wrote: >> >> What's the best SOAP library for Python? >> I am creating an API converter which wil

Python SOAP library

2012-05-02 Thread Alec Taylor
r all information, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

How would I go about building an API converter?

2012-05-02 Thread Alec Taylor
of problem Slumber <http://slumber.in/> with TastyPie<http://tastypieapi.org/>would be best for? Or are there a different libraries you'd recommend? Thanks for all suggestions, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 274

2012-04-07 Thread Alec Taylor
I have it in 2.7.3 On Sun, Apr 8, 2012 at 2:35 AM, Terry Reedy wrote: > On 4/7/2012 7:20 AM, Rodrick Brown wrote: >> >> This proposal was suggested in 2001 and is only now being >> implemented. Why the extended delay? > > > It was implemented in revised form 3 years ago in 3.0. > > -- > Terry Jan

Re: Is Programing Art or Science?

2012-04-03 Thread Alec Taylor
Programming is neither Art nor Science It's practically maths [pun intended] -- http://mail.python.org/mailman/listinfo/python-list

Templated rich-text egg

2012-03-23 Thread Alec Taylor
me to do the aforementioned. Thanks for all recommendations, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is readable

2012-03-15 Thread Alec Taylor
On Fri, Mar 16, 2012 at 1:16 AM, Kiuhnm wrote: > On 3/15/2012 13:21, Chris Angelico wrote: >> >> On Thu, Mar 15, 2012 at 10:59 PM, Kiuhnm >>  wrote: >>> >>> On 3/15/2012 12:47, Chris Angelico wrote: It's a little odd, perhaps, if seen in a vacuum. But everything counts from zero -

Re: Python is readable

2012-03-15 Thread Alec Taylor
On Fri, Mar 16, 2012 at 1:06 AM, Mark Lawrence wrote: > Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > with open("filename", "w") as f >  File "", line 1 > >    with open("filename

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-14 Thread Alec Taylor
Oh wait, just realised it was loading the (x86) tools. Doing a quick search I noticed that I didn't have the x64 components installed, so loading up the MSVC08 setup again and installing it, then: copying vcvarsamd64.bat to vcvarsall.bat and adding its directory (C:\Program Files (x86)\Microsoft Vi

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
Nope, I have C:\Python27 (and C:\Python27\Scripts) in my PATH. C:\workingdir\pycrypto>where python C:\Python27\python.exe On Tue, Mar 13, 2012 at 4:44 PM, Case Van Horsen wrote: > On Mon, Mar 12, 2012 at 9:57 PM, Alec Taylor wrote: >> Hmm, I just tried that method, but the outp

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
on _initwinrandom winrand.obj : error LNK2019: unresolved external symbol __imp__PyType_Type referenced in function _initwinrandom build\lib.win-amd64-2.7\Crypto\Random\OSRNG\winrandom.pyd : fatal error LNK1120: 21 unresolved externals error: command '"C:\Program Files (x86)\Microsoft Visual

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
FYI: When running "vcvarsall" manually, I get a variety of linker errors, even though I have the SDK and everything else installed: running build_ext building 'Crypto.Random.OSRNG.winrandom' extension C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DND

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-12 Thread Alec Taylor
vc9compiler.py", line 383, in initialize vc_env = query_vcvarsall(VERSION, plat_spec) File "C:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall raise ValueError(str(list(result.keys( ValueError: [u'path'] On Wed, Feb 8, 2012 at 11:31 PM

Porting the 2-3 heap data-structure library from C to Python

2012-03-07 Thread Alec Taylor
recommended method. Any best practices for how best to wrap the 2-3 heap data-structure from C to Python? Thanks for all suggestions, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

Spacing and timing for comparing algorithms and data-structures

2012-03-01 Thread Alec Taylor
What would you recommend I use to compare data-structures and algorithms on space and time? (runtime) Thanks for all suggestions, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >