Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-03 Thread vasudevram
On Sunday, May 3, 2015 at 4:48:11 AM UTC+5:30, Terry Reedy wrote: On 5/2/2015 4:02 PM, vasudevram wrote: Hi group, Please refer to this blog post about code showing that a Python data structure can be self-referential: http://jugad2.blogspot.in/2015/05/can-python-data-structure

Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-03 Thread vasudevram
On Sunday, May 3, 2015 at 1:32:14 AM UTC+5:30, vasudevram wrote: Hi group, Please refer to this blog post about code showing that a Python data structure can be self-referential: http://jugad2.blogspot.in/2015/05/can-python-data-structure-reference.html Gotten a couple of comments

Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-03 Thread vasudevram
On Sunday, May 3, 2015 at 6:30:16 PM UTC+5:30, vasudevram wrote: On Sunday, May 3, 2015 at 4:48:11 AM UTC+5:30, Terry Reedy wrote: On 5/2/2015 4:02 PM, vasudevram wrote: Hi group, Please refer to this blog post about code showing that a Python data structure can be self-referential

Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-03 Thread vasudevram
On Sunday, May 3, 2015 at 6:38:28 PM UTC+5:30, Chris Angelico wrote: On Sun, May 3, 2015 at 10:59 PM, vasudevram vasudev...@gmail.com wrote: Re. statement of fact vs. hypotheses. While I'm not sure of your exact meaning in that paragraph, I understand the concept, and yes, I was not clear

Re: Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-02 Thread vasudevram
On Sunday, May 3, 2015 at 1:47:04 AM UTC+5:30, Tim Chase wrote: [dangit, had Control down when I hit enter and it sent prematurely] On 2015-05-02 13:02, vasudevram wrote: http://jugad2.blogspot.in/2015/05/can-python-data-structure-reference.html https://docs.python.org/2/reference

Inner workings of this Python feature: Can a Python data structure reference itself?

2015-05-02 Thread vasudevram
Hi group, Please refer to this blog post about code showing that a Python data structure can be self-referential: http://jugad2.blogspot.in/2015/05/can-python-data-structure-reference.html Gotten a couple of comments on it already, but interested in hearing thoughts of Python core dev team

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-22 Thread vasudevram
Thanks to all those who answered. - Vasudev -- https://mail.python.org/mailman/listinfo/python-list

Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-21 Thread vasudevram
Hi list, Can anyone - maybe one of the Python language core team, or someone with knowledge of the internals of Python - can explain why this code works, and whether the different occurrences of the name x in the expression, are in different scopes or not? : x = [[1,2], [3,4], [5,6]] [x

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-21 Thread vasudevram
On Saturday, March 22, 2014 2:24:00 AM UTC+5:30, Rustom Mody wrote: Lets try without comprehending comprehensions :-) x=[[1,2],[3,4]] for x in x: ... for x in x: ... print x ... 1 2 3 4 Nice and all, thanks, but doesn't answer the question. --

Domino, a Python PaaS for data science

2013-12-08 Thread vasudevram
Hi list, This may be of interest: Domino, a Python PaaS for data science: http://jugad2.blogspot.in/2013/12/domino-paas-for-data-science.html - Vasudev Ram Software training and consulting Python, Linux, C, open source, databases ... www.dancingbison.com jugad2.blogspot.com --

Approach to creating a Boolean expression parser in Python?

2013-10-25 Thread vasudevram
Hi list, I'm working on an app in which longish text chunks (could be up to a few MB in size, and stored either in flat text files or in fields of database records - TBD) need to be searched for the presence of a combination of string constants, where the string constants can be combined with

xtopdf, a Python toolkit for PDF creation from other file formats

2013-10-18 Thread vasudevram
, databases, open source, ...) http://www.dancingbison.com http://jugad2.blogspot.com https://mobile.twitter.com/vasudevram -- https://mail.python.org/mailman/listinfo/python-list

Convert Microsoft Word files to PDF with DOCXtoPDF

2013-10-01 Thread vasudevram
Hi list, I hope some people may find this useful. This post by me shows how to use DOCXtoPDF (a program I wrote recently) to convert the text in Microsoft Word files (that are in DOCX format) to PDF: Convert Microsoft Word files to PDF with DOCXtoPDF

New way of writing socket servers in #Linux kernel 3.9 (and in #Python too)

