Re: Combinate 2 lists to a dict ?

2007-04-18 Thread Bart Willems
Jia Lu wrote: > I have 2 lists, > a = [1,2,3] > b = ["ooo","aaa","ppp"] reading the documentation might help. If that doesn't work, try d = dict(zip(a, b)) -- http://mail.python.org/mailman/listinfo/python-list

SWIG overhead

2007-02-01 Thread Bart Ogryczak
Hi, I´m looking for some benchmarks comparing SWIG generated modules with modules made directly with C/Python API. Just how much overhead does SWIG give? Doing profile of my code I see, that it spends quiet some time in functions like _swig_setattr_nondinamic, _swig_setattr, _swig_getattr. -- htt

Re: SWIG overhead

2007-02-01 Thread Bart Ogryczak
On Feb 1, 12:12 pm, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Thursday 01 February 2007 10:21 am, Bart Ogryczak wrote: > > > Hi, > > I´m looking for some benchmarks comparing SWIG generated modules with > > modules made directly with C/Python API. Just how mu

Re: SWIG overhead

2007-02-01 Thread Bart Ogryczak
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 been improved since then. But the performance of Python/C API > > would too?

Re: Question about a single underscore.

2007-02-01 Thread Bart Ogryczak
On Feb 1, 5:52 pm, "Steven W. Orr" <[EMAIL PROTECTED]> wrote: > I saw this and tried to use it: > > --><8--- const.py- [...] > sys.modules[__name__]=_const() __name__ == 'const', so you´re actually doing const = _const() -- http://mail.python.org/mail

Re: division by 7 efficiently ???

2007-02-02 Thread Bart Ogryczak
On Feb 1, 3:42 am, [EMAIL PROTECTED] wrote: > How to divide a number by 7 efficiently without using - or / operator. > We can use the bit operators. I was thinking about bit shift operator > but I don't know the correct answer. It´s quiet simple. x == 8*(x/8) + x%8, so x == 7*(x/8) + (x/8 + x%8)

Re: newbie/ merging lists of lists with items in common

2007-02-02 Thread Bart Ogryczak
On Feb 2, 2:55 pm, "ardief" <[EMAIL PROTECTED]> wrote: > Hi everyone > Here is my problem: > I have a list that looks like this - > [['a', '13'], ['a', '3'], ['b', '6'], ['c', '12'], ['c', '15'], ['c', > '4'], ['d', '2'], ['e', '11'], ['e', '5'], ['e', '16'], ['e', '7']] > > and I would like to end

Re: newbie/ merging lists of lists with items in common

2007-02-02 Thread Bart Ogryczak
On Feb 2, 3:19 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > l=[x for x in d.items()] d.items() is not an iterator, you don´t need this. This code is equivalent to l = d.items(). -- http://mail.python.org/mailman/listinfo/python-list

Re: division by 7 efficiently ???

