[IronPython] How do I determine whether a database supports transactions?

2008-08-19 Thread Vernon Cole
\adodbapi.py, line 264, in connect File C:\Program Files\IronPython 2.0 Beta4\lib\site-packages\adodbapi\adodbapi.py, line 317, in __init__ TypeError: __ComObject is not callable --- Any suggestions are welcome. -- Vernon Cole ___ Users mailing list Users

[IronPython] Two hour error in IPY implementation of time.mktime and time.gmtime

2008-08-26 Thread Vernon Cole
15:20:01.004000 using System = 6/28/2002 3:20:01 PM ^ ^ ^ ^ ^ Note that the ipy result for time.gmtime returns the hour as 13, rather than 15. -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi

Re: [IronPython] Two hour error in IPY implementation of time.mktime and time.gmtime

2008-08-26 Thread Vernon Cole
Codeplex came through. This bug is now submitted properly. Sorry about the noise. -- Vernon On Tue, Aug 26, 2008 at 1:44 AM, Vernon Cole [EMAIL PROTECTED] wrote: Dear implementors: [...] ___ Users mailing list Users@lists.ironpython.com http

Re: [IronPython] Two hour error in IPY implementation of time.mktime and time.gmtime

2008-08-26 Thread Vernon Cole
Good idea, Curt. My implementation is so Windows specific that it had not occurred to be that this small sample is actually portable. (The very idea of doing DCOM from a Linux box is a bit chilling. Perhaps using Iron Python on MONO? Br!) Here's the result on my other workstation using the

[IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Vernon Cole
#executeoptionenumvalues. Default is adCmdUnspecified. /quoteWe can't pass the ra parameter in python, so pywin32 returns a tuple with the recordset and the number of records. How do I retrieve the number of records (for a non-row-returning query) in Iron? -- Vernon Cole

Re: [IronPython] Return value for ADODB .Execute() call?

2008-08-27 Thread Vernon Cole
code if win32: adoRetVal=self.cmd.Execute() else: #Iron Python ra = clr.Reference[int]() adoRetVal=[self.cmd.Execute(ra)] # return a list like win32 adoRetVal.append(ra.Value) /code Works great! Unit tests passed. Thank you! -- Vernon

[IronPython] What is .AppendChunk expecting?

2008-08-27 Thread Vernon Cole
: (2, read-only buffer for 0x003A, size 4, offset 0 at 0x003B) /console output What coercion should be supplied to make AppendChunk happy to accept the buffer contents without trying to cast it? -- Vernon Cole ___ Users mailing list

Re: [IronPython] What is .AppendChunk expecting?

2008-08-27 Thread Vernon Cole
: This will probably need to be a string. I don't think we do any automatic conversions of buffer objects for CLR or COM calls. On Wed, Aug 27, 2008 at 6:28 PM, Vernon Cole [EMAIL PROTECTED]wrote: Dear miracle workers: This may actually be the last failed unittest for adodbapai. Progress has

Re: [IronPython] What is .AppendChunk expecting?

2008-08-27 Thread Vernon Cole
On Wed, Aug 27, 2008 at 9:50 PM, Curt Hagenlocher [EMAIL PROTECTED]wrote: Two more ideas: 1) Try passing a list of numbers. You can trivially get this from the buffer by saying a = map(lambda c: ord(c), buf) 2) Try passing a BCL array of bytes. This is almost as easy: import System a =

[IronPython] adodbapi 2.2.1 (bugfix) release.

2008-09-05 Thread Vernon Cole
I found a bug in adodbapi v2.2 already. When putting data into a numeric database column, if the input was in a string (as for example the value of a wxPython grid cell), then the data would be truncated to the binary length of the field. So if I tried tried putting 12345 into an integer column,

[IronPython] Fwd: adodbapi 2.2.1 (bugfix) release.

2008-09-07 Thread Vernon Cole
[My attempt to send this to two mailing lists at once seems to have failed. This is a retry. -- VC] I found a bug in adodbapi v2.2 already. When putting data into a numeric database column, if the input was in a string (as for example the value of a wxPython grid cell), then the data would be

Re: [IronPython] CodePlex SVN is a crap

