Where's the source?

2001-04-09 Thread Robin Dunn
Does anybody else find it odd that the ActiveState Python installer for windows includes the win32 extensions, and the .zip with the Debug version of the python extensions also includes the win32 extensions, but the source .zip does not? I was hoping for a nice integrated source tree with just on

enumerating workgroups and shares

2001-04-09 Thread Noah
I'm having a little trouble understanding the win32net module. What does the 'level' parameter do for many of the methods? For example, the NetServerEnum method takes these parameters: NetServerEnum( server, level , type , domain , resumeHandle , prefLen ) If I use 0 or 1 I get an error:

RE: Problem importing a module with python_d

2001-04-09 Thread Tom Malcolmson
In your project settings, link tab, output, for your debug build, add the '_d' to the module name. When Python_d looks for your module, it looks for BGI_Objects_d. Tom. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of David > Humphrey > Sent: April

Re: Problem importing a module with python_d

2001-04-09 Thread Paul Prescod
Python will look for modulename_d.pyd. If you have modulename.pyd, that isn't enough. You need the _d suffix. This allows you to run debug and release versions of modules side by side just as you can run debug and release versions of Python side by side. David Humphrey wrote: > > I have a proble

Problem importing a module with python_d

2001-04-09 Thread David Humphrey
I have a problem that has puzzled me for a couple of hours, so I need another set of eyes to help me see what I'm doing wrong. First, here's a little environment information: Windows NT 4.0 SP 6 Intel PII-300 processor Activestate Python 2.0 Build 203 Microsoft Visual C++ 6.0 I have written an

Re: How do I read a raw floppy device on win98

2001-04-09 Thread Paul Prescod
Corey Zimmet wrote: > >... > > However, on win98, I believe I have to use a different methodology using > DeviceIOControl. I have yet to succeed. Does anyone know how to access the > floppy device on win98? I don't know the answer, but perhaps someone on python-list would. You should probably

Re: ODBC ->CGI results

2001-04-09 Thread Paul Prescod
[EMAIL PROTECTED] wrote: > > I am accessing an Access database with a CGI script, everything works but > for the problem that the results are in Tuple format when I "print" them as > an output to a browser client, could someone show me a better way to do > this or a work around? If you would rat

Re: Help: dictionary of lists

2001-04-09 Thread Ryan Sackenheim
Try this: numbers_ARRAY_X_date = {} for line in lines: data = string.split(line,',') numbers_ARRAY_X_date[data[0]] = data[1:] This will give you a dictionary item searchable by your date. Watch out for duplicate dates unless you expect it to overwrite your dictionary item values. If

Re: Help: dictionary of lists

2001-04-09 Thread Howard Hansen
Try this: import string lines = ["1/12/2001,3,6,8,34,2", "1/13/2001,4,7,9,35,3"] numbers_array = {} for line in lines: data = string.split(line, ",") date = data[0] numbers_array[date] = data[1:] # This is a slice of the list Now you can access

Help: dictionary of lists

2001-04-09 Thread David Ransier
Hello experts. I'm very experienced with Perl, but new to Python. I'm trying to learn Python by converting some of my Perl scripts. I have a program that reads a file where each line is a date followed by some numbers. Like this: 1/12/2001,3,6,8,34,2 This piece of code seems to work ok t

ODBC ->CGI results

2001-04-09 Thread Sharriff . Aina
I am accessing an Access database with a CGI script, everything works but for the problem that the results are in Tuple format when I "print" them as an output to a browser client, could someone show me a better way to do this or a work around? # My script### #!C:/Python/python.exe -u print