On 19 May, 06:11, sapsi <[EMAIL PROTECTED]> wrote:
> Hello,
> I am using HadoopStreaming using a BinaryInputStream. What this
> basically does is send a stream of bytes ( the java type is : private
> byte[] bytes) to my python program.
>
> I have done a test like this,
> while 1:
> x=sys.s
On 6 May, 14:18, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Tue, 6 May 2008 08:36:28 -0400, inhahe <[EMAIL PROTECTED]> wrote:
> >select.poll isn't supported on Windows, because Windows doesn't have such a
> >feature, or at least it didn't until Vista. Vista implements the same thing
> >bu
On Mar 2, 2:08 pm, Preben Randhol wrote:
> On Sun, 2 Mar 2008 15:06:17 +0100
>
> Preben Randhol <[EMAIL PROTECTED]> wrote:
> >class dbase(list):
>
> Sorry the definition of the class is:
>
> class dbase(object):
>
> it doesn't derive from the list class.
>
> Preben
http://docs.python.
On 8 Jan, 11:04, Teja <[EMAIL PROTECTED]> wrote:
> On Jan 8, 3:33 pm, Teja <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi All,
>
> > I have a Python COM server. I need to deploy it on various sytems.
> > When I run the COM server from
> > python its showing an output " Registered : sample.lib"
>
> > If I
On 7 Dec, 13:20, Dirk Hagemann <[EMAIL PROTECTED]> wrote:
> Hello,
>
> From a zone-file of a Microsoft Active Directory integrated DNS server
> I get the date/time of the dynamic update entries in a format, which
> is as far as I know the hours since january 1st 1901.
> For Example: the number 3566
On 19 Nov, 11:16, Chris Withers <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm trying to build a secure execution environment for bits of python
> for two reasons:
>
> - to allow users of the system to write scripts in python without
> circumventing the application's security model
>
> - to allow the
On 1 Nov, 11:47, Neal Becker <[EMAIL PROTECTED]> wrote:
> I need to organize the results of some experiments. Seems some sort of
> database is in order.
>
> I just took a look at DBAPI and the new sqlite interface in python2.5. I
> have no experience with sql. I am repulsed by e.g.:
> c.execute(
On 3 Oct, 11:07, Anonymous <[EMAIL PROTECTED]> wrote:
> I am trying something which appears (so far), that many other people
> have not yet tried before - since I can't find any useful related
> material despite several days of searching various sites/blogs etc.
>
> I want to use VB6 as a front end
On 6 Jul, 06:58, nik <[EMAIL PROTECTED]> wrote:
> I have a VB6 application that I would like to attach to a python
> communications application.
>
> I have come across several discussions on using VB with a Python COM
> back-end, but no starting point. I haven't had anymore luck with
> google at fi
On 11 Jun, 11:10, Frank Millman <[EMAIL PROTECTED]> wrote:
> On Jun 11, 11:47 am, Phil Thompson <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On Monday 11 June 2007 10:24 am, Frank Millman wrote:
>
> > > Hi all
>
> > > I have a small problem. I have come up with a solution, but I don't
> > > know if it is
On 23 May, 14:46, "Steven W. Orr" <[EMAIL PROTECTED]> wrote:
> I just discovered decorators. Very cool. My question is that I can't
> figure out how to make a decorator not be restricted to a function so it
> would also work on a method.
>
> Here's my code:
>
> def g(expr):
> def rpt(func):
>
On 22 May, 11:29, jolly <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I want to begin python. Does anyone know where a good starting point
> is?
>
> Thanks,
> Jem
My suggestion is have a look at www.python.org and see if you can find
what you're looking for.
Giles
--
http://mail.python.org/mailman
On 8 Mar, 22:19, "Greg Copeland" <[EMAIL PROTECTED]> wrote:
> I'm using SQLAlchemy and have a need to call an Oracle function; which
> is not the same as a stored procedure. Can this be done directory or
> indirectly with SQLAlchemy? If so, can someone please provide an
> example? If not, how do
On 7 Mar, 16:45, "Gregor Mosheh" <[EMAIL PROTECTED]> wrote:
> Giles Brown wrote:
> > Yeah. You've cleverly decided to simplify the "smallest
> > possible python service" by removing the
> > if __name__ == '__main__':
>
> Ha ha.
On 7 Mar, 10:25, "Gregor Mosheh" <[EMAIL PROTECTED]> wrote:
> I'm trying to write a Win32 service. The following is straight from Python
> Programming on Win32 and it doesn't work. Is that book out of date; is
> there a new way to do services? I searched Google for hours trying to find
> any other
On 14 Feb, 00:17, "Giles Brown" <[EMAIL PROTECTED]> wrote:
> Something I always found useful is to use the win32traceutil to set up
> the trace debugging tool.
> You can then see the output in the pythonwin trace collector tool.
> This is very useful for
> Python ser
Something I always found useful is to use the win32traceutil to set up
the trace debugging tool.
You can then see the output in the pythonwin trace collector tool.
This is very useful for
Python services and COM servers.
Best of luck,
Giles
--
http://mail.python.org/mailman/listinfo/python-list
On 3 Feb, 20:36, Robin Becker <[EMAIL PROTECTED]> wrote:
> I find that ctypes.com has disappeared from the ctypes extension bundled
> with Python 2.5. I think I only need the IUnknown, I was playing with
> building a dialog using venster, but it needs IUnknown, STDMETHOD,
> HRESULT, GUID from ctype
Matthew Warren wrote:
> I have the following piece of code,
No doubt you will get some kind soul to suggest some things, but if you
want really good
answers I think you need explain why you want this command file (as
opposed to using
say a python script itself). Are you attempting to create a sim
John Machin wrote:
> [EMAIL PROTECTED] wrote:
> > > > >>> excel_date = 38938.0
> > > > >>> python_date = datetime.date(1900, 1, 1) +
> > > > >>> datetime.timedelta(days=excel_date)
> > > > >>> python_date
> > > > datetime.date(2006, 8, 11)
> > >
> > > Err, that's the wrong answer, isn't it? Perhap
Tim Golden wrote:
> [Dermot Doran]
>
> | I'm very new to using win32com! I just want to send an email
> | message via Outlook. However, I keep getting an annoying
> | message box (generated by Outlook) indicating that my program
> | could be a virus. Does anybody know how to get around this?
>
jojoba wrote:
> Does anyone know how to find the name of a python data type.
> Conside a dictionary:
> Banana = {}
>
> Then, how do i ask python for a string representing the name of the
> above dictionary (i.e. 'Banana')?
As many people have already said this question doesn't really make
sense, b
The tool to create a python script from a Qt designer .ui file is
called pyuic.
I suggest you have a google for "pyqt tutorial" pages.
I found this one for example:
http://wiki.python.org/moin/JonathanGardnerPyQtTutorial
Regards,
Giles
--
http://mail.python.org/mailman/listinfo/python-list
Doesn't the module documentation ...
http://docs.python.org/lib/optparse-putting-it-all-together.html
... tell you what you need?
Giles
--
http://mail.python.org/mailman/listinfo/python-list
But maybe we're talking about string methods so to get an exception
we'd want to use "index" instead of "find".
Giles
--
http://mail.python.org/mailman/listinfo/python-list
I have used the Python version of this:
http://cxxtest.sourceforge.net/
unit testing framework successfully (but not heavily).
Hth,
Giles Brown
--
http://mail.python.org/mailman/listinfo/python-list
Yeah and of course
http://www.masterlock.com/promos/python/8413python_lock.shtml is
Guido's security cable too.
Giles
--
http://mail.python.org/mailman/listinfo/python-list
Michael Sparks wrote:
> The problem that these sorts of approaches don't address is the simple
> fact that simple creating a formal spec and implementing it, even if
> you manage to create a way of automating the test suite from the spec
> *doesn't guarantee that it will do the right thing*.
> As
s is for proving your code matches a
specification in Z. So your annotations are part of that proof and can
again be checked automatically.
>
> So, How do I get feedback from Praxis, Do they already read
> comp.lang.py?
Are there no email links on: http://www.praxis-his.com/sparkada/ ?
Addendum - forgot to mention that the problem with checking the
extension of sys.argv[0] is that sys.argv[0] is not set until after
sitecustomize.py is run (and it needs to be in sitecustomize.py not an
imported module due to the top-level SyntaxError problem mentioned in
my other post).
Cheers ag
Hooray! We have a winner!
Thanks Duncan. Your improved shell line will do the job very nicely.
:)
(btw, the problem with "import sethook" at the top of the script is
that syntax errors in the top-level will prevent the import from being
run meaning we don't get our traceback anymore.)
Giles
--
Hi Larry,
I mentioned how I am already using "sys.excepthook" in my initial
posting.
What I'm looking for is:
1) Is there any better way of solving the problem than setting
sys.excepthook in sitecustomize.py?
2) Or is there a better way of detecting when I am running a .cmd based
script than the me
Thanks for your replies.
I think we might have a miscommunication here as (to my understanding)
neither of your replies actually solve my problem.
After all, the function raw_input is just another way of blocking until
user input. I was already doing that using "os.system('pause')".
To recap, w
Nah. You're missing my point. I only want the command window not to
be closed if there is an *exception*. Picky I know, but there you go.
Giles
--
http://mail.python.org/mailman/listinfo/python-list
For my sins I'm a MS Windows user at work and apart from that I have a
small problem ...
I like to write python scripts to do small tasks and then double click
on them from the file explorer to run them.
Unfortunately I'm not perfect and sometimes I make mistakes and have
unhandled exceptions or
MM wrote:
> Are there any other odbc packages other than the win32all and mxodbc
> ones? The win32all odbc.pyd can't access table structure info like
> SQLColumns, and mxobdc requires a commercial license which is
> unjustifiable for this tiny project. Any other OS alternatives for
> win32?. Thanks
But just to muddy the waters, using py2exe you can package your COM
server as a .dll in its own right.
Cheers,
Giles Brown
--
http://mail.python.org/mailman/listinfo/python-list
37 matches
Mail list logo