2008-10-19 Thread Vernon Cole
And it would make it a lot easier when I start trying to hook storm ( https://storm.canonical.com) into Iron Python really-soon-now. I have not hooked adodbapi into the fePy SVN yet because I'm afraid of breaking something. +1 for bazaar and launchpad. -- Vernon Cole

Re: [IronPython] 2.1 Branch in Codeplex Sources

2008-10-31 Thread Vernon Cole
IronPython 3k... does that mean that IPy 2.1 is targeted to be compatible with CPython 2.6? (Please say yes!) -- Vernon Cole On Fri, Oct 31, 2008 at 10:30 AM, Dino Viehland [EMAIL PROTECTED] wrote: Just one other comment on top of what Curt said. You might more properly think of Main

[IronPython] Wishlist for next version: from __future__ import print_function

2008-11-12 Thread Vernon Cole
it would be the most important thing to implement. -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Wishlist for next version: from __future__ import print_function

2008-11-13 Thread Vernon Cole
on CodePlex, please? On Thu, Nov 13, 2008 at 3:32 AM, Vernon Cole [EMAIL PROTECTED]wrote: Some time back contributors to this forum were invited to suggest which Python3k and Python 2.6 functions were most important to implement in the next IronPython. I downloaded Python 2.6 and Python3.0RC2 today

[IronPython] Please use IPy, not IP.

2008-11-14 Thread Vernon Cole
I am having trouble reading subject lines recently... IP is Internet Protocol as in TCP/IP. To keep simple folks like me from being confused, *IPy *would be a better acronym. ___ Users mailing list Users@lists.ironpython.com

Re: [IronPython] COM Object Issue

2008-11-26 Thread Vernon Cole
: Will this continue to work in future versions of IronPython? -- Vernon Cole On Wed, Nov 26, 2008 at 2:50 AM, Zaur Shibzoukhov [EMAIL PROTECTED] wrote: What will happen with the item-like access to COM objects in IP 2.0? Whether it will return to []-like access (as in RC 1) or it will remain .Item

Re: [IronPython] Logging module error

2008-12-02 Thread Vernon Cole
Seo: Yes, please, make a new release as soon as you can. I have uploaded the IPy-compatible version of adodbapi to the trunk, and it needs 2.0 to work correctly. The 2.0 installer from MS is nice, but the batteries included version from FePy will be nicer. -- Vernon On Tue, Dec 2, 2008 at 6:01

Re: [IronPython] new to Iron and question.

2009-02-02 Thread Vernon Cole
access MySQL using adodbapi, which does the necessary COM for you. See http://adodbapi.sourceforge.net The MySQL server can be on either a Linux or Windows machine. My test server runs on Ubuntu Linux. -- Vernon Cole On Mon, Feb 2, 2009 at 9:05 AM, Glauco Uri glauco@prometeia.it wrote: Hi all

Re: [IronPython] Array of Objects in IronPython

2009-03-04 Thread Vernon Cole
or you can use a python standard dbapi to get to your SQL data. http://adodbapi.sourceforge.net On Tue, Mar 3, 2009 at 9:07 AM, Dody Gunawinata empirebuil...@gmail.com wrote: values = System.Array.CreateInstance(System.Object, reader.FieldCount) On Tue, Mar 3, 2009 at 6:03 PM, Bernd Viehmann

Re: [IronPython] Please, help to get started with .Net and IronPython.

2009-04-23 Thread Vernon Cole
(see adodbapi.sourceforge.net) is pure python, and works almost as well* in IronPython as under pywin32. However, it is a consumer, rather than a server, of COM. -- Vernon Cole (*) there was still one bug, last time I checked, which prevented IronPython from passing binary chunks as COM parameters

[IronPython] pywin32 on Iron Python?

2009-04-27 Thread Vernon Cole
IronPython? -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] IDLE like functionality

2009-04-29 Thread Vernon Cole
Actually, the code editor for IDLE (and pythonwin) is written in Python, so no, it does not have to be left out. Since pythonwin is a native WinForms application, it would be a great example project for how to do it. If pywin32 were ported to IronPython it would be done. On Wed, Apr 29, 2009

Re: [IronPython] pywin32 on Iron Python?

2009-04-29 Thread Vernon Cole
applications such as Django, pywin32, NumPy, etc running under IronPython.  This could mean adapting something like adodbapi.py to utilize IronPython APIs similar to what Vernon Cole did, or re-implementing NumPy's C-based modules in C#.   While it's quite difficult (impossible?) for anyone on our

Re: [IronPython] IDLE like functionality

2009-04-29 Thread Vernon Cole
On Wed, Apr 29, 2009 at 7:24 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Vernon Cole wrote: Actually, the code editor for IDLE (and pythonwin) is written in Python, so no, it does not have to be left out.  Since pythonwin is a native WinForms application, PythonWin does not use

Re: [IronPython] pywin32 on Iron Python?

2009-04-29 Thread Vernon Cole
When we make a major effort to make IPy work with a third party package, how shall we clue you to re-enable the tests? An announcement on this forum, or what? -- Vernon On Wed, Apr 29, 2009 at 10:55 AM, Dave Fugate dfug...@microsoft.com wrote: The technical bar for inclusion of 3rd party tests

Re: [IronPython] pywin32 on Iron Python?