2013-08-24 Thread vasudevram
This may be of interest to readers of this newsgroup: Original article: http://lnkd.in/taAFNt Content (without links): A new way of writing socket servers has been introduced with the Linux kernel 3.9. It involves the ability to bind multiple listening sockets to the same port on the same

Python, meet Turtle

2013-06-30 Thread vasudevram
http://jugad2.blogspot.com/2013/07/python-meet-turtle.html -- http://mail.python.org/mailman/listinfo/python-list

XMLtoPDFBook v1.1 released: Create simple PDF books from XML text content

2013-06-24 Thread vasudevram
-to-installing-and-using-xtopdf.html Enjoy, and give feedback, if any. - Vasudev Ram Dancing Bison Enterprises Python, Linux and open source training and consulting http://dancingbison.com http://jugad2.blogspot.com https://twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-announce

XML to PDF book with ElementTree and xtopdf

2013-06-15 Thread vasudevram
Hi list, This may be of interest - a program to create simple PDF books from XML text content: Create PDF books with XMLtoPDFBook: http://jugad2.blogspot.in/2013/06/create-pdf-books-with-xmltopdfbook.html XMLtoPDFBook.py requires ElementTree (which is in the standard Python library),

PDF in a Bottle - creating PDF using xtopdf, ReportLab, Bottle and Python

2013-06-10 Thread vasudevram
Hi list, Might be of interest: PDF in a Bottle - creating PDF using xtopdf, ReportLab, Bottle and Python http://jugad2.blogspot.in/2013/05/pdf-in-bottle-creating-pdf-using-xtopdf.html - Vasudev Ram Python, Linux and open source training and development www.dancingbison.com --

Riemann and Bernhard, a distributed systems monitor and Python client

2013-06-08 Thread vasudevram
This may be of interest to the group: Riemann and Bernhard, a distributed systems monitor and Python client http://jugad2.blogspot.in/2013/06/riemann-and-bernhard-distributed.html - Vasudev Ram dancingbison.com Python training and consulting --

Multiple Python one-liners

2013-06-04 Thread vasudevram
http://jugad2.blogspot.com/2013/06/multiple-python-one-liners.html Some interesting and useful one-liners there ... -- http://mail.python.org/mailman/listinfo/python-list

ANN: Using xtopdf and pypyodbc to publish MS Access database data to PDF

2013-05-06 Thread vasudevram
have to do is change the connection string in the code, and maybe a few other small tweaks for differences between SQL dialects of different RDBMS's. Enjoy. - Vasudev Ram www.dancingbison.com jugad2.blogspot.com bitbucket.org/vasudevram/xtopdf -- http://mail.python.org/mailman/listinfo

PDF in a Bottle - creating PDF using xtopdf, ReportLab, Bottle and Python

2013-04-30 Thread vasudevram
pdf_bottle.py is a program I wrote that allows you to create a PDF file from text, over the web, by entering your text into a form and submitting it. Here is the post about it: http://jugad2.blogspot.in/2013/05/pdf-in-bottle-creating-pdf-using-xtopdf.html - Vasudev Ram dancingbison.com

Re: What is the reason for defining classes within classes in Python?

2013-04-24 Thread vasudevram
On Wednesday, April 24, 2013 6:20:36 AM UTC+5:30, alex23 wrote: On Apr 24, 9:13 am, vasudevram vasudev...@gmail.com wrote: On Wednesday, April 24, 2013 3:52:57 AM UTC+5:30, Ian wrote: On Tue, Apr 23, 2013 at 3:50 PM, vasudevram  wrote: I saw an example of defining a class within

Re: What is the reason for defining classes within classes in Python?

2013-04-24 Thread vasudevram
Interesting. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

What is the reason for defining classes within classes in Python?

2013-04-23 Thread vasudevram
Hi list, I saw an example of defining a class within another class, here, in the docs for peewee, a simple ORM for Python: http://peewee.readthedocs.org/en/latest/peewee/quickstart.html In what way is this useful? Thanks, Vasudev -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the reason for defining classes within classes in Python?

2013-04-23 Thread vasudevram
On Wednesday, April 24, 2013 3:52:57 AM UTC+5:30, Ian wrote: On Tue, Apr 23, 2013 at 3:50 PM, vasudevram wrote: Hi list, I saw an example of defining a class within another class, here, in the docs for peewee, a simple ORM for Python: http://peewee.readthedocs.org/en