2007-02-02 Thread Bart Ogryczak
On Feb 1, 2:00 pm, "Nicko" <[EMAIL PROTECTED]> wrote: > precision and the answer that they were looking for was: > a = (b * 045L) >> 32 > Note that the constant there is in octal. 045L? Shouldn´t it be 044? Or more generally, const = (1<>bitPrecision -- http://mail

Re: Why less emphasis on private data?

2007-02-05 Thread Bart Ogryczak
On Jan 7, 1:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Coming from a C++ / C# background, the lack of emphasis on private data > seems weird to me. I've often found wrapping private data useful to > prevent bugs and enforce error checking.. > > It appears to me (perhaps wrongly) that P

Re: Repr or Str ?

2007-02-06 Thread Bart Ogryczak
On Feb 6, 11:47 am, "Johny" <[EMAIL PROTECTED]> wrote: > Where and when is good/nescessary to use `repr` instead of `str` ? > Can you please explain the differences > Thanks RTFM. http://docs.python.org/ref/customization.html __repr__( self) Called by the repr() built-in function and by stri

Re: Python cheatsheets

2007-02-06 Thread Bart Ogryczak
On Jan 7, 10:11 pm, Jussi Salmela <[EMAIL PROTECTED]> wrote: > gonzlobo kirjoitti: > > > Curious if anyone has a python cheatsheet* published? I'm looking for > > something that summarizes all commands/functions/attributes. Having > > these printed on a 8" x 11" double-sided laminated paper is pre

Re: Python cheatsheets

2007-02-06 Thread Bart Ogryczak
On Jan 7, 10:03 pm, gonzlobo <[EMAIL PROTECTED]> wrote: > Curious if anyone has a python cheatsheet* published? I'm looking for > something that summarizes all commands/functions/attributes. Having > these printed on a 8" x 11" double-sided laminated paper is pretty > cool. > > * cheatsheet probab

Re: UNIX shell in Python?

2007-02-09 Thread Bart Ogryczak
On Feb 9, 8:49 am, Deniz Dogan <[EMAIL PROTECTED]> wrote: > Hello. > > I was thinking about writing a UNIX shell program using Python. Has > anyone got any experience on this? Is it even possible? Use the Google, Luke. http://sourceforge.net/projects/pyshell/ -- http://mail.python.org/mailma

Re: How much memory used by a name

2007-02-15 Thread Bart Ogryczak
On Feb 14, 9:41 pm, "Bernard Lebel" <[EMAIL PROTECTED]> wrote: > This is taking a long time, and I'm looking for ways to speed up this > process. I though that keeping the list in memory and dropping to the > file at the very end could be a possible approach. It seems, that you're trying to reinve

Re: list of range of floats

2007-02-15 Thread Bart Ogryczak
On Feb 14, 6:12 pm, Steve <[EMAIL PROTECTED]> wrote: > I'm trying to create a list range of floats and running into problems. I've tried it the easy way. Works. map(float,range(a,b)) -- http://mail.python.org/mailman/listinfo/python-list

Re: why I don't like range/xrange

2007-02-16 Thread Bart Ogryczak
On Feb 16, 4:30 pm, "stdazi" <[EMAIL PROTECTED]> wrote: > for (i = 0; some_function() /* or other condition */ ; i++) C's "for(pre,cond,post) code" is nothing more, then shorthand form of "pre; while(cond) {code; post;}" Which translated to Python would be: pre while cond: code post -- h

Re: output to console and to multiple files

2007-02-16 Thread Bart Ogryczak
On Feb 14, 11:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > I searched on Google and in this Google Group, but did not find any > solution to my problem. > > I'm looking for a way to output stdout/stderr (from a subprocess or > spawn) to screen and to at least two different fil

Re: eval('000052') = 42?

2007-02-21 Thread Bart Ogryczak
On Feb 21, 5:09 am, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I just tried to do > eval('00052') and it returned 42. > Is this a known bug in the eval function? Or have I missed the way eval > function works? It works just fine. Read up on integer literals. >>> 52 #decimal 52 >>> 052 #octa

Re: How to test whether a host is reachable?

2007-02-22 Thread Bart Ogryczak
On Feb 22, 3:22 pm, Fabian Steiner <[EMAIL PROTECTED]> wrote: > Now I am wondering if there isn't any better method which would be more > general. In fact, I think of something like a python version of ping > which only tries to send ICMP packets. Server or a firewall in between most probably wil

Re: python notation in new NVIDIA architecture

2007-02-26 Thread Bart Ogryczak
On Feb 26, 2:03 pm, "Daniel Nogradi" <[EMAIL PROTECTED]> wrote: > Something funny: > > The new programming model of NVIDIA GPU's is called CUDA and I've > noticed that they use the same __special__ notation for certain things > as does python. For instance their modified C language has identifiers

Re: finding out the precision of floats

2007-02-27 Thread Bart Ogryczak
On Feb 27, 1:36 pm, Facundo Batista <[EMAIL PROTECTED]> wrote: > Arnaud Delobelle wrote: > > (and I don't want the standard Decimal class :) > > Why? Why should you? It only gives you 28 significant digits, while 64-bit float (as in 32-bit version of Python) gives you 53 significant digits. Also n

Re: Help on object scope?

2007-02-27 Thread Bart Ogryczak
On Feb 25, 10:25 pm, [EMAIL PROTECTED] wrote: > Hello everybody, > > I have a (hopefully) simple question about scoping in python. I have a > program written as a package, with two files of interest. The two > files are /p.py and /lib/q.py > > My file p.py looks like this: > > --- > > from lib impo

Re: finding out the precision of floats

2007-02-28 Thread Bart Ogryczak
On Feb 27, 7:58 pm, "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote: > On 27 Feb, 14:09, "Bart Ogryczak" <[EMAIL PROTECTED]> wrote: > > > On Feb 27, 1:36 pm, Facundo Batista <[EMAIL PROTECTED]> wrote: > > > > Arnaud Delobelle wrote: >

cPickle FU on Solaris

2007-02-28 Thread Bart Ogryczak
It seems, that on Solaris cPickle is unable to unpickle some values, which it is able to pickle. >>> import cPickle >>> cPickle.dumps(1e-310) 'F9.9694e-311\n.' >>> cPickle.loads(_) Traceback (most recent call last): File "", line 1, in ? ValueError: could not convert string to float

Re: finding out the precision of floats

2007-02-28 Thread Bart Ogryczak
On Feb 28, 3:53 pm, "John Machin" <[EMAIL PROTECTED]> wrote: > On Feb 28, 10:38 pm, "BartOgryczak" <[EMAIL PROTECTED]> wrote: > > > [1] eg. consider calculating interests rate, which often is defined as > > math.pow(anualRate,days/365.0). > > In what jurisdiction for what types of transactions? I w

Re: finding out the precision of floats

2007-02-28 Thread Bart Ogryczak
On Feb 28, 6:34 pm, "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote: > > So as long as you're dealing with something like > > invoices, Decimal does just fine. When you start real calculations, > > not only scientific, but even financial ones[1], it doesn't do any > > better then binary float, and it'

Re: finding out the precision of floats

2007-03-01 Thread Bart Ogryczak
On Feb 28, 10:29 pm, "John Machin" <[EMAIL PROTECTED]> wrote: > On Mar 1, 4:19 am, "BartOgryczak" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 28, 3:53 pm, "John Machin" <[EMAIL PROTECTED]> wrote: > > > > On Feb 28, 10:38 pm, "BartOgryczak" <[EMAIL PROTECTED]> wrote: > > > > > [1] eg. consider calcu

Re: How to Read Bytes from a file

2007-03-01 Thread Bart Ogryczak
On Mar 1, 7:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > It seems like this would be easy but I'm drawing a blank. > > What I want to do is be able to open any file in binary mode, and read > in one byte (8 bits) at a time and then count the number of 1 bits in > that byte. > > I got as

Re: How to Read Bytes from a file

2007-03-01 Thread Bart Ogryczak
On Mar 1, 4:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Mar 1, 8:53 am, "Bart Ogryczak" <[EMAIL PROTECTED]> wrote: > > > > > On Mar 1, 7:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > wrote: > > > &

Re: How to Read Bytes from a file

2007-03-02 Thread Bart Ogryczak
On Mar 1, 7:36 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Mar 1, 12:46 pm, "Bart Ogryczak" <[EMAIL PROTECTED]> wrote: > > > This solution looks nice, but how does it work? I'm guessing > > > struct.unpack will provide me w

SPARQL server in Python?

2008-01-19 Thread Bart Ogryczak
Hi, I'm trying to migrate some R&D I've done with PHP and RAP[1] to Python. But I've got hard time finding Python RDF/SPARQL server. Most things I find are SPARQL clients. Do you know of a Python library, that could do the job? [1] http://sites.wiwiss.fu-berlin.de/suhl/

Re: Bug in __init__?

2008-01-20 Thread Bart Ogryczak
return _cache[x] except KeyError: _cache[x] = result = _lotsa_slow_calculations(x) return result bart -- This signature is intentionally left blank. http://candajon.azorragarse.info/ http://azorragarse.candajon.info/ -- http://mail.python.org/mailm

Re: too long float

2008-01-20 Thread Bart Ogryczak
On 2008-01-18, citizen J. Peng testified: > hello, > > why this happened on my python? >>>> a=3.9 >>>> a > 3.8999 >>> a = 3.9 >>> print a 3.9 bart -- "PLEASE DO *NOT* EDIT or poldek will hate you.&q

Re: Bug in __init__?

2008-01-20 Thread Bart Ogryczak
; id(a.lst) 13188912 >>> b = A() >>> id(b.lst) 13188912 Moreover, self.lst = val, does not copy val, rather it creates binding between self.list and val. So whatever you do to self.list, it affects val (and vice-versa). >>> x = [] >>> c = A(x) >>> i

Re: Bug in __init__?

2008-01-20 Thread Bart Ogryczak
On 2008-01-20, citizen Arnaud Delobelle testified: > On Jan 20, 3:39 pm, Bart Ogryczak <[EMAIL PROTECTED] > to.invalid> wrote: >> On 2008-01-18, citizen Zbigniew Braniecki testified: >> >> > It's really a nice pitfall, I can hardly imagine anyone expectin

Re: Bug in __init__?

2008-01-22 Thread Bart Ogryczak
ate original list, while changing contents of self.lst. bart -- "chłopcy dali z siebie wszystko, z czego tv pokazała głównie bebechy" http://candajon.azorragarse.info/ http://azorragarse.candajon.info/ -- http://mail.python.org/mailman/listinfo/python-list

Convert list to file object without creating an actual file.

2008-01-24 Thread Bart Kastermans
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/ftplib.py", line 428, in storlines AttributeError: 'list' object has no attribute 'readline' Expected since homeworkhtml is in fact not a file. Is there a way to convert this li

Re: Convert list to file object without creating an actual file.

2008-01-25 Thread Bart Kastermans
word' ) # go to location of root of website on server ftp.cwd('httpdocs') # put the contends of a file filename = "test.html" ftp.storlines("STOR " + filename, homeworkhtmlfile) # quite the connection ftp.quit() This will result in an html file that

Gmail imap search does not get all messages.

2008-01-29 Thread Bart Kastermans
t;ALL") only gives as answer "1 2", missing the third message. Any suggestions about what I might be doing wrong? Or is this a known issue? I couldn't find anything by googling, but maybe I am using the wrong search terms. Best, Bart >>> k.select() 05:41.11 > FE

Re: Fw: Undeliverable Message

2008-01-30 Thread Bart Kastermans
orks. All good. It's nice and simple.  I'm just wondering how > anyone else might approach it? I (not an expert at all) have only minor comments and one question: comments: why keep setting overflow to True, if you do not touch it will not change. digitpos -= 1 is easier to read in my mind question: Why first extract the indices and then compare (in your if statement), and why do you not just compare the symbols? Best, Bart -- http://mail.python.org/mailman/listinfo/python-list

Re: Gmail imap search does not get all messages.

2008-02-02 Thread Bart Kastermans
Quick update on the below: the issue has disappeared by itself. I did not get to working on this much since sending my last message. Now that I am looking at this the issue has disappeared. On Jan 29, 8:23 pm, Bart Kastermans <[EMAIL PROTECTED]> wrote: > I am trying to use imaplib w

ANN: GOZERBOT 0.8 released

2008-03-04 Thread Bart Thate
so 0.8 is there and can be downloaded from http://gozerbot.org new features: * third party addons for plugins. (needs setup.py to work) * reboots without disconnects (irc only for now) * ipv6 udp support * queues used all over the place to reduce thread usage * normal irc log

GOZERBOT 0.9 RELEASED

2009-02-06 Thread Bart Thate
c or jabber notification bot (see UDP * sqlalchemy support Bart -- http://mail.python.org/mailman/listinfo/python-list

Request For (gozerbot) Testers

2009-01-02 Thread Bart Thate
me know on #dunkbots IRCnet or at bth...@gmail.com .. THNX ;] Bart see http://gozerbot.org/newsite/0.9/ for more information about the upcoming 0.9 release -- http://mail.python.org/mailman/listinfo/python-list

GOZERBOT 0.8.1-BETA released

2008-05-18 Thread Bart Thate
working to a new 0.8.1 release we make a BETA available to be tested by interested users. new features: * ssl connections are now supported * third party software included into gozerbot: o feedparser (used by RSS) .. makes atom feeds possible o simplejson (used by COL

GOZERBOT 0.8.1.0 released

2008-06-02 Thread Bart Thate
0.8.1.0 is here and can be downloaded from http://gozerbot.org new features: * ssl connections are now supported * third party software included into gozerbot: o feedparser (used by RSS) .. makes atom feeds possible o simplejson (used by COLLECTIVE) o Beautif

Explaining Implementing a Binary Search Tree.

2008-06-15 Thread Bart Kastermans
/implementing-a-binary-search-tree/ The code of the class has been copied below, but the description of the process (mostly an attempt at approaching test driving development for as far as I understand the term) has not been copied. Any and all comments are appreciated. Best, Bart *** python

String Concatenation O(n^2) (was: Re: Explaining Implementing a Binary Search Tree.)

2008-06-16 Thread Bart Kastermans
Summary: can't verify big O claim, how to properly time this? On Jun 15, 2:34 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Bart Kastermans" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > |I wrote a binary search tree in pytho

Re: String Concatenation O(n^2) (was: Re: Explaining Implementing a Binary Search Tree.)

2008-06-21 Thread Bart Kastermans
On Jun 17, 1:01 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 16 Jun 2008 07:34:06 -0300, Bart Kastermans <[EMAIL PROTECTED]> > escribió: > > > Summary: can't verify big O claim, how to properly time this? > > > This is in

Strings are better than lists for the tree to string operation.

2008-06-30 Thread Bart Kastermans
main part is a graph of timing data) Appending for lists is slower than appending the strings. This means that the operation using strings is faster. Again, thanks for all the comments, I enjoyed working this out. Even better would be to point out any mistakes in my arguments or code. Best, Bart >

Changing self: if self is a tree how to set to a different self

2008-07-10 Thread Bart Kastermans
if self.right != None: self.right.elimF () Best, Bart -- http://mail.python.org/mailman/listinfo/python-list

Re: Changing self: if self is a tree how to set to a different self

2008-07-12 Thread Bart Kastermans
Terry Reedy <[EMAIL PROTECTED]> writes: > Bart Kastermans wrote: >> I am playing with some trees. In one of the procedures I wrote >> for this I am trying to change self to a different tree. A tree >> here has four members (val/type/left/right). I found that self =

Re: Correct use of try,except and raise?

2008-07-13 Thread Bart Kastermans
Roy Smith <[EMAIL PROTECTED]> writes: > ssecorp <[EMAIL PROTECTED]> wrote: > >> i dont get what you mean, if i dont do anything python will raise an >> indexerror so it is an indexerror. > > You wrote: > >> > >     def pop(self): >> > >         try: >> > >             return self.queue.pop(0) >> >

Re: Changing self: if self is a tree how to set to a different self

2008-07-13 Thread Bart Kastermans
Paul McGuire <[EMAIL PROTECTED]> writes: > On Jul 12, 6:18 am, Bart Kastermans <[EMAIL PROTECTED] > macbook.local> wrote: >> This uses the function: >> >> def NoneOr (tree, mem_function, *arguments): >>     """ if tree is not None then

Negative regular expressions (searching for "i" not inside command)

2008-08-28 Thread Bart Kastermans
hieve something like this by searching for all i and then throwing away those i that are inside such expressions. I am now just wondering if these two steps can be combined into one. Best, Bart -- http://www.bartk.nl/ -- http://mail.python.org/mailman/listinfo/python-list

cmndbot 0.1 beta 1 released

2009-11-27 Thread Bart Thate
eally needs to be tested, but thats what this release is for, rememer this is still version 0.1 ! code is at http://cmndbot.googlecode.com/hg I hope people are interested in developing this bot with me, if you do you can contact me at bth...@gmail.com or bth...@googlewave.com Bart -- http://mail.python.org/mailman/listinfo/python-list

CMNDBOT 0.1 BETA2 released

2009-12-06 Thread Bart Thate
ed to wave functionality was made. currently it has commands to get the id of the wave, getting the url redirecting to the wave and one to get a list of the wave's participants * lots of other bug fixes .. running from one to the other ;] Bart About CMNDBOT: CMNDBOT is an IRC like command bo

GZRBOT 0.1 released

2009-12-23 Thread Bart Thate
! ;] Bart -- http://mail.python.org/mailman/listinfo/python-list

CMNDBOT 0.1 released

2010-01-02 Thread Bart Thate
new in this release: * updated the repository to GZRBOT code * a outputcache and poller gadget is now available to support writing to waves (right now the poller polls every minute) * RSS plugin looks stable todo: * make gozernet work .. this lets GZRBOT bots communicate with each other by using

Detecting new removable drives in Linux

2010-03-01 Thread Bart Smeets
vance! Regards, Bart -- http://mail.python.org/mailman/listinfo/python-list

GZRBOT 0.2 BETA1 released

2010-03-03 Thread Bart Thate
download the tarball at http://gzrbot.googlecode.com Basic documentation is at http://gozerbot.org/gzrdoc and i made a wave available if you want to try the bot with me or have questions and such: https://wave.google.com/wave/#restored:wave:googlewave.com!w%252B51rssVscD Hope you enjoy it ! Bart

JSONBOT 0.1 released

2010-04-02 Thread Bart Thate
Introducing JSONBOT JSONBOT is a bot that stores all its data in json format. It runs on the Google Application Engine and can thus support wave, web and xmpp. Standalone programms are provided for IRC and console, the goal is to let both clientside and GAE side communicate through JSON either ove

JSONBOT 0.5 RELEASED

2010-12-06 Thread Bart Thate
ation: http://jsonbot.appspot.com/docs * bugs: http://code.google.com/p/jsonbot/issues/list * twitter: http://twitter.com/#!jsonbot I consider JSONBOT to be of BETA quality now, i think it has become quite usable ;] Any feedback would be very much appreciated. As always ... HF ! Bart about JS

JSONBOT 0.6 RELEASED

2011-01-04 Thread Bart Thate
ure to write your own functionality * event driven framework by the use of callbacks Bart -- http://mail.python.org/mailman/listinfo/python-list

JSONBOT 0.6.1 RELEASED

2011-02-03 Thread Bart Thate
to_register and guestasuser config options are now disabled by default * core xmpp parsing code has been rewritten * many more bug fixes. You can grab a copy of the code (tarball or mercurial repo) at http://jsonbot.googlecode.com Hope you enjoy this release as much as i enjoyed making it ;] H

GOZERBOT 0.9.2 BETA1 released

2010-04-26 Thread Bart Thate
I just released the first BETA of GOZERBOT version 0.9.2 Please test this release if you can. Best is to run of the mercurial repo: hg clone http://core.gozerbot.org/hg/dev/0.9 or run easy_install -U gozerbot gozerplugs (make sure there is no gozerbot dir in your working directory.) docs are a

First Tkinter script: requesting comments

2010-05-21 Thread Bart Kastermans
://kasterma.wordpress.com/2010/05/21/first-experiments-with-tkinter/ But will also include it here for convenience. Thanks for any help, Best, Bart *** #!/usr/bin/env python # # Getting a list of students and grades displayed so that grades can # be updated, and we poll these changes (so

GOZERBOT 0.9.1 BETA2 released

2009-07-03 Thread Bart Thate
provide a platform for the user to program his own bot and make it into something thats usefull. This is done with a plugin structure that makes it easy to program your own. But GOZERBOT comes with some batteries included, there are now over 100 plugins already written and ready for use. groet, Bart

easy_install: unresolved external symbol

2009-08-03 Thread Bart Smeets
Hello, I keep getting errors when trying to use easy_install to install bbfreeze or cxfreeze (same errors). This is the output: http://pastebin.com/m65ba474d The error message unresolved external symbol keeps popping up. I have no idea how to solve this. Can anyone give me a hint? Thanks in adv

Re: easy_install: unresolved external symbol

2009-08-04 Thread Bart Smeets
I could ofcourse use cxfreeze's binary package. But bbfreeze is not available as a binary. I would love to get easy_install to work. But I have no idea what's going wrong here. 2009/8/4 Gabriel Genellina > En Mon, 03 Aug 2009 17:39:44 -0300, Bart Smeets > escribió: > >

Re: easy_install: unresolved external symbol

2009-08-04 Thread Bart Smeets
How do I give the option to link to the ez_setup.py? 2009/8/4 David Lyon > On Tue, 4 Aug 2009 10:52:20 +0200, Bart Smeets > wrote: > > I could ofcourse use cxfreeze's binary package. But bbfreeze is not > > available as a binary. I would love to get easy_install to wo

GOZERBOT 0.9.1 released

2009-08-11 Thread Bart Thate
here it is .. GOZERBOT 0.9.1 !! Main change this time is the distribution method, we now provide a tar.gz with all the dependencies included. This means that you can run the bot locally without any root required. Python 2.5 or higher needed, see http://gozerbot.org Enjoy ! about GOZERBOT: GOZER

JSONBOT 0.3 RELEASE

2010-08-30 Thread Bart Thate
Hello world ! I just released version 0.3 of JSONBOT. JSONBOT is a remote event driven framework for building bots that talk JSON to each other over XMPP. This distribution provides bots built on this framework for console, IRC, XMPP for the shell and WWW and XMPP for the Google Application engin

JSONBOT 0.4 RELEASED

2010-09-28 Thread Bart Thate
Yesterday i pushed version 0.4 of JSONBOT to pypi and googlecode. This version has a rewritten core that makes it easier to develop bots for and has lots of bugs fixed. A karma plugin was added as well as a silent mode that forwards bot responses to /msg. You can grab a copy on http://jsonbot.goog

CherryPyWSGIServer multi-threading

2010-10-13 Thread Bart Ogryczak
I'm trying to create multi-threaded WSGI server. But somehow I'm getting single threaded. What am I doing wrong? #start myapp.py from cherrypy.wsgiserver import CherryPyWSGIServer def my_app(environ, start_response): print "my_app" import time for i in range(10): print i

CherryPyWSGIServer multi-threading

2010-10-13 Thread Bart Ogryczak
I'm trying to create multi-threaded WSGI server. But somehow I'm getting single threaded. What am I doing wrong? #start myapp.py from cherrypy.wsgiserver import CherryPyWSGIServer def my_app(environ, start_response): print "my_app" import time for i in range(10): print i

botlib - framework to program bots

2017-07-12 Thread Bart Thate
BOTLIB - Framework to program bots is released in the Public Domain - https://lnkd.in/ginB49K #publicdomain #python3 #xmpp #irc #bot Framework to program bots. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python in Makefile Question. try A.A.P

2005-02-11 Thread Bart van Deenen
't need to define the dependencies yourself, it understands C files, and does the work for you. Our Makefile shrunk by a factor of 5 after converting to aap. Highly recommended. Bart van Deenen. -- http://mail.python.org/mailman/listinfo/python-list

:-)

2005-02-17 Thread Bart van Deenen
Jack Diederich <[EMAIL PROTECTED]> wrote: > /tmp/> python > Python 2.3.4 (#2, Jan 5 2005, 08:24:51) > Type "help", "copyright", "credits" or "license" for more information. > >>> ^D :-) :-) :-) :-) :-) :-) :-) :-) :-) :-

Re: Don't understand global variables between modules

2005-02-23 Thread Bart van Deenen
bal space? > > in this case, there are more module namespaces than you think. > this page might help (especially the "Using Modules as Scripts" section): > http://effbot.org/zone/import-confusion.htm Thanks for your answer, and also thanks for effbot. Lots of good tips. Bart -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't understand global variables between modules

2005-02-23 Thread Bart van Deenen
Hi thanks for the answer. Coming from C and C++ this behaviour wasn't really obvious to me. I still love Python though :-) Most elegant language I've ever seen. Bart -- http://mail.python.org/mailman/listinfo/python-list

portable Python ifconfig

2007-03-03 Thread Bart Van Loon
Hi all, I'm looking for a portable (FreeBSD and Linux) way of getting typical ifconfig information into Python. Some research on the web brought me to Linux only solutions http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/439094 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/43909

Re: portable Python ifconfig

2007-03-03 Thread Bart Van Loon
It was 3 Mar 2007 18:43:57 -0800, when MonkeeSage wrote: > Bart, > > Can you try this and let us know if it works for FreeBSD? thanks for you suggestions! > import socket, fcntl, struct > > def _ifinfo(sock, addr, ifname): > iface = struct.pack('256s', ifname[

Re: portable Python ifconfig

2007-03-04 Thread Bart Van Loon
It was Sun, 4 Mar 2007 02:38:58 +0500, when Bart Van Loon wrote: > Hi all, > > I'm looking for a portable (FreeBSD and Linux) way of getting typical > ifconfig information into Python. After lots of trial and error (I'm proficient in C at all), I puzzled togehter the followi

Re: portable Python ifconfig

2007-03-04 Thread Bart Van Loon
It was Sun, 4 Mar 2007 14:09:20 +0500, when Bart Van Loon wrote: > It was Sun, 4 Mar 2007 02:38:58 +0500, when Bart Van Loon wrote: >> Hi all, >> >> I'm looking for a portable (FreeBSD and Linux) way of getting typical >> ifconfig information into Python. > &

Re: looking for Java final/Ruby freeze functionality in Python

2007-03-04 Thread Bart Van Loon
It was Sun, 04 Mar 2007 20:38:16 +0100, when Antoine De Groote wrote: > Hello, > > I've been googling for quite a while now but can't find anything about a > function/keyword to make a list (or something else) immutable. Could > anybody point me to docs about this matter or give me a reason why t

cherrypy sub-process

2007-03-11 Thread Bart Van Loon
Hi all, I have written a small program in Python which acts as a wrapper around mpd and natd on a FreeBSD system. It gets the status, restarts the processes, etc... Then, I created a tiny cherrypy webapp which provides a webinterface to this program. All works fine, but for the following problem:

Simple elementtree question

2007-09-18 Thread Peters Bart (GEN)
I have the exact same problem, rdf and elementtree -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does this not work?

2007-02-02 Thread Bart Van Loon
It was 2 Feb 2007 04:41:48 -0800, when alain wrote: > I tried the following: > > myobj=object() > myobj.newattr=5 > > results in: > > > Traceback (most recent call last): > File "", line 1, in ? > AttributeError: 'object' object has no attribute 'newattr' > > Any idea? I think it's because... ob

Re: How do I print out in the standard output coloured lines

2007-02-02 Thread Bart Van Loon
It was 2 Feb 2007 04:27:06 -0800, when [EMAIL PROTECTED] wrote: > print "Hello World!!" > > I want it in red colour. > > That's all. Use colour escape codes: print "\033[1;31mHello World\033[0m" That's all. :-) -- groetjes, BBBart Golly, I'd hate to have a kid like me!

in place-ness of list.append

2007-02-05 Thread Bart Van Loon
Hi all, I would like to find out of a good way to append an element to a list without chaing that list in place, like the builtin list.append() does. currently, I am using the following (for a list of integers, but it could be anything, really) #--

Re: in place-ness of list.append

2007-02-05 Thread Bart Van Loon
It was Mon, 05 Feb 2007 11:00:50 GMT, when Kent Johnson wrote: > Bart Van Loon wrote: >> Hi all, >> >> I would like to find out of a good way to append an element to a list >> without chaing that list in place, like the builtin list.append() does. >> >> cur

Re: in place-ness of list.append

2007-02-05 Thread Bart Van Loon
It was Mon, 5 Feb 2007 05:01:28 -0600, when [EMAIL PROTECTED] wrote: > > Bart> #-- > Bart> def addnumber(alist, num): > Bart> """ work around the inplace-ness of .append ""&

def X(l=[]): weirdness. Python bug ?

2008-08-22 Thread Bart van Deenen
live between the two successive calls of X(). Why is it not recreated with an empty list? Is this correct behavior or is it a Python bug? Does anyone have any pointers to the language documentation where this behavior is described? Thanks all Bart van Deenen -- http://mail.python.org/mailman/listinfo/python-list

Re: def X(l=[]): weirdness. Python bug ?

2008-08-22 Thread Bart van Deenen
Hi Thanks all for your answers. I figured your solution already, but now I understand where the behavior is from. One question remains: can I find my parameter 'l' somewhere? I looked in a lot of objects, but couldn't find it. Thanks Bart. [EMAIL PROTECTED] wrote: > O

Re: def X(l=[]): weirdness. Python bug ?

2008-08-22 Thread Bart van Deenen
hat I found it hard to find a query that would give meaningful answers. Thanks for your patience all. Bart -- http://mail.python.org/mailman/listinfo/python-list

message

2022-07-14 Thread Bart Kuijer via Python-list
rking group with the aim of making the package available for free. To get an idea what this is all about 1. the help screen https://app.box.com/s/fiy20u5r89n4jpn0346bnxu9xq6s86lk 2, the total package https://app.box.com/s/aag348tejxgdacc00n5ri3l9txa5bwwn I am looking forward to your response. Bart K

<    1   2   3