2009-04-29 Thread Vernon Cole
On Wed, Apr 29, 2009 at 9:33 AM, Dino Viehland di...@microsoft.com wrote: On 18222 - I think ctypes will drive some changes to our buffer support making it more real.  Right now it's close to useless :)  There is some way for us to make types marshalable via COM ourselves so I think we'll be

[IronPython] adodbapi with ado.net? (on MONO?)

2009-05-11 Thread Vernon Cole
Question for the group: If I were to fork a version of adodbapi which used ado.net (rather than COM ado) ... 1) would it work any better/faster than the existing code on Windows? 2) is there any chance that it would run under MONO on Linux? -- Vernon Cole

Re: [IronPython] ironpython compared to powershell

2009-05-26 Thread Vernon Cole
development community worldwide and can also be used for HUGE projects and web services, but you will have a hard time selling it in some cases. -- Vernon Cole On Tue, May 26, 2009 at 7:58 AM, jocke khazad khaz...@gmail.com wrote: Hi everyone! I would like you ask this question that I seem not to get

Re: [IronPython] Portable use of pickle.dumps()

2009-05-29 Thread Vernon Cole
of holding a binary (long) string value. return makeByteBuffer(aString) /code Hope this helps some. -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Portable use of pickle.dumps()

2009-05-29 Thread Vernon Cole
Follow up to my own comment... On Fri, May 29, 2009 at 11:38 AM, Vernon Cole vernondc...@gmail.com wrote: . You could use a similar construct based on whether IronPython or CPython were in use. I note that effort is now going forward to port pywin32 to IronPython. When that happens, my code

Re: [IronPython] Portable use of pickle.dumps()

2009-05-31 Thread Vernon Cole
Thanks, Jeff! Have you asked Seo to add you as a FePy developer? Or does your fork have a unique situation? -- Vernon On Fri, May 29, 2009 at 6:25 PM, Jeff Hardy jdha...@gmail.com wrote: On Fri, May 29, 2009 at 12:05 PM, Vernon Cole vernondc...@gmail.com wrote: P.S. Robert: Thanks

Re: [IronPython] clarification on current state of embedding

2009-06-17 Thread Vernon Cole
2.6 use the latest .NET? -- Vernon Cole On Wed, Jun 17, 2009 at 6:12 PM, Michael Foord fuzzy...@voidspace.org.ukwrote: Curt Hagenlocher wrote: ...except through the hosting API *and through the new C# dynamic functionality in .NET 4.0*. And how do you get to the classes to use them

Re: [IronPython] [ANN]: IronPython 2.6 Beta 2

2009-07-23 Thread Vernon Cole
, this issue has been outstanding for 11 months, and is the only remaining failure in adodbapi for versions 2.3 thru 3.1 of python. Please try to get to it before 2.6 final. Please !!!??? -- Vernon Cole P.S. -- I plan to make a version of adodbapi which uses real ADO.NET, rather than ADO via COM

Re: [IronPython] [ANN]: IronPython 2.6 Beta 2

2009-08-11 Thread Vernon Cole
:* users-boun...@lists.ironpython.com [mailto: users-boun...@lists.ironpython.com] *On Behalf Of *Vernon Cole *Sent:* Monday, August 10, 2009 4:21 PM *To:* Discussion of IronPython *Subject:* Re: [IronPython] [ANN]: IronPython 2.6 Beta 2 Sorry to be slow getting back... I'm on vacation

Re: [IronPython] [ANN]: IronPython 2.6 Beta 2

2009-08-11 Thread Vernon Cole
the correct simple repro? *From:* users-boun...@lists.ironpython.com [mailto: users-boun...@lists.ironpython.com] *On Behalf Of *Vernon Cole *Sent:* Thursday, July 23, 2009 10:11 PM *To:* Discussion of IronPython *Subject:* Re: [IronPython] [ANN]: IronPython 2.6 Beta 2 Guys: Good work

Re: [IronPython] dlr-languages package uploaded

2009-09-22 Thread Vernon Cole
Err, umm... In view of the fact that 2.6rc1 was released a few minutes ago, can you really quickly slip it in in place of 2.6b2? (one of the patches was for my application) -- Vernon Cole On Tue, Sep 22, 2009 at 3:35 PM, C.J. Adams-Collier c...@colliertech.orgwrote: We took care of that. We've

Re: [IronPython] IronPython/NWSGI 0-byte 200/404 response with HelloWorld?

2009-09-22 Thread Vernon Cole
on this? -- Vernon Cole On Tue, Sep 22, 2009 at 9:43 AM, Jeff Hardy jdha...@gmail.com wrote: On Tue, Sep 22, 2009 at 2:53 AM, Markus Törnqvist m...@nysv.org wrote: On Sun, Sep 20, 2009 at 06:59:41PM +0300, Markus T�rnqvist wrote: Hate to be upping my posts this way, but no one's seen this? Hi

Re: [IronPython] dlr-languages package uploaded