Using xtopdf and pypyodbc to publish MS Access database data to PDF

2013-04-14 Thread vasudevram
Wrote a program that lets you publish your MS Access database data to PDF, using Python, ReportLab, xtopdf (my toolkit) and pypyodbc. Sharing it here. Link: http://jugad2.blogspot.in/2013/04/using-xtopdf-and-pypyodbc-to-publish-ms.html Note: Saw some comments about my blog post on the Python

youtube-dl, a YouTube downloader in Python

2013-04-01 Thread vasudevram
Folks may find this of interest, both from a programming and from an end-user point of view: youtube-dl, a YouTube downloader in Python: http://jugad2.blogspot.in/2013/03/youtube-dl-yourube-downloader-in-python.html I tried it out and it worked well. Downloaded a few videos using it. (The

Re: Curl and python httplib?

2013-04-01 Thread vasudevram
On Tuesday, April 2, 2013 1:03:58 AM UTC+5:30, Mark Lawrence wrote: On 30/03/2013 05:08, Сѧ԰PHP wrote: Guys, I take a project that need send request to Hadoop by curl. But now, the curl and pycurl can't satisfy my project. So i need use the powerful httplib. But failed.

PDFBuilder can now take multiple input files from command line

2012-11-04 Thread vasudevram
Here is the blog post about it: http://jugad2.blogspot.in/2012/11/pdfbuilder-can-now-take-multiple-input.html In short: removed the temporary hard-coding, refactored the code some. PDFBuilder can now use multiple input files (of type .csv / .tdv), specified on the command-line, to create a

PDFBuilder can create composite PDFs

2012-11-02 Thread vasudevram
, and a download link: http://jugad2.blogspot.in/2012/11/pdfbuilderpy-can-create-composite-pdfs.html - Vasudev Ram http://www.dancingbison.com http://jugad2.blogspot.com http://twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

ANN: v0.3 of pipe_controller released; supports swapping pipe components at run time

2012-10-18 Thread vasudevram
I've released v0.3 of pipe_controller (*), my experimental tool to simulate pipes in Python: https://bitbucket.org/vasudevram/pipe_controller (*) I had earlier been calling it PipeController, but that is the name of the main class in the package. From now on I'm referring

Using pipe_controller to swap pipe components at runtime

2012-10-15 Thread vasudevram
is on Bitbucket at: https://bitbucket.org/vasudevram/pipe_controller - Vasudev Ram www.dancingbison.com jugad2.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: fmap(), inverse of Python map() function

2012-10-06 Thread vasudevram
On Saturday, October 6, 2012 5:01:40 AM UTC+5:30, Devin Jeanpierre wrote: On Fri, Oct 5, 2012 at 7:24 PM, Ian Kelly wrote: I realize that. My point is that the function *feels* more like a variant of reduce than of map. If it's meant as a complaint, it's a poor one. It's

Re: fmap(), inverse of Python map() function

2012-10-06 Thread vasudevram
Thanks to all who replied. Always good to learn something new. P.S. A reader posted a good comment with Scala as well as Python code for a compose function (basically same functionality as fmap, or more - the compose once, run many times thing). It's the 4th comment on my blog post. -

fmap(), inverse of Python map() function

2012-10-05 Thread vasudevram
http://jugad2.blogspot.in/2012/10/fmap-inverse-of-python-map-function.html - Vasudev Ram www.dancingbison.com jugad2.blogspot.com twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

ANN: v0.2 of PipeController released; now supports running pipes incrementally

2012-09-28 Thread vasudevram
.blogspot.in/2012/09/using-pipecontroller-to-run-pipe.html - Vasudev Ram www.dancingbison.com jugad2.blogspot.com twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Using PipeController (v0.2) to run a pipe incrementally

2012-09-27 Thread vasudevram
.blogspot.in/2012/09/using-pipecontroller-to-run-pipe.html - Vasudev Ram www.dancingbison.com jugad2.blogspot.com twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for an IPC solution

2012-09-03 Thread vasudevram
On Saturday, September 1, 2012 6:25:36 PM UTC+5:30, Wolfgang Keller wrote: There are just so many IPC modules out there. I'm looking for a solution for developing a new a multi-tier application. The core application will be running on a single computer, so the IPC should be using

