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
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:
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
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
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
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
[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
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
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
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
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
11 matches
Mail list logo