473,544 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
0
169
thread by: Roger Upole | last post Oct 7 '08 by: Roger Upole
William Heath wrote: You can use the certificates snap in for MMC to view them. Start->Run and enter mmc.exe File->Add/Remove snapin Click the Add button, and then select Certificates. On some systems, you might find it already configured under Programs->Administrative tools->Certificates.
0
169
thread by: skip | last post Oct 9 '08 by: skip
Joe templ = Template("The $object in $location falls mainly in the $subloc.") Joe d = templ.match(s) Joeand then d would either by None (if s doesn't match), or a Joedictionary with values for 'object', 'location', and 'subloc'. JoeBut I couldn't find anything like that in the docs. Am I Joeoverlooking something? Nope, you're not...
0
168
thread by: Joe Riopel | last post Jun 27 '08 by: Joe Riopel
On Tue, Apr 29, 2008 at 10:33 AM, Victor Subervi <victorsubervi@gmail.comwrote: Are you only trying to "print '<tr bgcolor="%s">\n' % bg" once, or for each iteration of the loop? It might have been the way your message was formatted, but the try/except look like it's out of the for loop. So the print will only run once, after the loop...
0
168
thread by: David | last post Jun 27 '08 by: David
#!/usr/bin/env perl #!/usr/bin/python import sys lines = open(sys.argv).readlines() open(sys.argv, 'w').writelines()
0
168
thread by: sturlamolden | last post Jun 27 '08 by: sturlamolden
On May 25, 8:02 pm, Rodrigo Lazo <rlazo....@gmail.comwrote: Heap is the data structure to use for 'fast (nearly) sorted inserts'. But heapq do not support (as far as I know) deletion of duplicates. But a custom heap class coud do that of course.
1
168
thread by: Mallikarjun Melagiri | last post Jun 27 '08 by: A.T.Hofkamp
Hi Noah, I am new to python. I'm trying to use pexpect. Following is my problem definition: I should have a script on my machine A, which should 'ssh' to machine B and from there it shud copy a file to machine C thru 'scp'.
0
168
thread by: Diez B. Roggisch | last post Jun 27 '08 by: Diez B. Roggisch
I guess this is a rambling way to ask: are docstrings *it* as far Docstrings are it. Yet there are several ways how their content is interpreted. Google for example epydoc. You can embed links that way. I don't know perl, and even less it's documentation system. Yet I wonder: *where* do you put your function documentation, if not at the...
0
168
thread by: js | last post Jun 27 '08 by: js
By "package", I meant APT, Ports for BSD, MacPorts, etc. On Mon, Jun 16, 2008 at 1:16 AM, Jean-Paul Calderone <exarkun@divmod.comwrote:
0
168
thread by: Hendrik van Rooyen | last post Jul 8 '08 by: Hendrik van Rooyen
norseman wrote: Thanks Steve, for the tips. In a sense, I have dreaded an answer like this, as it is cold comfort to realise that I will be hassled off my objective to take a side trip through Linux's complexities, just so that I can play with the hardware to evaluate if we can use it for what we want to do.
0
168
thread by: Fredrik Lundh | last post Jul 17 '08 by: Fredrik Lundh
Fredrik Lundh wrote: and yes, if this is the problem, the correct solution is to create an separate object type that's designed to manages the resource and act as a proxy against it, and then let all operations against the resource (from other objects) go via the proxy. never let more than one object "own" an external resource.
0
168
thread by: | last post Aug 11 '08 by:
Sorry, my fault... I am trying to build a web application for data analysis. Basically some data will be read from a database and passed to a python script (myLibs.py) to build an image as follows. f=urllib.urlopen("http://localhost/path2Libs/myLibs.py",urllib.urlencode(TheData)) print "Content-type: image/png\n" print f.read() f.close()
1
168
thread by: Stacey | last post Aug 14 '08 by: Diez B. Roggisch
Hi Guys, I'm new to Python (mostly) and I'm wanting to use it for a new project I'm faced with. I have a machine (PLC) that is dumping its test results into a fixed-length text file. I need to pull this data into a database (MySQL most likely) so that I can access it with Crystal Reports to create daily reports for my engineers.
1
168
thread by: Eric Wertman | last post Aug 18 '08 by: John Machin
I'm not sure about the environment variable, but os.uname() should give you what you need otherwise.
1
168
thread by: Hendrik van Rooyen | last post Aug 25 '08 by: Patrick Maupin
Patrick Maupin <pmau....ail.comwrote: Thanks. Nice to see that there is still some sense of humour left somewhere - its all been so serious here lately - people seem to forget that hacking is fun! Actually, I am not complaining - I am asking for advice on the side effects of what I am doing, which is replacing a bunch of bits
1
168
thread by: taghi | last post Aug 28 '08 by: Tim Golden
I want to call NetShareEnum, a function from netapi32.dll NetShareEnum has this definition: NET_API_STATUS NetShareEnum( __in LPWSTR servername, __in DWORD level, __out LPBYTE *bufptr, __in DWORD prefmaxlen, __out LPDWORD entriesread, __out LPDWORD totalentries,
0
168
thread by: Robert Kern | last post Sep 13 '08 by: Robert Kern
Blubaugh, David A. wrote: For the last time, Jarrod Millman already told you where to get it on numpy-discussion. Please stop bothering python-list with this stuff. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had
0
168
thread by: Terry Reedy | last post Oct 7 '08 by: Terry Reedy
Orestis Markou wrote: The lockstep stuff is either new stuff which does not (at least, is intended not to) affect old code, or changes that you have to request via __future__ imports. Much 1.5 code runs fine on 2.6. I was careful to differentiate between syntax and semantics. I do not know of any 2.4 syntax that would not work in 2.6. ...
0
168
thread by: Steve Holden | last post Oct 8 '08 by: Steve Holden
sa6113 wrote: http://www.openssh.org/ would be my first port of call. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/
0
168
thread by: Jean-Paul Calderone | last post Oct 22 '08 by: Jean-Paul Calderone
On Wed, 22 Oct 2008 08:29:08 -0400, Neal Becker <ndbecker2@gmail.comwrote: I don't really know anything about the kind of classes that boost makes, however the behavior you describe is like the behavior of new-style classes: ... 10 ... Traceback (most recent call last):
0
168
thread by: Paul Rubin | last post Oct 31 '08 by: Paul Rubin
Joe Strout <joe@strout.netwrites: You can compare dictionaries for equality: {'object': 'rain', 'location': 'Spain', 'subloc': 'train'} True
3
167
thread by: python | last post Jun 27 '08 by: python
Bruno, Thank you for your detailed analysis. I learned a lot about Python reading everyone's responses. For development I'm using #5: "globals().get("func")" because its seamless to add additional functionality. But when I release into production I'm going to shift to #3: "Place all my functions in dictionary and lookup the function to...
0
167
thread by: Terry Reedy | last post Jun 27 '08 by: Terry Reedy
"Dan Upton" <upton@virginia.eduwrote in message news:5504f9ac0805161422r31f3a0d6sbe4e49914ade7383@mail.gmail.com... | RuntimeError: dictionary changed size during iteration If you do not actually need a dict, an explicitly managed list is an alternative. maxproc = # procs = while True:
0
167
thread by: Terry Reedy | last post Jun 27 '08 by: Terry Reedy
"??" <littlesweetmelon@gmail.comwrote in message news:cdb837ea0806050201l10a91b40xfa28d29de18fed30@mail.gmail.com... | When you use distutil to trigger compilation, a special *python script* | will check whether the default compiler is VS2003. If there is no | VS2003, this script will pop-up the error for incompatible compilers. | I really...
0
167
thread by: David | last post Jun 27 '08 by: David
On Sun, Jun 22, 2008 at 1:52 PM, Jonathan Roberts <jonrob@fedoraproject.orgwrote: I'm sure that many (myself included) would be happy to help out, but due to timezone differences, working hours, etc you may only get responses up to 24 hours (or more) later. What needs does your (non-face-to-face) group have that would not be met by...
0
167
thread by: Jean-Paul Calderone | last post Aug 11 '08 by: Jean-Paul Calderone
On Sun, 10 Aug 2008 21:25:38 -0700 (PDT), James Brady <james.colin.brady@gmail.comwrote: You can find an example of running commands over SSH with Twisted online: http://twistedmatrix.com/projects/conch/documentation/examples/ Jean-Paul

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.