Cupric wrote:
I have a python script that runs fine from the command line or from
within IDLE, but doesn't work through the Vista Task Scheduler.
The script downloads some csv files and then uses pywin32 to combine
the csv files into a single document. When I run it through the task
scheduler,
Shao wrote:
Dear All,
I am looking for a nitty-gritty Python Ajax script to fire off a
number of processing programmes, periodically checking their
operations, sending messages back to an HTML div form by sending back
the links of generated data files, to be downloaded by end users. I am
using
Lawrence D'Oliveiro wrote:
In message [EMAIL PROTECTED], Steve
Holden wrote:
Lawrence D'Oliveiro wrote:
In message
[EMAIL PROTECTED],
Michele Simionato wrote:
On Nov 7, 4:38 pm, Tim Golden [EMAIL PROTECTED] wrote:
Seriously, though, although Python does indeed support multiple
Greg Ewing wrote:
I'm creating a COM server in Python that will have one
main class, with methods that create and return instances
of other classes.
I've found that I need to use win32com.server.util.wrap
and unwrap on these objects when they pass over a COM
connection. This doesn't seem very
Mr.SpOOn wrote:
On Thu, Nov 6, 2008 at 7:44 PM, Tim Golden [EMAIL PROTECTED] wrote:
While that's no bad thing, you don't really need to do
that simply to understand these examples: they're just
saying do whatever you need to to make these method
class methods, not instance methods.
Yes.
I
[EMAIL PROTECTED] wrote:
tmallen:
I'm parsing some text files, and I want to strip blank lines in the
process. Is there a simpler way to do this than what I have here?
lines = filter(lambda line: len(line.strip()) 0, lines)
xlines = (line for line in open(filename) if line.strip())
Bye,
Shannon Mayne wrote:
I would like to create objects with algorithmically determined names
based on other object names and use object names for general algorithm
input.
How would one extract the name of an object from an object instance as
a string. I would think that it is stored as an
alex23 wrote:
On Oct 23, 3:15 pm, Larry Bates [EMAIL PROTECTED] wrote:
Bruno is correct, the protocol IS https, you don't type shttp into your browser
get secure http connection.
https[1] and shttp[2] are two entirely different protocols.
[1] http://en.wikipedia.org/wiki/Https
[2] http
azrael wrote:
I mean shttp. (secure hyper text transfer protocol)
On Oct 22, 9:48 am, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
azrael a écrit :
There have been some discutions with my partner about which protocol
to use. We agreed to use also http. But we are looking for a
ryan wrote:
i have implemented a small client server model to do file transfer
over a LAN network.
It work with some machines on the network and on others it doesnt.
when i run the server.py file in some machine then it pops up a
windows security alert.
The message is as follows:
Do you
sa6113 wrote:
which program I have to install for using paramiko for sftp between a two
windows machine in local network??
I have installed freeSSHd for server machine but I got an Authentication
failed erro when try to connect to server using this code :
sock.connect((hostname, port))
t =
Marcin201 wrote:
Is there an built-in functionality in python to convert Windows paths
to Unix paths? I am running into problems when creating data files on
Windows and the running them on a Unix platform. I create paths using
os.path.join.
os.path.join('Pictures', '01.jpg') returns
Tino Wildenhain wrote:
Hi,
Abah Joseph wrote:
I have written a small application of about 40-45 lines which is about
4KB, so I want to create a single .exe file from it, using py2exe it
created unnecessary files, that just increase the size of the program
and also less portable to me. What
Robocop wrote:
oops! Sorry about that, i should have just copied my code directly.
I actually did specify an int in range:
year = '2008'
month = '09'
limit = '31'
for i in range(1,int(limit)):
The code is currently failing due to the syntax in the filter,
particularly the section date =
Astley Le Jasper wrote:
Sorry for the numpty question ...
How do you find the reference name of an object?
So if i have this
bob = modulename.objectname()
how do i find that the name is 'bob'
Short answer is that you can't. This because Python's names (bob) are bound to
objects
Joe Strout wrote:
On Oct 16, 2008, at 10:59 AM, Larry Bates wrote:
how do i find that the name is 'bob'
Short answer is that you can't. This because Python's names (bob) are
bound to objects (modulename.objectname()). They are NOT variables as
they are in other programming languages
You can do the following:
a = [1,2,3,4,5]
del a[0]
and
a = {1:'1', 2: '2', 3: '3', 4:'4', 5:'5'}
del a[1]
why doesn't it work the same for sets (particularly since sets are based on a
dictionary)?
a = set([1,2,3,4,5])
del a[1]
Yes I know that sets have a remove method (like lists), but
Chris Hebert wrote:
On Thu, Oct 2, 2008 at 3:20 PM, Larry Bates [EMAIL PROTECTED] wrote:
You can do the following:
a = [1,2,3,4,5]
del a[0]
and
a = {1:'1', 2: '2', 3: '3', 4:'4', 5:'5'}
del a[1]
why doesn't it work the same for sets (particularly since sets are based on
a dictionary
Daniel wrote:
Hello,
I've been building a system that has need to send object data across
the network. The approach I've taken has been to build Data Transfer
Objects, which just contain the attributes of the objects, and to
pickle them and send them over a socket connection.
As I get deeper
johannes raggam wrote:
On Thu, 2008-10-02 at 15:18 -0500, [EMAIL PROTECTED] wrote:
Joe I've started to think fondly of the rock-solid stability of Python,
Joe and have been wondering if perhaps aggressive unit testing could
Joe mitigate most of the problems of weak typing.
Note:
sa6113 wrote:
I want to connect form a windows machine to a Linux one using SSH (I use
Paramiko) and simply copy a file to Linux machine.
Would you please help me how should I start?
Is there any useful code?
I find that one of the easiest ways of doing this is to install Cygwin on the
windows
nishalrs wrote:
Hello All,
My main motivation is to build a collection of useful mathematical
models (that I have developed over the years) to design ultrasonic
sensors. This should be some sort of a library that should be able to
be used for desktop/web application development, to run in
Marin Brkic wrote:
Not commercial distribution, but an academic kind of sorts - giving
the exe file to coleagues, so they can use it in their work. Giving
.py file is not an option, since due to centralized computer
maintenance, they don't (and cannot) have installed python (except the
ones that
Drake wrote:
I have a general question of Python style, or perhaps just good
programming practice.
My group is developing a medium-sized library of general-purpose
Python functions, some of which do I/O. Therefore it is possible for
many of the library functions to raise IOError Exceptions. The
Torsten Mohr wrote:
Hi,
i have some questions related to new style classes, they look
quite useful but i wonder if somebody can give me an example
on constructors using __new__ and on using __init__ ?
I just see that when using it i can't give parameters to __new__
and when i additionally
Strato wrote:
Hi folks,
I want to write some kind of test to check at startup if another
instance of my script is already running.
I don't want to handle writing of a PID file because it is too
Unix/Linux specific way to do this, and I need to keep the code to be
cross-platform.
I think
Strato wrote:
Hi folks,
I want to write some kind of test to check at startup if another
instance of my script is already running.
I don't want to handle writing of a PID file because it is too
Unix/Linux specific way to do this, and I need to keep the code to be
cross-platform.
I think
Marco Bizzarri wrote:
On Sat, Sep 13, 2008 at 4:11 PM, Fredrik Lundh [EMAIL PROTECTED] wrote:
Marco Bizzarri wrote:
class FolderInUse:
def true_for(self, archivefolder):
return any([instance.forbid_to_close(archivefolder) for instance in
Bruno Desthuilliers wrote:
Bruno Desthuilliers a écrit :
Larry Bates a écrit :
(snip)
IMHO it reads better if you use the __call__ method of the class to
return the value
IMHO, it makes no sense at all to abuse the __call__ magic method here.
Sorry - after a more careful re-read of other
metaperl.com wrote:
Pyparsing has a really nice feature that I want in PLY. I want to
specify a list of strings and have them converted to a regular
expression.
A Perl module which does an aggressively optimizing job of this is
Regexp::List -
castironpi wrote:
I will try my idea again. I want to talk to people about a module I
want to write and I will take the time to explain it. I think it's a
cool idea that a lot of people, forgiving the slang, could benefit
from. What are its flaws?
A user has a file he is using either 1/ to
icarus wrote:
Oh ok. Thanks. In windows xp I just renamed the file extension to .pyw
That did it.
one more question...
how do I create a pythonw standalone executable that works on w32,
linux, mac, etc..?
My intent is to have the process transparent to the user. He wouldn't
even know the app
Sean DiZazzo wrote:
Hi all,
I'm trying to find a way to get a list of all the installed programs
on a Windows box via Python. I thought of a few hacks that might
partially work, and then thought about Add/Remove Programs Seems
like the right way to go. I looked over the pywin32 docs a bit,
Rex wrote:
Hello,
I am working on an academic research project where I need to log in to
a website (www.lexis.com) over HTTPS and execute a bunch of queries to
gather a data set. I just discovered the mechanize module, which seems
great because it's a high-level tool. However, I can't find any
Mohamed Yousef wrote:
Thanks all ,
but there is still something i forget to state -sorry - all
communication will be via Http with a server
so data is received via Http
so local network solutions won't work
the problem really starts after receiving data in storing them without
much of a
Tim Golden wrote:
[EMAIL PROTECTED] wrote:
HI,
i would like to know if there is a way to create a python script for
automate mstsc.exe username and pwd credential, i mean i would create
a script that first open mstsc.exe and in the same time is able to
fill [computer+username+pwd].
Haven't
[EMAIL PROTECTED] wrote:
Hi,
How to check if something is a list or a dictionary or just a string?
Eg:
for item in self.__libVerDict.itervalues():
self.cbAnalysisLibVersion(END, item)
where __libVerDict is a dictionary that holds values as strings or
lists. So now, when I iterate
Cameron Laird wrote:
In article [EMAIL PROTECTED],
Uberman [EMAIL PROTECTED] wrote:
On Fri, Aug 29, 2008 at 6:51 AM, Heston James [EMAIL PROTECTED] wrote:
Good afternoon all.
I have an application/script which is launched by crontab on a regular
basis. I need an effective and accurate way to
Mohamed Yousef wrote:
If connection is over Internet via HTTP the connection speed is so slow in
relation to the speed of your CPU that it doesn't really matter.
this is not always true , espicially when using a localhost or a local
netwtork server
the problem is the increase in cpu and memory
jpuopolo wrote:
All:
I am using Python to read some records from the MySQL database. I am
using the mysqldb library, and things are working well.
Now, I would like to pass back the results of the query to a Web-based
front end, and I would like to use JSON. Is there a library/example of
Ben Keshet wrote:
Thanks for the reference. I tried it with a general example and got it
to work - I used an index that counts up to a threshold that is set to
break. It does not work though with my real code. I suspect this is
because I cannot really read any lines from an empty file, so
akonsu wrote:
hello,
i need to add properties to instances dynamically during run time.
this is because their names are determined by the database contents.
so far i found a way to add methods on demand:
class A(object) :
def __getattr__(self, name) :
if name == 'test' :
korean_dave wrote:
for y in range(0,iNumItems):
print(str(y))
How do i make the output go IN ORDER
0
1
2
3
4
5
6
etc.
instead of
0
1
10
11
12
13
14
2
3
4
5
6
7
8
9
That's not what it does on my system (Python 2.5.2 on Windows). Please post the
code that you are actually running.
for y
[EMAIL PROTECTED] wrote:
hi
i want to play alarm sound when i press a particular key in
keyboard.so someone help me in doing it.
Thanks and Regards
Sasil.G
When you post to this list you need to give us more to go on than you have.
1) What have you tried that doesn't work?
2) What type of
eliben wrote:
Hello,
I want to be able to do something like this:
Employee = Struct(name, salary)
And then:
john = Employee('john doe', 34000)
print john.salary
Basically, Employee = Struct(name, salary) should be equivalent to:
class Employee(object):
def __init__(self, name, salary):
Dudeja, Rajat wrote:
Hi,
So, now I've finally started using Eclipse and PyDev as an IDE for my
GUI Application. I just wrote some sample programs as an hands on.
Now I would like to take up Tkinter. I'm using Active State Python
version 2.5 and found that there is not Tkinter and Tk module in
Mathias Lorente wrote:
Hello all.
I have a simple application (C++) that relies on shared libraries. It
works fine in console mode.
Lot of job is done into the shared library, so there is some calls to
'std::cout' to inform the user in it.
Now, I would like to wrap everything into a GUI,
Michael Ströder wrote:
Larry Bates wrote:
[EMAIL PROTECTED] wrote:
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
+=offSet
stopCnt+=offSet
print hitLst
Beers, Dave
On Aug 13, 12:58 am, Dave [EMAIL PROTECTED] wrote:
On Aug 13, 12:35 am, Larry Bates [EMAIL PROTECTED] wrote:
Dave wrote:
Hey there, having a bit of problem iterating through lists before i go
on any further, here is
a snip
David wrote:
I am collecting informations about win32 services for Python but, except for
few basic examples about Mark Hammond's win32serviceutil, I found nothing
useful.
Any link is welcome.
Thank you.
David
Actually those examples in Python for Win32 book are quite good and basically
all
Alexandru Mosoi wrote:
does anyone know a nice implementation of callbacks in python? i have
issues mixing named unamed parameters. i want build a callback over
a function such that some parameters are passed when callback is
created and the rest are passed when the function is called.
Alexandru Mosoi wrote:
On Aug 14, 12:02 am, Fredrik Lundh [EMAIL PROTECTED] wrote:
your use of the word callback is a bit unusual, and your example isn't
valid Python code, but it looks as if functools.partial might be what
you need:
http://docs.python.org/lib/module-functools.html
my
[EMAIL PROTECTED] wrote:
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
Christian Heimes wrote:
William Purcell wrote:
Hi all,
I am wanting to check to see the last time a file was edited. For
example, I
have a directory containing two text files, file1.txt and file2.txt. I
want to be able to process these files but only if they have been edited
since the last
Dave wrote:
Hey there, having a bit of problem iterating through lists before i go
on any further, here is
a snip of the script.
--
d = a1 b1 c1 d1 e1 a2 b2 c2 d2 e2 a3 b3 c3 d3 e3 a4 b4 c4 d4 e4 a5 b5
c5 d5 e5
inLst = d.split()
hitLst = []
hitNum = 0
stopCnt = 6 + hitNum
for i in
Lanny wrote:
Well the othe day I was making a program to make a list of all the songs in
certian directorys but I got a problem, only one of the directorys was added
to the list. Heres my code:
import random
import os
import glob
songs = glob.glob('C:\Documents and Settings\Admin\My
Phillip B Oldham wrote:
I've been reading a lot recently on ZODB/ZOE, but I've not seen any
reference to its use in large-scale production envrironments.
Are there any real-world examples of ZODB/ZOE in use for a large
system? By large, I'm thinking in terms of both horizontally-scaled
systems
azrael wrote:
looks nice. is there an oposite function of ord() so I could also
bring a binary number also back to ascii.
the speed matters if you plan to exchange about 10 M ascii chars and
don't wont to wait a year for the results. :)
On 9 kol, 15:39, John Machin [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
203.114.10.66 - - [01/Aug/2008:05:41:21 +0300] GET /stat.gif?
stat=vc=F-Securev=1.1%20Build%2014231s=av%7BNorton
%20360%20%28Symantec%20Corporation%29+69%3B%7Dsw%7BNorton
%20360%20%28Symantec%20Corporation%29+69%3B%7Dfw%7BNorton
Allen wrote:
Larry Bates wrote:
Allen wrote:
I'm in the process of developing an application that will use Python
for a scripting support. In light of the upcoming changes to Python,
I was wondering if it is possible to link to and use two different
versions of Python so that in the future
Paul Sijben wrote:
I am trying to turn my application into a WinXP exe. Py2exe has packaged
all my files up into one humongous executable. When trying to run the
app, it complains that it can not find modules I just saw it include.
These invariably are modules that have been imported using
iu2 wrote:
Hi,
This is a little bit strange post, but I'm curious...
I learned Python from its tutorial step by step, and practicing
writing small scripts.
I haven't seen a Python program before knowing Python.
I'm curious, what did Python code look like to those of you who have
seen a bunch
Ryan Rosario wrote:
On Aug 4, 8:30 am, Emile van Sebille [EMAIL PROTECTED] wrote:
John Machin wrote:
On Aug 4, 6:15 pm, Ryan Rosario [EMAIL PROTECTED] wrote:
On Aug 4, 1:01 am, John Machin [EMAIL PROTECTED] wrote:
On Aug 4, 5:49 pm, Ryan Rosario [EMAIL PROTECTED] wrote:
Thanks Emile! Works
CNiall wrote:
I am very new to Python (I started learning it just yesterday), but I
have encountered a problem.
I want to make a simple script that calculates the n-th root of a given
number (e.g. 4th root of 625--obviously five, but it's just an example
:P), and because there is no nth-root
Allen wrote:
I'm in the process of developing an application that will use Python for
a scripting support. In light of the upcoming changes to Python, I was
wondering if it is possible to link to and use two different versions of
Python so that in the future, scripts could be migrated to the
Pierre Dagenais wrote:
from Tkinter import *
win = Tk()
If I type those two lines at the command prompt (in WindowsXP) I get a
new window on my screen. Yet if I copy those lines in a file called
test.py and then run python test.py at the command prompt I am
returned to the command prompt
Giampaolo Rodola' wrote:
Hi,
for an FTP server I wrote I'd need to group the FTP commands in one
table that defines the command itself, the syntax string, required
permission, whether it requires authorization, whether it takes
argument and whether there's a need to validate the path from the
ssecorp wrote:
in read2 it never quits when I write quit, why?
def read():
expr = raw_input(Lisp )
if expr != quit:
print parse(expr)
read()
else:
print Good session!
def read2():
expr =
while expr != quit:
expr = raw_input(Lisp )
TP wrote:
Hi everybody,
When using raw_input(), the input of the user ends when he types Return on
his keyboard.
How can I change this behavior, so that another action is needed to stop the
input? For example, CTRL-G. It would allow the user to input several lines.
Thanks
Julien
Just put
kj wrote:
Yet another noob question...
Is there a way to mimic C's static variables in Python? Or something
like it? The idea is to equip a given function with a set of
constants that belong only to it, so as not to clutter the global
namespace with variables that are not needed elsewhere.
[EMAIL PROTECTED] wrote:
I have implemented a COM in C++,buy i don't know how to use this COM
in python.
For example: the COM's ProgID is MyCOM1.AdvMethod.this COM have two
interfaces,the default interface's name is IAdvMethod,the second
interface's name is IBasicMethod.
How do i use those
srinivasan srinivas wrote:
Hi,
Could someone suggest me better python modules for developing web programming
related projects like web-pages download and uopload??
Thanks,
Srini
Explore your hobbies and interests. Go to
http://in.promos.yahoo.com/groups/
urllib, urllib2, httplib
All
Kirk Strauser wrote:
Short question:
Is there a good library for generating HTML-style tables with the equivalent
of colspans, automatically sized columns, etc. that can render directly to
PDF?
Longer question:
I'm re-doing a big chunk of locally-written code. I have a
report-generating
josh logan wrote:
Hello,
I need a round function that _always_ rounds to the higher integer if
the argument is equidistant between two integers. In Python 3.0, this
is not the advertised behavior of the built-in function round() as
seen below:
round(0.5)
0
round(1.5)
2
round(2.5)
2
I
[EMAIL PROTECTED] wrote:
hi
i want to send unsigned 32 bit integer to socket, and looking for
something equivalent to this method...
http://livedocs.adobe.com/flex/2/langref/flash/net/Socket.html#writeUnsignedInt()
is there such method / library available in python?!
this is as far as i have
[EMAIL PROTECTED] wrote:
On Sun, Jul 27, 2008 at 7:01 PM, Larry Bates [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
i want to send unsigned 32 bit integer to socket, and looking for
something equivalent to this method...
http://livedocs.adobe.com/flex/2/langref/flash/net/Socket.html
Tim Cook wrote:
Hi All,
I just ran into an issue with the rstrip method when using it on path
strings.
When executing a function I have a need to strip off a portion of the
current working directory and add on a path to a log file. Initially
this worked great but then I added a branch in SVN
King wrote:
This is a new test for object persistency. I am trying to store the
relationship between instances externally.
It's not working as expected. May be I am doing it in wrong way. Any
suggestions?
import shelve
class attrib(object):
pass
class node(object):
def
Fredrik Lundh wrote:
Lanny wrote:
How would one make a list of the files in the top directory
using os.walk.
I need to pick a random file from said list.
if you want a list of files from a single directory, use listdir, not walk:
import os, random
random.choice(os.listdir(/))
whitemice wrote:
The only documentation regarding doing authentication for XML-RPC I
can find is -
Both the HTTP and HTTPS transports support the URL syntax extension
for HTTP Basic Authentication: http://user:[EMAIL PROTECTED]:port/path. The
user:pass portion will be base64-encoded as an HTTP
Samir wrote:
Is there a way to loop or iterate through a list/tuple in such a way
that when you reach the end, you start over at the beginning? For
example, suppose I define a list daysOfWeek such that:
daysOfWeek = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday',
Clay Hobbs wrote:
I am making a program that (with urllib) that downloads two jpeg files
and, if they are different, displays the new one. I need to find a way
to compare two files in Python. How is this done?
-- Ratfink
Use md5 to calculate checksum:
import md5
md5file1 =
Grant Edwards wrote:
On 2008-07-22, Larry Bates [EMAIL PROTECTED] wrote:
Grant Edwards wrote:
On 2008-07-22, Larry Bates [EMAIL PROTECTED] wrote:
You talk about writing it in assembly language for each MPU
chip. Actually it is even better than that. We now have
these modern inventions
Marc 'BlackJack' Rintsch wrote:
On Mon, 21 Jul 2008 18:12:54 +0200, mk wrote:
Seriously, though, would there be any advantage in re-implementing
Python in e.g. C++?
Not that current implementation is bad, anything but, but if you're not
careful, the fact that lists are implemented as C
bruce wrote:
i'm getting the following error:
mechanize._response.httperror_seek_wrapper: HTTP Error 500:
i'm running python 5.1
and mechanize 0.1.7b
I have no idea as to what I have to change/modify/include to handle this
issue. The link that I'm testing is at the bottom of the page.
[EMAIL PROTECTED] wrote:
I'm just learning about Python now and it sounds interesting. But I
just read (on the Wiki page) that mainstream Python was written in C.
That's what I was searching for: Python was written in what other
language?
See, my concern was something like: OK, if Python is so
Amie wrote:
Afternoon,
I would like some help on how to create a website using the python
programming language.
I've tried using enamel, but had some problems because I could not
create html tables and intergrating it with python, like you use it
when coding in php.
Any help would be
Berco Beute wrote:
I remember reading somewhere how to create an instance attribute for
every method argument, but although Google is my friend, I can't seem
to find it. This could likely be done way more elegant:
=
class Test(object):
def __init__(self, a, b, c, d,
Ben Sizer wrote:
Although the standard library in Python is great, there are
undoubtedly some great packages available from 3rd parties, and I've
encountered a few almost by accident. However, I don't know how a user
would become aware of many of these. http://pypi.python.org/pypi/
presumably
Phillip B Oldham wrote:
We're looking at the next phase of development for our webapp, and the
main focus will be to move the core from the app to a web service so
other systems can use the data we've gathered (we're thinking along
the lines of the XML API of Highrise from 37Signals).
Its
Alexnb wrote:
Hello
I am sure most of you are familiar with py2exe. I am having a bit of a
problem. See the program has a few pictures involved and the .ico it uses
for the windows. However, the pictures are stored in the same directory as
the source, something like: C:\Docs and settings\me\My
Vinay Sajip wrote:
On Jul 14, 11:16 pm, Larry Bates [EMAIL PROTECTED] wrote:
Vinay,
Thanks for your detailed explanation, but IMHO your suggested solution is almost
the opposite (right idea wrong direction) of what I'm looking for. Hypothetical
setup:
application1
Peter Anderson wrote:
Hi! I am slowly teaching myself Python. I was reading David Beazley's
excellent book Python - Essential Reference; in particular about
variables. Let me quote:
Python is a dynamically typed language in which names can represent
values of different types during the
Victor Noagbodji wrote:
Hello,
what's the difference between these two statement? And which one should one use?
if name ...
Will be false if:
name is an integer == 0
name is a float == 0
name is an empty string
name is an empty list
name is an empty dictionary
There are others, but you
E. J. Gold is the Hi-Tech Shaman wrote:
(crossposted to sci.math)
I'm looking for a tool which will take a dataset of tuples indicating
the year of birth and death of a person:
(1872, 1950, Sri Aurobindo)
(1821, 1910, Mary Baker Eddy)
(1831, 1891, HP. Blavatksy)
And graph them out, in bars,
Rob Wolfe wrote:
Larry Bates [EMAIL PROTECTED] writes:
Can multiple applications send SocketHandler logging records to the
same socket server on the same port simultaneously?
Of course they can. Server can accept requests from many clients.
You have used `SocketServer.ThreadingTCPServer
Alexnb wrote:
Okay, I already made this post, but it kinda got lost. So anyway I need to
figure out how to test if the user is able to connect to a specific website.
Last time I got pointed to the urllib2 page, but if I do urlopen() and and
am not connected, the program stops. So I don't know if
[EMAIL PROTECTED] wrote:
I need to know if I'm running on 32bit or 64bit ... so far I haven't
come up with how to get this info via python. sys.platform returns
what python was built on ... but not what the current system is.
I thought platform.uname() or just platform.processor() would have
Ben Finney wrote:
Larry Bates [EMAIL PROTECTED] writes:
Names are pointers in Python that point to values in memory.
The term pointer carries much extra baggage for a programmer
thinking of C (as the original poster is). Python names give no access
to the address of the value, and don't need
[EMAIL PROTECTED] wrote:
Hi everyone,
I've heard that a 'str' object is immutable. But is there *any* way to
modify a string's internal value?
Thanks,
Sebastian
Why would you care? Just create a new string (with the changed contents) and
let garbage collection take care of the old one when
1 - 100 of 1070 matches
Mail list logo