Re: PipeController v0.1 - experimental tool to simulate simple UNIX-style pipes in Python

2012-09-02 Thread vasudevram
On Saturday, September 1, 2012 9:02:33 PM UTC+5:30, Ramchandra Apte wrote: On Friday, 31 August 2012 03:27:54 UTC+5:30, vasudevram wrote: I wrote PipeController recently to experiment with doing UNIX-style pipes in Python. Doesn't the pipes module already do this? Yes. As Ian Kelly

Re: PipeController v0.1 - experimental tool to simulate simple UNIX-style pipes in Python

2012-09-02 Thread vasudevram
On Monday, September 3, 2012 1:05:03 AM UTC+5:30, vasudevram wrote: To Ian Kelly: No, that deals with actual Unix pipes. This appears to be about pipelined processing within a single program and not IPC; the description Unix-like is a bit misleading, IMO. I guess it can be interpreted

ANN: PipeController v0.1 released: Python tool to experiment with simulating UNIX-style pipes

2012-09-01 Thread vasudevram
PipeController is a tool that I wrote to experiment with simulating simple, sequential, synchronous UNIX-style pipes in Python. It is the first release - v0.1. Blog post about PipeController: http://jugad2.blogspot.in/2012/08/pipecontroller-v01-released-simulating.html The blog post gives

PipeController v0.1 - experimental tool to simulate simple UNIX-style pipes in Python

2012-08-30 Thread vasudevram
BSD License, which means you can use it for any purpose, commercial or otherwise, subject to the terms of the license. - Vasudev Ram www.dancingbison.com jugad2.blogspot.com twitter.com/vasudevram -- http://mail.python.org/mailman/listinfo/python-list

PySiteCreator v0.1 released

2009-11-08 Thread vasudevram
Hi group, I've released a tool for creating HTML pages or Web sites by writing them in Python - PySiteCreator v0.1. Description of PySiteCreator: PySiteCreator is a tool that allows the user to create Web (HTML) sites by writing them entirely in Python. A user creates one or more Python source

PDFXMLRPC v1.0: Client and server for PDF creation from text

2009-10-06 Thread vasudevram
xtopdf: fast and easy PDF creation: www.dancingbison.com/products.html Twitter: @vasudevram -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Client-server PDF creation with xtopdf, XML-RPC, ReportLab and Python

2009-10-04 Thread vasudevram
Hi group, I've released a software package named PDFXMLRPC. It consists of a server and a client. Using them, you can do client-server PDF creation from text, over the Internet or your intranet. It runs over XML-RPC and uses HTTP as the transport. It can work with any available port, including

Re: Client-server PDF creation with xtopdf, XML-RPC, ReportLab and Python

2009-10-04 Thread vasudevram
On Oct 4, 7:38 pm, vasudevram vasudev...@gmail.com wrote: Hi group, snip/ I'll update the README.txt file to correct that error soon.) Done. Corrected README.txt uploaded (as part of updated zip file). I forgot to mention, in the original post above, that both the client and the server

Re: XML(JSON?)-over-HTTP: How to define API?

2009-07-05 Thread vasudevram
On Jul 3, 1:11 pm, Diez B. Roggisch de...@nospam.web.de wrote: Allen Fowler schrieb: I have an (in-development) python system that needs to shuttle events / requests around over the network to other parts of itself.   It will also need to cooperate with a .net application running

Re: file transfer in python

2009-06-27 Thread vasudevram
On Jun 26, 5:07 pm, Francesco Bochicchio bieff...@gmail.com wrote: On 26 Giu, 13:38, jayesh bhardwaj bhardwajjay...@gmail.com wrote: i am trying to find something useful in python to transfer html files from one terminal to other. Can this be done with some module or shall i start coding

Re: Books for programmers

2008-06-10 Thread vasudevram
On Jun 5, 3:09 am, [EMAIL PROTECTED] (Michael H. Goldwasser) wrote: Dick Moores [EMAIL PROTECTED] writes: Do not neglect the 2008 book, Object-Oriented Programming in Python, by Goldwasser and Letscher. http://www.prenhall.com/goldwasser/

Re: Books for programmers