2009-09-23 Thread Vernon Cole
on ADO.NET on Linux as well as Windows. -- Vernon Cole P.S. -- If you are using RSX-11M then I am envious. I sold my PDP11-45 because I could not afford to get an MMU and had to run RT-11. On Tue, Sep 22, 2009 at 7:20 PM, C.J. Adams-Collier c...@colliertech.orgwrote: Got an extra 2 months you can

Re: [IronPython] Curious about the development cycle and community involvement

2009-10-15 Thread Vernon Cole
that the no outside submission policy makes the company look stupid. Then, someday, they will tell the lawyers to fix it, and it will get fixed. -- Vernon Cole On Thu, Oct 15, 2009 at 1:08 AM, Count László de Almásy calm...@gmail.comwrote: from the FAQ-- there are a few key benefits to limiting IronPython

Re: [IronPython] Type analysis of expression

2009-10-19 Thread Vernon Cole
the specific code for some conversions. YMMV -- Vernon Cole On Mon, Oct 19, 2009 at 5:20 AM, Michael Foord fuzzy...@voidspace.org.ukwrote: Christian Schmidt wrote: Hello, we are using IronPython embedded into our application to evaluate user defined expression. The variables used in the expressions

Re: [IronPython] Type analysis of expression

2009-10-19 Thread Vernon Cole
Christian: Maybe I'm missing the point -- are you trying to load data into an existing data table, or to DEFINE a new data table? I was assuming the former, a fairly easy case. If you are trying to create Data Definition Language to create a new table, then you have a real challenge. DDL is not

[IronPython] adodbapi works correctly on RC1.

2009-10-19 Thread Vernon Cole
. In particular, you need to run adodbapitest.py (which tests the end-to-end operation) in addition to test_adodbapi_dbapi20.py (which only tests the module for standards compliance.) -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http

Re: [IronPython] adodbapi works correctly on RC1.

2009-10-20 Thread Vernon Cole
Do not hold your breath. I understand that there is a problem with unicode vs str in django. The PEP 429 specifies a BINARY constructor (which within adodbapi has different definitions for Python2.x and Python3.x) which a user can call to get a piece of raw memory. Django does not seem to have

Re: [IronPython] IronPython and PIL?

2009-10-23 Thread Vernon Cole
Markus: What database engine are you using? I am also interested in this project and would like to help out. -- Vernon Cole 2009/10/23 Markus Törnqvist m...@nysv.org On Fri, Oct 23, 2009 at 02:42:23PM +0100, William Reade wrote: Hi Markus Parts of PIL should work with IronPython

Re: [IronPython] Database Engine for Django on IronPython

2009-10-23 Thread Vernon Cole
port the django support code into the main fork of adodbapi. -- Vernon 2009/10/23 Markus Törnqvist m...@nysv.org On Fri, Oct 23, 2009 at 08:45:03AM -0600, Vernon Cole wrote: Markus: What database engine are you using? I am also interested in this project and would like to help out. MSSQL

Re: [IronPython] Database Engine for Django on IronPython

2009-10-23 Thread Vernon Cole
if that is wrong. ( I don't actually USE django yet, but I want to learn. Is starting from inside out a bad thing?) -- Vernon Cole 2009/10/23 Markus Törnqvist m...@nysv.org On Fri, Oct 23, 2009 at 11:45:46AM -0600, Vernon Cole wrote: The sourceforge download will work out of the box on Iron

Re: [IronPython] Database Engine for Django on IronPython

2009-10-23 Thread Vernon Cole
to remove that restriction, but do not know (yet) if that is possible. adodbapi itself is engine agnostic. -- Vernon On Fri, Oct 23, 2009 at 2:43 PM, Josh j...@globalherald.net wrote: Vernon Cole wrote: The big thing will be paramstyle format convertion. MS-SQL uses qmark. I am told that django

Re: [IronPython] Django 1.1 on IronPython 2.6rc2 findings

2009-10-28 Thread Vernon Cole
Markus: Would you be so kind as to zip up and email to me the adonet-dbapi as you now have it patched? I will create a version which does not error out. (May take a few days.) -- Vernon 2009/10/28 Markus Törnqvist m...@nysv.org On Wed, Oct 28, 2009 at 10:53:45PM +0900, Seo Sanghyeon wrote:

Re: [IronPython] Django 1.1 on IronPython 2.6rc2 findings

2009-10-29 Thread Vernon Cole
in the trunk, if possible. -- Vernon On Wed, Oct 28, 2009 at 11:15 AM, Jeff Hardy jdha...@gmail.com wrote: On Wed, Oct 28, 2009 at 10:23 AM, Vernon Cole vernondc...@gmail.com wrote: Markus: Would you be so kind as to zip up and email to me the adonet-dbapi as you now have it patched

Re: [IronPython] Django 1.1 on IronPython 2.6rc2 findings

2009-10-29 Thread Vernon Cole
I am cross posting here my inquiry sent to db-sig about how to change paramstyles, along with the only response. If you feel that option #1 below is NOT the way to go, please say something now. -- Vernon Cole M.-A. Lemburg ✆ to me, db-sig show details Sep 26 Vernon Cole wrote: I am

Re: [IronPython] How to convert a 'str' type to byteArray

2009-11-11 Thread Vernon Cole
Make sure what data type is really being returned by part.getpayload() . Perhaps it is already in a suitable for when you get it? The Python 2.x language method of loading a binary blob of memory is to use the built in function buffer s = 'this is a string' b = buffer(s) b will be accepted my a

[IronPython] Poll: split of adodbapi.py into two modules? (django support)

2009-11-28 Thread Vernon Cole
to be attributes of adodbapi, such as 'adUseClient' and 'adXactBrowse'. Question: Should I proceed to use the separate version of ado_consts, even though it might break some existing programs? -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http

[IronPython] x = unicode(someExtendedUnicodeString) fails.

2009-12-17 Thread Vernon Cole
an unneeded exception handler to my own code. -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] sqlAlachemy

