Error in Plex 1.1.4.1

2005-01-18 Thread srijit
name = "plex1.txt" f = open(filename, "r") scanner = Scanner(lexicon, f, filename) while 1: token = scanner.read() print token if token[0] is None: break The error was removed when I used the following code in Transitions.py def get_epsilon(self, n

Re: FTPLIB & FTPS or SFTP?

2005-01-19 Thread srijit
To the best of my knowledge ftplib does not support SFTP or FTPS. I hope Paramiko (http://www.lag.net/paramiko/) serves your purpose. Paramiko supports POSIX, Windows and MacOSX Regards, /Srijit Peter A. Schott wrote: > Does the ftplib support SFTP or FTPS? Is that part of a different mod

Memory mapped File (Python win32 extensions)

2005-03-17 Thread Srijit Kumar Bhadra
efficient sharing of data between separate processes using mmapfile. Regards, /Srijit -- http://mail.python.org/mailman/listinfo/python-list

Shared Memory Example (Python, ctypes, VC++)

2005-03-19 Thread Srijit Kumar Bhadra
Hello, Here are code snippets to create and access shared memory in Python with and without ctypes module. With regards, Srijit Filename : SharedMemCreate.py import msvcrt, mmap from ctypes import * FILE_MAP_ALL_ACCESS = 0xF001F INVALID_HANDLE_VALUE = 0x SHMEMSIZE = 256 PAGE_READWRITE

Python 2.4 (Windows) Binaries of SciPy

2005-03-21 Thread Srijit Kumar Bhadra
Hello, I have posted a similar message in SciPy mailing list. I hope it is ok to also post it here. I am looking for Python 2.4 Binaries (Windows)of SciPy. Are there any plans to upload Python 2.4 binaries? Best Regards, /Srijit -- http://mail.python.org/mailman/listinfo/python-list

Example Code - Named Pipes (Python 2.4 + ctypes on Windows)

2005-03-25 Thread Srijit Kumar Bhadra
/en-us/ipc/base/named_pipe_client.asp Best Regards, Srijit Named Pipe Server Source Code: from ctypes import * PIPE_ACCESS_DUPLEX = 0x3 PIPE_TYPE_MESSAGE = 0x4 PIPE_READMODE_MESSAGE = 0x2 PIPE_WAIT = 0 PIPE_UNLIMITED_INSTANCES = 255 BUFSIZE = 4096 NMPWAIT_USE_DEFAULT_WAIT = 0

Re: Example Code - Named Pipes (Python 2.4 + ctypes on Windows)

2005-03-26 Thread Srijit Kumar Bhadra
Hello, I am quite familiar with Mark Hammond's win32all. It is excellent. However, I wish that there was more documentation of win32all beyond existing PyWin32.chm. I am aware of "Python Programming on Win32" but I do not have access to it at present. Best Regards, /S

Example Code : Shared Memory with Mutex (pywin32 and ctypes)

2005-04-02 Thread Srijit Kumar Bhadra
Hello, Here is some sample code with pywin32 build 203 and ctypes 0.9.6. Best regards, /Srijit File: SharedMemCreate_Mutex_win32all.py # This application should be used with SharedMemAccess_Mutex_ctypes.py or SharedMemAccess_Mutex_win32all.py #~ a) Creates a shared memory #~ b) Creates or Opens

Modelica

2006-06-27 Thread Srijit Kumar Bhadra
I am looking for possible options to interface Modelica (http://www.modelica.org/) with Python (scipy and numpy). Any suggestions? Best Regards, Srijit -- http://mail.python.org/mailman/listinfo/python-list

Re: Modelica

2006-06-30 Thread Srijit Kumar Bhadra
, Srijit [EMAIL PROTECTED] wrote: > Srijit Kumar Bhadra wrote: > > I am looking for possible options to interface Modelica > > (http://www.modelica.org/) with Python (scipy and numpy). Any > > suggestions? > > When you say "interface", what do you mean? > >

lxml and SimpleXMLWriter

2006-07-01 Thread Srijit Kumar Bhadra
;, "this is a paragraph") w.start("p") w.data("this is ") w.element("b", "bold") w.data(" and ") w.element("i", "italic") w.data(".") w.end("p") w.close(html) Best Regards, Srijit -- http://mail.python.org/mailman/listinfo/python-list

Python *eggs* on Win32

2006-07-08 Thread Srijit Kumar Bhadra
uring installation of .egg files? Best Regards, Srijit -- http://mail.python.org/mailman/listinfo/python-list

Re: Python *Eggs* on Win32

2006-07-08 Thread Srijit Kumar Bhadra
is always sufficient to have only MinGW GCC installation on my Win XP machine and not MS Visual Studio. Best Regards, Srijit Srijit Kumar Bhadra wrote: > I have browsed the following links > 1) http://peak.telecommunity.com/DevCenter/EasyInstall > 2) When Python *Eggs* better than Python *d

Re: Python at MS Event!

2005-05-06 Thread Srijit Kumar Bhadra
Was it IronPython 0.7.x or standard Python 2.4.1? Regards, /Srijit -- http://mail.python.org/mailman/listinfo/python-list

SIP examples

2007-09-12 Thread Srijit Kumar Bhadra
can I get examples for SIP 4.7? Regards, /Srijit -- http://mail.python.org/mailman/listinfo/python-list

MinGW and Python

2006-04-23 Thread Srijit Kumar Bhadra
Is there any specific reason for not using MinGW to build the official distribution of Python for Win32? A quick Google search did not reveal the answer to my question. If a link is available, please post it. Best Regards, Srijit -- http://mail.python.org/mailman/listinfo/python-list

Python Wrapper Tools; a Performance Study

2008-11-12 Thread Srijit Kumar Bhadra
I am looking for the file Python Wrapper Tools; a Performance Study (http://people.web.psi.ch/geus/talks/europython2004_geus.pdf). The link seems to be no longer valid. If someone has a local copy, I request him/her to share it. /Srijit -- http://mail.python.org/mailman/listinfo/python-list

Cython Installation on Windows

2008-11-18 Thread Srijit Kumar Bhadra
] compiler=mingw32 /Srijit -- http://mail.python.org/mailman/listinfo/python-list

lxml 2.2.4 for Python 2.6

2009-11-23 Thread Srijit Kumar Bhadra
Is there any reason why lxml-2.2.4-py2.6-win32.egg (md5) or lxml-2.2.4.win32-py2.6.exe is not available? Best regards, /Srijit -- http://mail.python.org/mailman/listinfo/python-list