2008-06-03 Thread vasudevram
On Jun 3, 6:42 pm, Mike Driscoll [EMAIL PROTECTED] wrote: On Jun 3, 5:45 am, V [EMAIL PROTECTED] wrote: Hi Matt, and thank you very much for your answer. Hm, depends of course, how good your programming skills are in the languages you knwo already, but I rely on the book Beginning

Re: how to generate html table from table data?

2007-12-26 Thread vasudevram
[EMAIL PROTECTED] a écrit : Hi group, I would like to convert the output of the SQL query, or more generally I would like to convert any table data to the html table. I would like to set some rules to format cells, columns or rows (font, colour etc.) of the html table, according to

Re: View XMLRPC Requests/Responses?

2007-10-15 Thread vasudevram
On Oct 15, 8:10 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: xkenneth wrote: Hi, I'm working on developing an XML-RPC interface from LabVIEW to python and I would really like to see how python is forming it's XML- RPC requests/responses. Is there any way I can force these to a log

Re: View XMLRPC Requests/Responses?

2007-10-15 Thread vasudevram
On Oct 15, 8:49 pm, vasudevram [EMAIL PROTECTED] wrote: On Oct 15, 8:10 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: xkenneth wrote: Hi, I'm working on developing an XML-RPC interface from LabVIEW to python and I would really like to see how python is forming it's XML- RPC

Re: Joining Big Files

2007-08-31 Thread vasudevram
On Aug 27, 12:43 am, mcl [EMAIL PROTECTED] wrote: All, Thank you very much. As my background is much smaller memory machines than today's giants - 64k being abigmachine and 640k being gigantic. I get very worried about crashing machines when copying or editingbigfiles, especially in a

Re: Joining Big Files

2007-08-26 Thread vasudevram
On Aug 26, 6:48 am, Paul McGuire [EMAIL PROTECTED] wrote: On Aug 25, 8:15 pm, Paul McGuire [EMAIL PROTECTED] wrote: On Aug 25, 4:57 am, mosscliffe [EMAIL PROTECTED] wrote: I have 4 text files each approx 50mb. yawn 50mb? Really? Did you actually try this and find out it was a

Re: How would I compile a Python file to a exe

2007-08-24 Thread vasudevram
On Aug 24, 2:11 am, Charlie [EMAIL PROTECTED] wrote: Quoting Lamonte Harris [EMAIL PROTECTED]: Been a while and I'm wondering how I would go about doing it. py2exe seems to be a fairly good option for this, at least in the world of Windows. Yes, py2exe looks good. I've tried it out. Make

Re: Python Book Recommendations

2007-08-15 Thread vasudevram
On Aug 15, 8:34 pm, [EMAIL PROTECTED] wrote: On Aug 15, 10:30 am, Azazello [EMAIL PROTECTED] wrote: On Aug 15, 7:47 am, Shawn Milochik [EMAIL PROTECTED] wrote: If I could have only one book, I would buy Core Python, Second Edition, by Wesley Chun. For the record, I own: Core

Re: Python MAPI

2007-08-10 Thread vasudevram
On Jul 23, 6:07 pm, [EMAIL PROTECTED] wrote: Well, I ran Process Monitor with some filters enabled to only watch Thunderbird and MS Word. Unfortunately, that didn't give me any of the registry edits, so I disabled my filters and ran it without. Now I have a log file with 28,000 entries. It's

Re: Web based Reporting tool for Python

2007-08-07 Thread vasudevram
Madhu Alagu wrote: Hi I am looking template based report tools for python.It has the ability to deliver rich content onto the screen, to the printer or into PDF, HTML, XLS, CSV and XML files. Thanks, Madhu Alagu I don't know if there's a _single_ tool that can do all you want

Re: the one python book

2007-08-05 Thread vasudevram
On Aug 4, 7:23 am, dhr [EMAIL PROTECTED] wrote: newbie question: Is there a 'KR type of Python book? The book that you'd better have on your shelf if you are going into Python? Python in a Nutshell, the Python Cookbook and Programming Python are all very good, IMO. Programming Python

Re: Cross platform Python app deployment

2007-07-30 Thread vasudevram
On Jul 30, 4:42 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Will McGugan wrote: Hi, Is there some reference regarding how to package a Python application for the various platforms? I'm familiar with Windows deployment - I use Py2Exe InnoSetup - but I would like more information on

