Bjoern Schliessmann schrieb:
> Steven D'Aprano wrote:
>> It's an Internet poll. By definition, the results are meaningless.
>
> Regrettably, there are many people that don't share your definition.
>
> Also, why would there be telephone votings in TV if they were
> meaningless to the default watch
iu2 wrote:
>
> Hi all,
>
> I've copied the example of RPC usage from the Python's doc.
> When the client and server were on the same PC ("localhost") (I use
> Windows)
> it worked ok. But putting the server on a different PC raised the
> error:
>
> gaierror: (11001, 'getaddrinfo failed')
> The
Phoe6 wrote:
> Hi all,
> I have the following directory structure:
>
> wallpaper/
> -main.py
> -ng/
> -- __init__.py
> -- setdesktop.py
> -yb/
> -- __init__.py
> -- setdesktop.py
>
>>Fro
>> I doubt that indexing has anything to do with it whatsoever.
>
> Of course it does. ORDER BY, LIKE, TRIM, and other SQL expressions
> that
> do more than an equal comparison need to know the actual data
> representation. If you were to convert to UTF-8 or UCS-2 in the Python
> progra
>> Maybe using the IP-address helps?
>>
>> Diez- Hide quoted text -
>>
>> - Show quoted text -
>
> No, that doesn't help either.
> May be I don't use it right.
> I tried "http://1.2.3.4:8000";
> and
> r"http://\\1.2.3.4:8000";
>
> with no success.
The former should work. The latter is Windows-na
Py-Fun wrote:
> I'm stuck trying to write a function that generates a factorial of a
> number using iteration and not recursion. Any simple ideas would be
> appreciated.
Show us your attempts, and we might suggest a fix. Because otherwise this
sounds suspiciously like homework.
Diez
--
http://
Stefan Bellon wrote:
> Hi,
>
> I'm trying to build a Sun Solaris Version of Python from the source so
> that both, 32-bit and 64-bit libraries are present.
>
> I can successfully build a 32-bit version in one directory and a 64-bit
> version in another directory. What I'd like to do is to build
> You wrote: " can't think of a single reason why you would ever want to
> do this,
> since your "list of method and property names" would be just as
> verbose as just typing the actual python code."
>
> I don't think I understand how this would be the same amount of
> typing. Consider the followi
beginner schrieb:
> Hi All,
>
> If I have a list comprehension:
>
> ab=["A","B"]
> c = "ABC"
> [1.0 if c=='A' else c='B' for c in ab]
> print c
>
>>> "B"
>
> My test shows that if c is not d
<>
I have written a Python script to duplicate the 'banner' program from
IRIX. Attached is the generated data file. This data is generated the
first time by using 'banner' on my IRIX machine. Thereafter, the data
is simply used (and can be run from anywhere). The data is a marshaled
copy of t
Alex Hunsley wrote:
> I can remember Python having a feature which allowed you to add some
> simple tests to your code, something like adding console output to your
> actual python script, like so:
>
>
> >>> 1+1
> 2
> >>> 2*7
> 14
>
>
> ... then python would actually run these queries and ch
mrstephengross wrote:
>> import module
>> from inspect import getmembers, isclass
>> classes = getmembers(module, isclass)
>
> Ok, this makes sense. How can I do it inside the .py file I'm working
> on? That is, consider this:
>
> class A:
> pass
&
NoName schrieb:
> I try it:
>
> def b():
> ...
> a()
> ...
>
> def a():
> ...
> b()
> ...
>
> b()
> it's not work.
It works.
def a():
print "a"
b()
def b():
print "b"
print a # not callin
sor = conn.cursor()
> class paralel(Thread):
> def __init__ (self, veriler, sayii):
> Thread.__init__(self)
> def run(self):
> save(a, b, c)
>
> def save(a,b,c):
> cursor.execute("INSERT INTO keywords (keyword) VALUES
> (
NoName wrote:
> sorry! Yes it's work.
> What about 2 question?
> Can i put function after main block?
> print qq()
>
> def qq():
> return 'hello'
You can't call a thing before it is defined.
> Traceback (most recent call last):
> File "C:\Python25\projects\indexer\test.py", line 1, in
>
Abandoned schrieb:
> Hi..
> I want to threading but i have a interesting error..
> ==
> class SelectAll(threading.Thread):
>def __init__(self, name):
> threading.Thread.__init__(self)
> self.name = name #kelime
>
>def run(self):
>
>
> self.result=.
Tim Arnold schrieb:
> Hi, I'm getting the by-now-familiar error:
> return codecs.charmap_decode(input,errors,decoding_map)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xa9' in position
> 4615: ordinal not in range(128)
>
> the html file I'm working with is in utf-8, I open it wit
sam schrieb:
> Hi..
>
> I'm looking to install dual versions of python 2.3, 2.4 on the same box. I'm
> trying to figure out if there's something I'm missing, some kind of gotchas
> that I haven't seen.
THey shouldn't affect each other.
> I'm also trying to figure out how to allow my script to de
Martin Marcher wrote:
> Hello,
>
> is there something like a standard full text search engine?
>
> I'm thinking of the equivalent for python like lucene is for java or
> ferret for rails. Preferrably something that isn't exactly a clone of
> one of those but more that is python friendly in terms
[EMAIL PROTECTED] schrieb:
> Hello,
>
> I would like access to a hook inside Python that would allow me to
> register a C++ function to be called periodically during the
> evaluation of a Python script.
>
> Does any such thing exist today in Python? I poked around but didn't
> find anything.
>
>
[EMAIL PROTECTED] schrieb:
> Hello all
> It would be great if I could make a number that can go beyond current
> size limitations. Is there any sort of external library that can have
> infinitely huge numbers? Way way way way beyond say 5x10^350 or
> whatever it is?
>
> I'm hitting that "inf" boun
Jeff Pang schrieb:
> I want to transmit an array via socket from a host to another.
> How to do it? thank you.
Using XMLRPC or Pyro or other RPC mechanisms instead of reinventing a
wheel that is larger than the socket API suggests in the first place.
Diez
--
http://mail.python.org/mailman/listi
[EMAIL PROTECTED] schrieb:
> hello,
>
> I'm new to python and this list.I hope this question don't repeat an old
> story on the list.
>
> I have a number list,say it's [3,2,1,4,5],I want to sort it as
> [1,2,3,4,5],how to do?
your_list.sort()
Please read the documentation, all of this is prop
krishnakant Mane schrieb:
> hello,
> I have one strange requirement,
> I need to create html files through python and add some data from the
> database.
> it is a GUI based application developed in WX python.
> and the reports need to come out in html for some strange reason which
> is off topic t
TYR wrote:
> Has anyone else experienced a weird SQLite3 problem?
>
> Going by the documentation at docs.python.org, the syntax is as
> follows:
> foo = sqlite3.connect(dbname) creates a connection object representing
> the state of dbname and assigns it to variable foo. If dbname doesn't
> exist
writeson wrote:
> Hi all,
>
> At work we're using python2.3 and I'd like to start getting us moved
> up to python2.5. We run Centos4 which is the free, open source version
> of RedHat Enterprise. I've got python2.5 installed on this machine,
> but am stuck trying to get mysqldb installed and runn
[EMAIL PROTECTED] schrieb:
> I am a newbie in python
> I am trying to parse a xml file and write its content in a txt file.
> The txt contains null elements. Any reason what iam doing wrong here
>
>
> Here is the code that i wrote
>
> import sys,os
> import xml.sax
> import xml.sax.handler
> fr
[EMAIL PROTECTED] wrote:
> Hi,
>
> Official Python distro is very stable, with release cycle of around 1
> year. However, to include the new version of SQLite, which has a much
> shorter release cycle, one has to rebuild the main Python distribution
> (to compile with the new SQLite headers) - th
looping wrote:
> Hi,
>
> I want to create a temporary file, read it in an external command and
> finally delete it (in Windows XP).
>
> I try to use tempfile module but it doesn't work, the file couldn't be
> open by my other process (error like: SP2-0310: unable to open file "c:
> \docume~1\loo
looping wrote:
> On Oct 31, 2:16 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
>> I'm not an expert, but I think you need to close the file first - you
>> under windows here, which can be picky about such stuff AFAIK. Or maybe
>> there is some o
I believe most programming languages evaluate 0 to mean False, and
anything else to be True (for the purposes of boolean evaluation).
Python is no exception.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of jelle feringa
Sent: Wednes
Hrvoje Niksic schrieb:
> "Chris Mellon" <[EMAIL PROTECTED]> writes:
>
>> I have no idea why someone who already has a working, object system
>> would want to implement their own on top of closures.
>
> This subthread is getting ridiculous -- closures are *not* useful only
> for implementing objec
[EMAIL PROTECTED] schrieb:
> Hello ..
>
> I would like to know more about Python and Jython?
> What is the difference between both of them?
> What is the future for Jython and which are the areas where it is
> used?
Bad google day?
http://www.jython.org/
"""
What is Jython?
Jython, lest y
Bart. schrieb:
> Thursday 01 of November 2007 23:32:02 Phil Thompson napisał(a):
>> On Thursday 01 November 2007, Bart. wrote:
>>> Thursday 01 of November 2007 15:13:55 Phil Thompson napisał(a):
On Thursday 01 November 2007, cgrebeld wrote:
> Is it possible for a Qt C++ application, which
Abandoned wrote:
> On Nov 2, 4:19 pm, Paul McNett <[EMAIL PROTECTED]> wrote:
>> Abandoned wrote:
>> > Hi.
>> > I want to copy my database but python give me error when i use this
>> > command.
>> > cursor.execute("pg_dump mydata > old.dump")
>> > What is the problem ? And how can i copy the databa
Hendrik van Rooyen wrote:
> Hi,
>
> I would like to do the following as one atomic operation:
>
> 1) Append an item to a list
> 2) Set a Boolean indicator
>
> It would be almost like getting and holding the GIL,
> to prevent a thread swap out between the two operations.
> - sort of the inverted
Tmack wrote:
> I'm not a programmer!
>
> I work for a software company. We have a SDK that customers can use to
> customize the app. The requirement to use the SDK is:
>
> XYZ App has been designed in such a way that all the business objects
> used
> in the application are automatically exposed
[EMAIL PROTECTED] schrieb:
> HELP!
> Guy who was here before me wrote a script to parse files in Python.
>
> Includes line:
> print u
> where u is a line from a file we are parsing.
> However, we have started recieving data from Brazil. If I open file to
> parse in VI, looks like:
>
> audio="313
Dr. Who wrote:
> What's more amazing is that anyone would click on the link at all given
> the increasing number of website that provide hidden content that tries
> to deliver spyware or viruses just by getting visitors.
Me LinuxBoy, me not in danger... SCNR :)
Diez
--
http://mail.python.org/ma
[EMAIL PROTECTED] wrote:
> Can you attach files in this forum? Couldn't find the option. Oh well,
> here's the file.
>
> #!/usr/bin/python
> # Version: 1.1
> # Author: Steve Losh
>
> from sets import Set
> from optparse import OptionParser
> from xml.dom.minidom import parse
>
> AudioPath
Patch / Bug Summary
___
Patches : 421 open ( +3) / 3530 closed ( +8) / 3951 total (+11)
Bugs: 963 open ( +4) / 6426 closed (+21) / 7389 total (+25)
RFE : 255 open ( +5) / 246 closed ( +1) / 501 total ( +6)
New / Reopened Patches
__
The Unico
Daniel Nogradi schrieb:
> Hi list,
>
> I get loads of DeprecationWarnings while using sqlobject 0.8.0b1 with
> python 2.5. Does this mean that the sqlobject project is not very up
> to date? Or should I just ignore them and happily use it? In general,
> what's the status of sqlobject, will it be d
siggi wrote:
> Hi all,
>
> does Python support MPEG or MOV videoclips? I couldn't find anything about
> it online.
Weak in googling today? Must have been a rough weekend.
There are several options, including pymedia and pygame.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
Am I nuts? Or only profoundly confused? I expected the this little script
to print "0":
class foo(int):
def __init__(self, value):
self = value & 0xF
print foo(0x10)
Instead, it prints "16" (at least on python 2.4.4 (Linux) and 2.5 (Wine).
Jim Wilson
GNV, FL
--
http://mail.python.org/ma
> Up to my knowledge, there no way to test javascript but to fire up a
> browser.
>
> So, you might check Selenium (http://www.openqa.org/selenium/) and its
> python module.
No use in that, as to be remote-controlled by python, selenium must be run
on the server-site itself, due to JS security mo
Shortash wrote:
> Python Web Frameworks
weak google skills you have, young friend.
http://wiki.python.org/moin/WebFrameworks
Diez
--
http://mail.python.org/mailman/listinfo/python-list
> is there an predefined empty base class
> which I can instanziate to have an
> container i can copy attributes in?
No, but you can always do
class Foo(object):
pass
foo = Foo()
foo.attribute = value
Diez
--
http://mail.python.org/mailman/listinfo/python-list
Jm lists wrote:
> Please help with this script:
>
> class ShortInputException(Exception):
> '''A user-defined exception class.'''
> def __init__(self,length,atleast):
> Exception.__init__(self)
> self.length=length
> self.atleast=atl
Tom Wright wrote:
> js wrote:
>> How about using lock?
>> Let writing process locks the files before writing, and unlock after
>> the job's done.
>
> Is locking mandatory or co-operative? I don't have any control over the
> process which is doing the writing, so if it's co-operative it's no good
Jm lists wrote:
> Thanks for all the helps.
> I'm not habitual for this usage of 'else',other languages seem don't
> support this syntax.
> i.g,writting the codes below by Perl would get an error:
I personally consider this part of python also somewhat obscure. But I just
don't use it and don't b
krishnakant Mane wrote:
> hello all.
> I will like to know if the following combination is possible.
> I have looked around on google and did not find any thing productive
> so bothering the list: sorry.
> I am developing a distributed application which will have 3 layers
> namely the thin client
Mark Roberts
Interpreter seems to leak references after finalization (2007-01-15)
http://python.org/sf/1635741 opened by B Sizer
description of the beta distribution is incorrect (2007-01-15)
CLOSED http://python.org/sf/1635892 opened by elgordo
Newline skipped in "for line in
krishnakant Mane schrieb:
>> Use mod_python with some xmlrpc handler. There is more than one around.
>> Google for them. That way you can keep Apache for both Python and PHP.
>>
> I am confused.
> I have some documents on xml-rpc but none of them mentioned apache.
There is nothing an apache will d
>
> well in that case I don't need apache.
> can I do xml-rpc using the default libraries that come with every
> python installer?
Yes, and a simple look in the API docs would have convinced you of that.
I suggest you start googling and reading.
> is there some added advantage of using twisted?
BJörn Lindqvist wrote:
> I want to use Python to connect to a SSH account over a HTTP proxy to
> automate some operations. I thought paramiko would be able to do that,
> but it can not (it seems).
>
> Is there some other Python module that can do what I want?
Is there anything that can do what y
Hi Everybody:
I'm having a difficult time figuring out a a memory use problem. I
have a python program that makes use of numpy and also calls a small C
module I wrote because part of the simulation needed to loop and I got
a massive speedup by putting that loop in C. I'm basically
manipulating a
> I have a class URI and a bunch of derived sub-classes for example
> HttpURI, FtpURI, HttpsURI, etc. (this is an example, I know there is
> module urllib & friends, however my actual problem however maps very
> well to this example).
>
> Now I want to pass a string to constructor of URI() and get
abcd wrote:
> good point. is there place that documents what methods/attrs I should
> check for on an object? for example, if its a list that I expect I
> should verify the object that is passed in has a ??? function? etc.
Don't check, try. Catch a possible exception, and continue with another
Tina I schrieb:
> Another noob question:
> I have written my first linux application that might actually be of
> interest to others. Just for fun I also wrote an install script that put
> the files in the common directories for my distro (Debian). That is in
> /usr/local/. (This particular progr
Marcpp wrote:
> Hi, when i mount a share with python...
>
> os.system ("mount -t smbfs -o username=nobody ...")
>
> the problem is that I'll to be root.
> Have a comand to send a root password...?
> I've tried
>
> os.system ("su")
> os.system ("the password")
>
> but it doesn't works.
You can
BBands wrote:
> Good morning,
>
> I store time series data in a SQL database. The results of a typical
> query using pyodbc look like this.
>
> DateClose
> "2007-01-17" 22.57
>
> Where Date is a datetime.date object and Close is a float.
>
> I'd like to put this data in a NumPy arr
Patch / Bug Summary
___
Patches : 421 open ( -2) / 3549 closed (+10) / 3970 total ( +8)
Bugs: 943 open (-17) / 6471 closed (+25) / 7414 total ( +8)
RFE : 260 open ( +2) / 250 closed ( +1) / 510 total ( +3)
New / Reopened Patches
__
rlcomplet
gooli schrieb:
> I have a class with a lot of attributes whose objects are accessed
> from multiple threads. I would like to synchronize the access to all
> the attributes, i.e. acquire a lock, return the value, release the
> lock (in a finally clause).
>
> Is there a way to do that without tur
azrael schrieb:
> i'd like to get more control like in c with pointers. I want to loose
> the data after disabling:
>
list=[]
list.append(Node(1))
list.append(Node(2))
list[0].next=list[1]
>
>
> 1, 2
>
>
list.append(Node(3))
list[1].next=list[2]
>
>
> 1,2
ychaouche wrote:
> Hi, python experts.
>
>
> [EMAIL PROTECTED]:~/TEST$ python nettoyageHTML.py
> [EMAIL PROTECTED]:~/TEST$
>
>
> This is the nettoyageHTML.py python script
>
>
> from HTMLParser import HTMLParser
>
> class ParseurHTML(HTMLParser):
> def __init__(self):
> HTMLPars
Matthew Wilson wrote:
> The decorator as_string returns the decorated function's value as
> string. In some instances I want to access just the function f,
> though, and catch the values before they've been decorated.
>
> Is this possible?
>
> def as_string(f):
> def anon(*args, **kwargs):
Drew schrieb:
> I'm looking to add an element to list of items, however I'd like to
> add it at a specific index greater than the current size:
>
> list = [1,2,3]
> list.insert(10,4)
>
> What I'd like to see is something like:
>
> [1,2,3,,4]
>
> However I see:
>
> [1,2,3,4]
>
> Is there
Melih Onvural schrieb:
> I need to execute some javascript and then read the value as part of a
> program that I am writing. I am currently doing something like this:
>
> import htmllib, urllib, formatter
>
> class myparser(htmllib.HTMLParser):
> insave = 0
> def start_div(self, attr
Jim schrieb:
> I compiled Python 2.5 from python.org and I get an error message when I try
> to import the Tkinter module. Python reports that there is no such module.
> It says my Python isn't configured for Tkinter. How do I configure it? I'm
> using GCC 4.1.1 to compile the tarball. Thanks for a
Beej wrote:
> On Jan 29, 11:47 pm, Steven D'Aprano
> <[EMAIL PROTECTED]> wrote:
>> Outside of a print statement (and also an "except" statement), commas
>> create tuples.
>
> And function calls:
>
3,
> (3,)
type(3,)
>
type((3,))
>
>
> But here's one I still don't get:
>
t
raghu wrote:
> can any one explain about pickle i read in the book but they have not
> provided any example for that so please explain with a simple example
Bad google day? Or just to lazy to do it? And what is "the book"? There are
quite a few out there, some about python the language, others ab
>> (2) convert the file name to ASCII before you store it; or
> I need the non-ascii information, though, which is why I included it
> in the error message.
Then convert it to utf-8, or some encoding you know it will be used by your
terminal.
Diez
--
http://mail.python.org/mailman/listinfo/pyt
stef wrote:
>
> why should I use *args,
> as in my ignorance,
> making use of a list (or tupple) works just as well,
> and is more flexible in it's calling.
> So the simple conclusion might be: never use "*args",
> or am I overlooking something ?
Yup. For example decorators, that wrap functions.
king kikapu wrote:
> Thanks for the replies.
>
> I think i do not need something like ORM, but just a db-module that i
> can "work" the database with it.
> I just want to know if pyodbc is the "correct" solution to do so or if
> it is another db-module that is more
> usefull for this job.
I thin
[EMAIL PROTECTED] wrote:
> Hello dear community !
>
> I'm a bit ashamed to ask such an easy question, but I didn't find my
> answer on previous posts.
> I'd like to copy files with FTP protocol in a subdirectory.
> So far, my code look like that :
>
> import ftplib
> session = ftplib.FTP('22
> Yeah, found that one googling around. But I haven´t fund anything more
> up to date. I imagine, that the performance of all of these wrappers
> has been improved since then. But the performance of Python/C API
> would too?
> Anyways, it´s not about exact number, it´s more about taking decision
>
[EMAIL PROTECTED] wrote:
> I sorry, but I'm not very familiar with Python.
> Please, help to solve my problem with reading file from "nested" zip
> archive.
> There is an ear_file.ear and inside this file there is a war_file.war
> and inside this file there is a jar_file.jar.
> I have to read cont
Bart Ogryczak wrote:
> On Feb 1, 12:48 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> > Yeah, found that one googling around. But I haven´t fund anything more
>> > up to date. I imagine, that the performance of all of these wrappers
>> > has be
>
> I was wondering the best way to do this? I have installed and used the
> python-ldap libraries and these allow me to access and search the
> server, but the searches always return a horrible nesting of lists,
> tuples and dictionaries, below is an example of returning just one
> record -
>
>
Bruno Desthuilliers writes:
> class LdapObject(object):
>(...)
>def __getattr__(self, name):
> try:
>data = self._record[name]
> except KeyError:
>raise AttributeError(
> "object %s has no attribute %s" % (self, name)
> )
Note that LDAP attribute
Bruno Desthuilliers writes:
>Hallvard B Furuseth a écrit :
>>> else:
>>># all LDAP attribs are multivalued by default,
>>># even when the schema says they are monovalued
>>>if len(data) == 1:
>>> return da
> I do think the core should have more stuff than it does, so that its
> functionality can be on a par with competing language distros like
> J2SE and PHP. Both of those distros include database connectvity
> modules and web frameworks.
This is simply not true. J2SE doesn't include a web-framewo
[EMAIL PROTECTED] schrieb:
> Hello All:
> I am trying to work out a regular expression in a PyQt environment for
> time in hh:mm:ss format. Any suggestions?
Yes. Read the manual to the re-module. There is _nothing_ special about
PyQt and regexes. And provide code. But the most important thing - r
Paul Rubin schrieb:
> "Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
>> This is simply not true. J2SE doesn't include a web-framework. J2EE
>> does, but it's a separate multi-megabyte-download.
>
> I thought J2SE comes with JSP. Maybe that's no
Paul Rubin schrieb:
> [EMAIL PROTECTED] writes:
>> I can't speak authoritatively for either PHP or J2SE, but I suspect the
>> latter at least has some signifiant monetary support (if not outright gobs
>> of human resources) from Sun. PHP seems to have a more limited application
>> domain (web apps
Paul Rubin schrieb:
> "Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
>> And they certainly require special treatment like putting them in the
>> classpath, setting up the project directory and the like - no simple
>> import will work out of the box, as it would
.org/sf/1648268 opened by ked-tao
HP-UX: ld -Wl,+b... (2007-01-31)
http://python.org/sf/1648890 opened by Johannes Abt
HP-UX: -lcurses missing for readline.so (2007-01-31)
http://python.org/sf/1648923 opened by Johannes Abt
HP-UX: _ctypes/libffi/src/ia64/ffi/__attribut
[EMAIL PROTECTED] wrote:
from Numeric import zeros
p=zeros(3)
p
> array([0,0,0])
p[0]
> 0
x=p[0]
x=10
p
> array([0,0,0]) #actual behavior
> #array([10,0,0]) #desired behavior
>
> I want x to be a C++-esque reference to p[0] for convenience in a
> vector3 class.
Michael Bo wrote:
> Hi.
> Can anyone guide me on how to minitor a folder for new files? And when
> they appear I need to run and externe program with the file just
> created (buy a 3rd program).
This is OS-dependend. On Linux, FAM/GAM-server come to mind.
Diez
--
http://mail.python.org/mailman/
Gosi wrote:
> It is quite easy to call J from Python
>
>
http://groups.google.com/group/J-Programming/browse_thread/thread/5e84b75667f5f64e
What is J, and why should we care?
Diez
--
http://mail.python.org/mailman/listinfo/python-list
Gosi wrote:
> On Feb 5, 2:59 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> Gosi wrote:
>> > It is quite easy to call J from Python
>>
>> http://groups.google.com/group/J-Programming/browse_thread/thread/5e8...
>>
>> What is J,
Olivier Feys wrote:
> I'm working on a tree and I have refcounting problems.
> Is it possible from an object, to get the list of objects referencing it ?
The gc-module might help, but it is somewhat overwhelming.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
mars wrote:
> I use TurboGears to do some web service. TurboGears use cherrypy. When
> web browser access this site, the cherrypy will call my python
> program. So my program looks like a lib. When web browser access the
> site, the http server will fock a process or gerenate a thread. I need
> sh
[EMAIL PROTECTED] wrote:
> Hi, I'm trying to create an XMLRPC server using apache + python (cgi).
> It's not too difficult to configure everything, but I would like to
> tune it in order to receive up to 2000 calls per minute without any
> problems. Do Pthon CGIs use threading?
> I need to make it
mars wrote:
> On 2月6日, 下午6时14分, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> mars wrote:
>> > I use TurboGears to do some web service. TurboGears use cherrypy. When
>> > web browser access this site, the cherrypy will call my python
>> &g
yvesd wrote:
> Hello,
> I'm trying to make an outlook bar like in python but i'm not at all
> familiar with ms-outlook and i'm
> a bit too weak and in early stage of python learning.
> Has somebody already made or seen the code IN TKINTER(/)PMW for a bar
> like that ?
I've not done such a thing,
Dongsheng Ruan wrote:
> I want to turn an Array into a heap, but my code just doesn't work: no
> change after execution.
>
> A=[3,5,4,9,6,7]
> m=len(A)-1
>
>
>
> for i in range(m,1):
> t=(i-1)/2
> if A[i]>A[t]:
> A[i],A[t]=A[t],A[i]
First of all, there is the module heapq that
[EMAIL PROTECTED] wrote:
> On Feb 8, 3:40 am, Grant Edwards <[EMAIL PROTECTED]> wrote:
>> On 2007-02-08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> > struct module pack and unpack will only work for fixed size buffer :
>> > pack('>1024sIL', buffer, count. offset) but the buffer size can va
> Grant had the right idea, I think, but he failed to actually include a
> byte length in his format. :) So there's nothing to peek at. If the
> packing is done like this, instead..
>
>
> struct.pack('!IIL', len(buffer), count, offset) + buffer
>
> Then it is a simple matter to unpack it o
Horta wrote:
> Hi folks,
>
> Suppose I have to loop over 3 lists being the same size at the same
> time and order. How can I do that without using the range() function
> or whatever indexing?
>
> Example using range:
>
> a = ['aaa', 'aaa
2001 - 2100 of 4468 matches
Mail list logo