2009-12-31 Thread Vernon Cole
an alpha test version of the new code out next week. Stay tuned. -- Vernon Cole http://sourceforge.net/projects/adodbapi On Thu, Dec 31, 2009 at 11:08 AM, Michael Foord fuzzy...@voidspace.org.ukwrote: On 31/12/2009 17:54, John wrote: Does ironpython (any version) work with sqlAlachemy? I

Re: [IronPython] IronPython in Visual Studio 2008

2010-01-19 Thread Vernon Cole
actually needs the performance boost, you recode that piece in C++ (or C#). I find that design changes usually do much more to boost perceived speed than compiler changes do. Python excels at that. So welcome aboard. You have discovered a great tool. -- Vernon Cole On Tue, Jan 19, 2010 at 10:22

Re: [IronPython] Django, __unicode__, and #20366

2010-02-01 Thread Vernon Cole
support and IronPython support go hand in hand. -- Vernon Cole On Sun, Jan 31, 2010 at 12:25 PM, Michael Foord fuzzy...@voidspace.org.ukwrote: On 31/01/2010 01:21, Jeff Hardy wrote: Hi all, I've got a question regarding __unicode__ and issue #20366[0]. Django explicitly encourages the use

Re: [IronPython] Django, __unicode__, and #20366

2010-02-11 Thread Vernon Cole
On Thu, Feb 11, 2010 at 8:48 AM, Michael Foord fuzzy...@voidspace.org.ukwrote: On 11/02/2010 15:44, Vernon Cole wrote: Just a little reminder in all this noise... The correct thing to do with unicode(u'a unicode string') is MAKE NO CHANGE. The correct thing to do with str('an ASCII string

Re: [IronPython] Django, __unicode__, and #20366

2010-02-11 Thread Vernon Cole
Dear Dino and Jeff: I think we are all on the same wavelength. IronPython makes unicode and str the same implicitly. Python 3 makes them the same explicitly -- by getting rid of __unicode__ completely. The effort to make django (or any other application) run on IronPython and the effort to

Re: [IronPython] So what is left for Django?

2010-02-24 Thread Vernon Cole
Jeff: Is it time to copy the new adodbapi version into the bitbucket location yet? Is there anything else I should do first? -- Vernon Cole General Announcement:... There is a new, supposedly django compatible version of adodbapi in the Mercurial source tree at http://sourceforge.net

Re: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid

2010-03-10 Thread Vernon Cole
C.J.: This in indeed great news! Can you give a hint how to get Ubuntu to pick this up? I'm really tired of only having IPy 1.1, but I don't know my way around Debian's APT-GET setup for new submissions. -- Vernon Cole On Wed, Mar 10, 2010 at 11:27 AM, C.J. Adams-Collier c

Re: [IronPython] IronRuby 0.9 and IronPython 2.6~beta2 in Debian sid

2010-03-17 Thread Vernon Cole
the progress, subscribe over here: https://bugs.launchpad.net/ubuntu/+source/ironpython/+bug/525547 Cheers, C.J. On Wed, 2010-03-10 at 22:38 -0700, Vernon Cole wrote: C.J.: This in indeed great news! Can you give a hint how to get Ubuntu to pick this up? I'm really tired of only

Re: [IronPython] is the performance gap between C and CPython a decent comparision between the performance gap between C# and IronPython?

2010-04-14 Thread Vernon Cole
. One can always write a program that will outperform a product doing some single defined task. -- Vernon Cole On Wed, Apr 14, 2010 at 5:52 AM, Pablo Dalmazzo pablodalm...@hotmail.comwrote: Hi there, I was replied in one of my topics in StackOverflow that the gap performance between C

Re: [IronPython] License change?

2010-04-19 Thread Vernon Cole
, keep up the good work! -- Vernon Cole On Mon, Apr 19, 2010 at 4:10 PM, Dan Wierenga dwiere...@gmail.com wrote: On Mon, Apr 19, 2010 at 2:55 PM, Dino Viehland di...@microsoft.com wrote: Do you think adopting a more popular license, such as the Apache License, would be a good change

Re: [IronPython] How to install 3rd part packages into IronPython ?

2010-04-27 Thread Vernon Cole
of mySQLdb which you feel are lacking in adodbapi, please let me know and I will see if they can be added. -- Vernon Cole P.S.: The new release of IPy has uncovered a bug in Decimal and binary data types. I have a fix, and if all tests pass I'll upload a new version later today or tomorrow

[IronPython] adodbapi 2.3.0 (the django version) released

2010-05-03 Thread Vernon Cole
Hello everyone. I have just uploaded the latest version of adodbapi. This version is highly refactored following the work of Adam Vandenberg, and also has all of the current user suggested patches. Both the Mercurial tree and the downloadable zip files are updated. (There is no fancy installer,

Re: [IronPython] adodbapi 2.3.0 (the django version) released

2010-05-03 Thread Vernon Cole
thought I'd save myself the learning curve for understanding if it's silly or not...) thanks Ronnie On Mon, May 3, 2010 at 12:37 PM, Vernon Cole vernondc...@gmail.comwrote: Hello everyone. I have just uploaded the latest version of adodbapi. This version is highly refactored following

Re: [IronPython] example of using IronPython with MS Access database (.mdb)?

2010-05-24 Thread Vernon Cole
), and got a dismal failure, its because I messed up the latest distribution .zip file. That was corrected on Friday. -- Vernon Cole On Mon, May 24, 2010 at 11:07 AM, Peter Masiar peter.mas...@gmail.comwrote: Thank you. The three lines from Oracle example made the difference: import clr import System

[IronPython] Fwd: example of using IronPython with MS Access database (.mdb)?

2010-05-24 Thread Vernon Cole
(A copy for the group. Peter did not wish to possibly embarrass me, for which I thank him.) -- Vernon -- Forwarded message -- From: Vernon Cole vernondc...@gmail.com Date: Mon, May 24, 2010 at 2:29 PM Subject: Re: [IronPython] example of using IronPython with MS Access database

Re: [IronPython] datetime.strptime is missing in IronPython?

2010-06-08 Thread Vernon Cole
using time.strptime() is included in the above definition. -- Vernon Cole On Mon, Jun 7, 2010 at 11:27 PM, Tony Meyer tony.me...@gmail.com wrote: On Tue, Jun 8, 2010 at 4:46 PM, Vernon Cole vernondc...@gmail.com wrote: The issue tracker for CPython [if I read it correctly] lists

Re: [IronPython] Compiling so that IronPython libraries are recognized?

2010-07-09 Thread Vernon Cole
to do the install the hard way. (Another to-do list item.) You will either need to find an ADO provider for Postgres, or use an ODBC driver and a different connection string. (I use an ODBC connection for the MySQL sample in the \test folder.) Let me know how it works for you. -- Vernon Cole On Fri

Re: [IronPython] Writing to a file with unicode name

2010-07-09 Thread Vernon Cole
Adballa: One problem you may be having is with Python trying to escape the backslashes in your Windows file name. I tried a very simple test using the Python open statement rather than any fancy .NET things. It created a file with a japenese name on my Windows Vista laptop. Note that I used

Re: [IronPython] MySQL and Iron Python

2010-07-20 Thread Vernon Cole
I use MySQL as one of the basic tests for adodbapi, so I can say that it works pretty well for me. What obstacle do you hit? -- Vernon Cole On Tue, Jul 20, 2010 at 11:52 AM, Ian Hobson i...@ianhobson.co.uk wrote: Hi all, How can I (a nube) read a MySQL database using Iron Python? (windows 7

Re: [IronPython] MySQL and Iron Python

2010-07-20 Thread Vernon Cole
Cole wrote: I use MySQL as one of the basic tests for adodbapi, so I can say that it works pretty well for me. What obstacle do you hit? -- Vernon Cole On Tue, Jul 20, 2010 at 11:52 AM, Ian Hobson i...@ianhobson.co.uk wrote: Hi all, How can I (a nube) read a MySQL database using Iron

Re: [IronPython] MySQL and Iron Python

2010-07-20 Thread Vernon Cole
! Now to find out if I can access it by field name and not just position. Thanks again Ian On 20/07/2010 19:32, Vernon Cole wrote: You need to supply a Driver for each dialect of SQL you use. The Microsoft drivers (SQL server and JET) ship with Windows, but you have to hunt for the others

Re: [IronPython] MySQL and Iron Python

2010-07-22 Thread Vernon Cole
at 10:47 PM, Vernon Cole vernondc...@gmail.com wrote: Field name access is the next development step. The API calls for position (field number) access. Field name access is an extension. I personally think that it is the obvious thing to do, but the movers and shakers of the database API

[IronPython] unittest broken in IPy 2.7A1

2010-07-24 Thread Vernon Cole
Dear development team: This one may be important... c:\program files\IronPython 2.7\ipy.exe IronPython 2.7 Alpha 1 (2.7.0.1) on .NET 4.0.30319.1 Type help, copyright, credits or license for more information. import unittest Traceback (most recent call last): File stdin, line 1, in module

Re: [IronPython] unittest broken in IPy 2.7A1

2010-07-27 Thread Vernon Cole
On 25/07/2010 01:56, Vernon Cole wrote: Dear development team: This one may be important... This error is because although the unittest package directory is present in the Lib directory, big chunks of the actual unittest package are missing... Michael c:\program files\IronPython 2.7

[IronPython] Announcing adodbapi version 2.4.0 -- with COLUMN NAME data access

2010-07-31 Thread Vernon Cole
Announcing a new version of adodbapi... [ for those who may not know... [ adodbapi is a pure Python package which fully implements the PEP-249 db-api [ using Microsoft ADO/db. [ It runs on CPython versions 2.3 and later, IronPython 2.6 and later, [ or Python 3.0 and later. I have often been

Re: [IronPython] Announcing adodbapi version 2.4.0 -- with COLUMN NAMEdata access

2010-07-31 Thread Vernon Cole
apps to databases. Thanks. Ishe We all have the right to be wrong in our opinions but not in our facts. - Original Message - *From:* Vernon Cole vernondc...@gmail.com *To:* Discussion of IronPython users@lists.ironpython.com *Sent:* Saturday, July 31, 2010 9:42 AM *Subject

[IronPython] Fwd: [DB-SIG] How can I reliably detect whether an SQL statement is a Query?

2010-08-02 Thread Vernon Cole
farcep...@gmail.com Date: Mon, Aug 2, 2010 at 7:55 AM Subject: Re: [DB-SIG] How can I reliably detect whether an SQL statement is a Query? To: Vernon Cole vernondc...@gmail.com Cc: DB-SIG @ Python.org db-...@python.org On Mon, Aug 2, 2010 at 5:57 AM, Vernon Cole vernondc...@gmail.com wrote: Dear

Re: [IronPython] IronPython / DLR Direction

2010-08-07 Thread Vernon Cole
I just received my official certification as a CIW JavaScript specialist. I have decided how to use the knowledge I gained in the class -- which is to know that I should avoid having to use JavaScript at all whenever possible. I made a similar decision in 1973 after taking a class on IBM mainframe

Re: [IronPython] Fwd: [DB-SIG] How can I reliably detect whether an SQL statement is a Query?

2010-08-11 Thread Vernon Cole
On Tue, Aug 10, 2010 at 12:41 PM, Vernon Cole vernondc...@gmail.comwrote: I am afraid Lukas is very correct. (Thanks, you really saved me a lot of debugging time.) This will be an anti-announcement. I got a version (2.4.1A1) of adodbapi working (sort of) on ADO.NET and splatted up against

Re: [IronPython] If not IronPython, what?

2010-08-22 Thread Vernon Cole
in Redmond, Washington, USA. If nothing else, the competition pushes Microsoft to continue to improve the quality of their products. IronPython is the greatest thing which has happened in Redmond since NT was shipped. -- Vernon Cole * this e-mail is being written on an Ubuntu Linux box which is also

Re: [IronPython] Accessing Serial Port from IronPython driven Webpage

2010-08-25 Thread Vernon Cole
Kurt: Have you tried http://pyserial.sourceforge.net/ ? It is documented to run on IronPython, either dotNet or MONO. I have a setup similar to what you describe, but using x.10 hardware which is controlled using a module called x10.py, which in turn calls serial.py. It controls the air

Re: [IronPython] Accessing Serial Port from IronPython driven Webpage

2010-08-25 Thread Vernon Cole
What x.10 misses in reliability, it makes up for by being inexpensive. I have had the x.10 devices miss a command, sometimes, probably less than 1%. It's not a problem with brighten or dim commands, the temperature feedback will just repeat the command next loop if neeed. To turn things on or off,

Re: [IronPython] Unpacking

2010-09-08 Thread Vernon Cole
If you bring up Python in interactive mode, and type import this, some sage advice will appear: v v v v v C:\Users\vernonipy C:\Users\vernonc:\program files\IronPython 2.7\ipy.exe IronPython 2.7 Alpha 1 (2.7.0.1) on .NET 4.0.30319.1 import this Explicit is better than implicit. Simple is better

Re: [IronPython] Iteration via __getitem__ doesn't work in the Visual Studio debugging environment

2010-09-10 Thread Vernon Cole
IMHO, StopIteration should never trigger a debugger. It is an expected operation which will happen in many (most?) loops. As an Exception, it should be an exception -- not handled by the same code in the debugger. -- Vernon On Fri, Sep 10, 2010 at 12:04 AM, Tony Meyer tony.me...@gmail.com

Re: [IronPython] Announcing IronPython 2.7 Beta 1

2010-10-22 Thread Vernon Cole
Your issue #2 is not a bug -- or at least it is the same as all other installers. Every version of Python which you install will take over as the default Open command for .py files -- and will supply it's own icon for them. When you are trying out a new Python version, you must remember to

Re: [IronPython] The Future of IronPython

2010-10-22 Thread Vernon Cole
Jeff: Can your version of zlib be slipped in to v2.7 before final now? (please please pretty please) I would really like distutils, etc to actually work. -- Vernon Cole On Thu, Oct 21, 2010 at 5:09 PM, Jeff Hardy jdha...@gmail.com wrote: As Dino recently posted, this is the last release

Re: [IronPython] bytes and str in 2.7 io module

2010-11-08 Thread Vernon Cole
Jeff: Make sure to check the Python 3 bindings as well. We don't want to loose ground going in that direction, since IPy already has Python 3's best feature -- all strings are Unicode. Maybe the equivalent of if sys.version[0] = '3': should be buried in the helper so that that wheel will not

Re: [IronPython] Adding Unit Tests

2011-01-11 Thread Vernon Cole
An interesting thought... MY Linux box has a cmd.exe -- it's part of WINE. But cmd.exe is a very simple shell. How hard would it be to write one in Python? IPython (different from IronPython) IS a shell, if I understand correctly. -- Vernon On Mon, Jan 10, 2011 at 8:11 PM, Dino Viehland

[IronPython] Additional modules to ship with IronPython 2.7.1?

2011-02-09 Thread Vernon Cole
be considered for inclusion? -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] Red Flag(?) change in import

2011-02-09 Thread Vernon Cole
I can't see an item like this on the bug list. Perhaps the sky is falling, perhaps, not. I am reporting the problem here in case it is. It seems like something the big guns should be made aware of right away. The behavior seems to have changed since IPy 2.6, and if someone has indeed been working

Re: [IronPython] Red Flag(?) change in import

2011-02-10 Thread Vernon Cole
. Is not adodbapi still part of the test suite? The failure should have shown up there. -- Vernon Cole On Thu, Feb 10, 2011 at 3:42 AM, Federico Vaggi va...@cosbi.eu wrote: I ran into a relatively similar problem with importing networkx into IronPython, but was able to fix it by editing out a few

[IronPython] announcing adodbapi version 2.4.2 now with PostgreSQL support.

2011-02-15 Thread Vernon Cole
user-definable system-to-Python data convertion functions (selected by ADO data type, or by column) * Money and Decimal column data is in decimal.Decimal format (unless you select another) -- Vernon Cole ___ Users mailing list Users@lists.ironpython.com http

[IronPython] Fwd: Status updated to Closed for Issue: distutils install command will not install a simple module. [IronPython: 28530]

2011-02-19 Thread Vernon Cole
Jeff: You are right to close this bug -- I made a bad report based on an incorrect assumption. But I would not have been led astray if the error message had not been so obscure. It should SAY just exactly what you said: elevation is required. IMHO the distutils error reporting should be

[IronPython] Arright dangit! Where is the OFFICIAL IronPython source code?

2011-02-20 Thread Vernon Cole
I've lost my link, and cannot muddle my way to meaningful results on either Codeplex, Wikepedia or Github. Github actually refers me back to Codeplex, where the most recent release is October of last year. What is the URL to the real, true, current official source for IronPython? -- Vernon Cole

Re: [IronPython] Arright dangit! Where is the OFFICIAL IronPython source code?

2011-02-20 Thread Vernon Cole
wrote: Github is the master source. And yes, the various websites need straightening out. - Jeff On Sun, Feb 20, 2011 at 9:42 AM, Vernon Cole vernondc...@gmail.com wrote: I've lost my link, and cannot muddle my way to meaningful results on either Codeplex, Wikepedia or Github. Github

Re: [IronPython] Arright dangit! Where is the OFFICIAL IronPython source code?

2011-02-20 Thread Vernon Cole
Thanks! That worked great. Now here's my first direct contribution. see http://ironpython.codeplex.com/workitem/30218 for a version of webbrowser.py which actually works on cli. (and therefore import antigravity also works.) -- Vernon On Sun, Feb 20, 2011 at 3:22 PM, Dino Viehland

  1   2   >