Re: wxGlade: Who knows how to drive this application?

2007-07-26 Thread vasudevram
Steve Holden wrote: I've been trying to use wxGlade recently and I am finding it something of a challenge. Is there any user who finds the user interface satisfactory and the operation of the program predictable? Good (for me) that you posted this question, as I got to know about wxGlade

Re: Generating PDF reports

2007-07-26 Thread vasudevram
On 2007-07-26, marcpp [EMAIL PROTECTED] wrote: Hi i'm introducing to do reports from python, any recomendation? Yes, ReportLab is quite a good PDF library for Python. I used it as the main underlying component in my xtopdf toolkit - see: http://www.dancingbison.com/products.html For most

Re: Technology solutions for Ruby?

2007-07-24 Thread vasudevram
Bruno Desthuilliers wrote: s/some/great/g Both Ruby and Python are known for this. Thanks for the info. (I don't know much about metaprogramming etc. in either languages - just started exploring those topics recently.) I'd say that - wrt/ advanced programming tricks - *most* of what you can

Re: Python MAPI

2007-07-20 Thread vasudevram
On Jul 20, 10:57 pm, [EMAIL PROTECTED] wrote: Hi, I've been googling all over and can't find any good answers about this problem. I would like to create some kind of MAPI interface with Python such that when I open Microsoft Word (or another Office program) and click File, Send To, Mail

Re: Python MAPI

2007-07-20 Thread vasudevram
On Jul 21, 12:28 am, [EMAIL PROTECTED] wrote: On Jul 20, 1:48 pm, vasudevram [EMAIL PROTECTED] wrote: On Jul 20, 10:57 pm, [EMAIL PROTECTED] wrote: Hi, I've been googling all over and can't find any good answers about this problem. I would like to create some kind of MAPI

Re: Technology solutions for Ruby?

2007-07-16 Thread vasudevram
[ Though the OP posted his message to comp.lang.ruby, I'm cross- posting it to comp.lang.python, since he mentions Python as a possible alternative he's looking at, and also because I've recommended Python for his stated needs. Also, interested to see what other Pythonistas have to say in

Re: Technology solutions for Ruby?

2007-07-16 Thread vasudevram
On Jul 16, 10:25 pm, vasudevram [EMAIL PROTECTED] wrote: [ Though the OP posted his message to comp.lang.ruby, I'm cross- posting it to comp.lang.python, since he mentions Python as a possible alternative he's looking at, and also because I've recommended Python for his stated needs. Also

Re: execute script in certain directory

2007-07-09 Thread vasudevram
On Jul 9, 8:31 pm, brad [EMAIL PROTECTED] wrote: When I use idle or a shell to execute a python script, the script executes in the directory it is currently in (in this case, my desktop). However, when using GNOME and right clicking the py script and selecting 'open with python', the execution

Re: How to Machine A python script execute Machine B python script?

2007-07-09 Thread vasudevram
On Jul 9, 1:30 pm, Nick Craig-Wood [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Jul 8, 6:45 pm, johnny [EMAIL PROTECTED] wrote: Anyone know how I can make Machine A python script execute a python script on Machine B ? xmlrpc will work. Or pyro

How does py2exe work?

2007-07-01 Thread vasudevram
Hi, I recently checked out py2exe (on Windows). Looks good. Was able to build an EXE out of one of my Python apps. Wondering how it works? Does it actually compile the Python source of your script into machine language, or does it do something more like bundling the Python interpreter, the

Re: How does py2exe work?

2007-07-01 Thread vasudevram
On Jul 2, 12:43 am, Wildemar Wildenburger [EMAIL PROTECTED] wrote: Thomas Jollans wrote: On Sunday 01 July 2007, vasudevram wrote: Wondering how it works? Does it actually compile the Python source of your script into machine language, or does it do something more like bundling

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-24 Thread vasudevram
On Jun 24, 6:28 am, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Sun, 24 Jun 2007 11:17:40 +1000, Steven D'Aprano [EMAIL PROTECTED] wrote: On Sat, 23 Jun 2007 19:58:32 +, vasudevram wrote: Hi group, Question: Do eval() and exec not accept a function definition? (like 'def foo

Re: automatical pdf generating

2007-06-24 Thread vasudevram
On Jun 24, 10:03 pm, Grant Edwards [EMAIL PROTECTED] wrote: On 2007-06-24, Jackie [EMAIL PROTECTED] wrote: For each folder, I want to print the 4 pictures into a single-paged pdf file (letter sized; print horizontally). All together, I want to get 50 pdf files with names:

Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread vasudevram
Hi group, Question: Do eval() and exec not accept a function definition? (like 'def foo: pass) ? I wrote a function to generate other functions using something like eval(def foo: ) but it gave a syntax error (Invalid syntax) with caret pointing to the 'd' of the def keyword. Details (sorry

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread vasudevram
On Jun 24, 1:20 am, Eduardo Dobay [EMAIL PROTECTED] wrote: Hey, I think you could use lambda functions for that matter (Ever heard of them?). You could write something like: def generate_html_tag_function(tag_name, start_or_end): start_or_end.lower() assert(start_or_end in ('start',

Re: python unix install, sqlite3

2007-06-04 Thread vasudevram
On May 29, 11:40 pm, Simon [EMAIL PROTECTED] wrote: On May 29, 7:05 am, vasudevram [EMAIL PROTECTED] wrote: On May 29, 5:52 pm, Simon [EMAIL PROTECTED] wrote: I installed the source code on unix for python 2.5.1. The install went mainly okay, except for some failures regarding

Re: Periodic tasks.

2007-05-30 Thread vasudevram
Steve Howell wrote: Thanks. Here are two links, not sure those are exactly what are being referenced here, but look in the ballpark: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413137 http://docs.python.org/lib/module-sched.html You're welcome. The ActiveState recipe you

Re: Periodic tasks.

2007-05-29 Thread vasudevram
On May 29, 4:39 pm, Steve Holden [EMAIL PROTECTED] wrote: Alternatively, the user could make use of the already-existing sched module from the standard library. With a little threading that would do the job fine. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119

Re: python unix install, sqlite3

2007-05-29 Thread vasudevram
On May 29, 5:52 pm, Simon [EMAIL PROTECTED] wrote: I installed the source code on unix for python 2.5.1. The install went mainly okay, except for some failures regarding: _ssl, _hashlib, _curses, _curses_panel. No errors regarding sqlite3. However, when I start python and do an import

Re: How to get started as a xhtml python mysql freelancer ?

2007-05-26 Thread vasudevram
On May 26, 5:55 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On May 25, 7:55 pm, gert [EMAIL PROTECTED] wrote: On May 26, 2:09 am, Paul McNett [EMAIL PROTECTED] wrote: gert wrote: I made something that i was hoping it could make people happy enough so i could make a living by

Re: How can I time a method of a class in python using Timeit

2007-05-24 Thread vasudevram
On May 24, 8:36 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am using timeit to time a global function like this t = timeit.Timer(timeTest(),from __main__ import timeTest) result = t.timeit(); But how can i use timeit to time a function in a class? class

Re: Help required with Python App

2007-05-21 Thread vasudevram
On May 21, 8:11 pm, Trevor Hennion [EMAIL PROTECTED] wrote: Hi, I am producing a Web based database application for a customer and could do with some help producing pdf documents from the data. The project uses Apache. Postgresql and Python CGI scripts on a Linux server for a company with

Re: Help required with Python App

2007-05-21 Thread vasudevram
On May 21, 8:11 pm, Trevor Hennion [EMAIL PROTECTED] wrote: Hi, I am producing a Web based database application for a customer and could do with some help producing pdf documents from the data. The project uses Apache. Postgresql and Python CGI scripts on a Linux server for a company with

Re: GUI tutorial

2007-05-13 Thread vasudevram
On May 13, 10:51 pm, John K Masters [EMAIL PROTECTED] wrote: Can someone point me in the direction of a good tutorial on programming python with a GUI? I'm just starting out with python and have written a few scripts successfully but would like to add a graphical front end to them to make it

Re: db access

2006-12-29 Thread vasudevram
king kikapu wrote: On Dec 29, 12:12 am, johnf [EMAIL PROTECTED] wrote: king kikapu wrote: Hi to all, is there a way to use an RDBMS (in my case, SQL Server) from Python by using some built-in module of the language (v. 2.5) and through ODBC ?? I saw some samples that use

Re: Elliptic Curve Library

2006-12-25 Thread vasudevram
Jaap Spies wrote: Mike Tammerman wrote: I need an elliptic curve library that can be used by python. I googled but couldn't find a one. I'll appreciate, if you could show me. You could look at http://sage.scipy.org/sage/ http://sage.scipy.org/sage/features.html Jaap Sorry, don't

Re: Connection python with C

2006-12-24 Thread vasudevram
Fredrik Lundh wrote: Χρυσάνθη Αϊναλή wrote: I want to connect a script in python with a source code in C. Any ideas about it? http://docs.python.org/lib/module-ctypes.html http://docs.python.org/ext/ext.html http://effbot.org/pyfaq/extending-index.htm /F Just a suggestion: another

Saw a possibly interesting Python PDF library - pyPDF

2006-12-24 Thread vasudevram
Saw a possibly interesting Python PDF library - pyPDF. For merging/splitting PDFs and related operations. It's at http://pybrary.net/pyPdf/ HTH Vasudev ~ Vasudev Ram Dancing Bison Enterprises http://www.dancingbison.com Check out the cool Snap.com link preview

Re: How a script can know if it has been called with the -i command line option?

2006-12-23 Thread vasudevram
Peter Wang wrote: Michele Simionato wrote: The subject says it all, I would like a script to act differently when called as $ python script.py and when called as $ python -i script.py. I looked at the sys module but I don't see a way to retrieve the command line flags, where should

Re: Elliptic Curve Library

2006-12-23 Thread vasudevram
Mike Tammerman wrote: Hi, I need an elliptic curve library that can be used by python. I googled but couldn't find a one. I'll appreciate, if you could show me. Mike What is the library you need supposed to do? Vasudev Ram Dancing Bison Enterprises www.dancingbison.com --

Re: How a script can know if it has been called with the -i command line option?

2006-12-23 Thread vasudevram
vasudevram wrote: Peter Wang wrote: Michele Simionato wrote: The subject says it all, I would like a script to act differently when called as $ python script.py and when called as $ python -i script.py. I looked at the sys module but I don't see a way to retrieve the command

Re: removing the header from a gzip'd string

2006-12-22 Thread vasudevram
Fredrik Lundh wrote: Gabriel Genellina wrote: Using the default options (deflate, default compression level, no custom dictionary) will make those first two bytes 0x78 0x9c. If you want to encrypt a compressed text, you must remove redundant information first. encryption? didn't

Re: Sybase module 0.38pre1 released

2006-12-13 Thread vasudevram
Sébastien Sablé wrote: By the way, I forgot to say that new releases can now be downloaded from this page: https://sourceforge.net/project/showfiles.php?group_id=184050 regards -- Sébastien Sablé Thanks. Vasudev -- http://mail.python.org/mailman/listinfo/python-list

Re: Sybase module 0.38pre1 released

2006-12-12 Thread vasudevram
Sébastien Sablé wrote: WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. MAJOR CHANGES SINCE 0.37: * This release works with python 2.5 * It also works with

Re: SOAP Server with WSDL?

2006-12-08 Thread vasudevram
Ravi Teja wrote: tobiah wrote: Actually, do I have to make a WSDL? Do people hand write these, or are there tools? I don't really need to publish an interface. I just want some in house apps to communicate. Java and .NET based tools can auto-generate WSDL from code. Python does not

Re: Book recommendations

2006-12-06 Thread vasudevram
Can someone recommend a Python book for a newbie and perhaps you have a used one for sale? Thank you. A Byte of Python is supposed to be good for beginners too. See http://www.byteofpython.info/ Its also a recommended book on the main Python site www.python.org From the preface: This book

Re: Python work in UK

2006-11-24 Thread vasudevram
Hi, A few suggestions, you may have tried them already: Search for UK Python jobs on major job sites like Monster, Dice, etc. Some (like Monster) have country-specific sites, I think. I know Monster has an India-specific site, it probably also has one for the UK. Have you considered the option

Re: Has anyone generated Open Office Calc XML files from python

2006-11-18 Thread vasudevram
vj wrote: Isn't generating CSV output suitable to your needs? Python's CSV module makes that very simple - unless you want to include images, etc. in the XLS file? You cannot create multiple worksheets using this method, or apply any other form of formatting. VJ Ok, got it. --

  1   2   >