ReportLab 2.2 has been released

2008-09-11 Thread Robin Becker
code. And many bugfixes... -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Good python equivalent to C goto

2008-08-18 Thread Robin Becker
; } such a pity that the goto module http://mail.python.org/pipermail/python-announce-list/2004-April/002982.html never got into core python :) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Printing a text file using Python

2008-08-11 Thread Robin Lee
nd of lines and loop a whole lot of dc.textouts Robin your code: dc = win32ui.CreateDC() dc.CreatePrinterDC() dc.SetMapMode(4)# This is UI_MM_LOENGLISH # With this map mode, 12 points is 12*100/72 units = 16 font = win32ui.CreateFont({'name' : &

ANNOUNCE: wxPython 2.8.8.1

2008-07-20 Thread Robin Dunn
caused unneccessary or incorrect scrolling. Fixed a bug in wx.GridBagSizer where hidden items were not ignored in part of the layout algorithm. Several other bugs also fixed. Added builds for Ubuntu Hardy (8.04) -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with

Re: [wxpython-users] ANN: wxPython 2.8.8.0

2008-06-25 Thread Robin Dunn
Mario Lacunza wrote: Hello Robin, Are available repos for Ubuntu Hardy?? Not yet. I hope to get set up for a Hardy build in the next few days, but you may be able to use the gutsy packages in the meantime. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax

ANN: wxPython 2.8.8.0

2008-06-25 Thread Robin Dunn
el that provides a resize handle for the widget. When the user drags the resize handle the widget is resized accordingly, and an event is sent to notify parents that they should recalculate their layout. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python noob's simple config problem

2008-06-12 Thread Robin Kåveland Hansen
On Thu, 12 Jun 2008 21:32:34 +, kj wrote: > I'm sure this is a simple, but recurrent, problem for which I can't hit > on a totally satisfactory solution. > > As an example, suppose that I want write a module X that performs some > database access. I expect that 99.999% of the time, during th

Printing a text file using Python

2008-06-01 Thread Robin Lee
nd of lines and loop a whole lot of dc.textouts Robin your code: dc = win32ui.CreateDC() dc.CreatePrinterDC() dc.SetMapMode(4)# This is UI_MM_LOENGLISH # With this map mode, 12 points is 12*100/72 units = 16 font = win32ui.CreateFont({'name' : &

Re: Report Lab Image Flowable Issue ..

2008-05-20 Thread Robin Becker
oblem perhaps you should start with some simple examples. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python for programming algorithms

2008-05-19 Thread Robin Becker
27; of python's interpreter. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k s***s

2008-04-18 Thread Robin Becker
a worse(more complex) tool for many simple tasks. Using a complex writing with many glyphs costs effort no matter how you do it, but I just use ascii :( and it's still an effort. I find the differences in C/OS less hard to understand than why I need bytes(x,'encoding') everywhere

Re: Recurring patterns: Am I missing it, or can we get these added to the language?

2008-04-15 Thread Robin Stocker
;, 1) Note that the number has the meaning "only split n times" as opposed to "split into n parts". Cheers, Robin -- http://mail.python.org/mailman/listinfo/python-list

Re: Preferred method for "Assignment by value"

2008-04-15 Thread Robin Stocker
mp.insert(0, k) finallist.append(temp) It can still be clarified and simplified to this (may also be faster): temp = [k] + v finallist.append(temp) Which one do you like better :)? Robin -- http://mail.python.org/mailman/listinfo/python-list

[ANN] PyStructure: Structure and Dependency Analyser for Python Projects

2008-04-14 Thread Robin Stocker
: http://pystructure.ifs.hsr.ch/ We are very eager to hear your feedback about our project. What do you think about the idea of a 'structural analyser' for a dynamic language like Python? Does it work for your project (probably not very well at the moment)? Cheers, Reto Schütte

Re: csv.Sniffer - delete in Python 3.0?

2008-03-19 Thread Robin Becker
it in PyPI? .. sounds like we really need import ai info = ai.guess_what_this_is('crummy.csv') but I suspect that won't arrive before py5000 I use csv, but almost always with tab or comma separation and \r\n line terminators. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: xml escapedness

2008-02-22 Thread Robin Becker
Steve Holden wrote: > Robin Becker wrote: >> Tim van der Leeuw wrote: >>> On Fri, Feb 22, 2008 at 5:17 PM, Robin Becker <[EMAIL PROTECTED]> wrote: >>> >>>> A colleague has decided to keep his django database string values (which >>>> are x

Re: xml escapedness

2008-02-22 Thread Robin Becker
Tim van der Leeuw wrote: > On Fri, Feb 22, 2008 at 5:17 PM, Robin Becker <[EMAIL PROTECTED]> wrote: > >> A colleague has decided to keep his django database string values (which >> are xml >> fragments) in an xml escaped form to avoid having the problem of escaping

xml escapedness

2008-02-22 Thread Robin Becker
hould). type(xmlstr('<') + '') is type(str) clearly there are a large number of operations which should be overridden or just hidden to prevent the wrong outcome; has anyone else thought about this in any detail? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: InstanceType tests in Python-3.0

2008-02-14 Thread Robin Becker
Steven D'Aprano wrote: > On Thu, 14 Feb 2008 17:21:20 +0000, Robin Becker wrote: > > > > The way I see it, your code don't really care about the distinction > between "user-generated classes" and "built-in types", it cares about the

Re: InstanceType tests in Python-3.0

2008-02-14 Thread Robin Becker
Steven D'Aprano wrote: > On Thu, 14 Feb 2008 15:26:08 +0000, Robin Becker wrote: > >> I'm in the process of porting some code. I have 2.x code that looks like >> this >> >> t = type(e) >> if t==InstanceType: >> return f0(e) >> elif t

InstanceType tests in Python-3.0

2008-02-14 Thread Robin Becker
which can then be tested further perhaps? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

2to3.py download

2008-02-12 Thread Robin Becker
Can anyone say how to go about obtaining 2to3.py the Python-3.0 conversion utility? There is a copy in the 3.0a2 Tools folder, but it lacks some of the sub folders. I tried various svn ls commands, but couldn't locate the actual repository. -- Robin Becker -- http://mail.python.org/ma

Re: brain stuck. whats occurring here?

2008-02-07 Thread Robin Becker
w[:]) >>>> a > [[[...], [], [], [], [], [], [], [], [], []], [], [], [], [], [], [], [], > [], []] > > > why isnt that last a > > [[[...]],[],[],[],[],[],[],[],[],[]] > > > Puzzled :) > > Matt. > -- To get an n by m grid I would use [[[] for i in xrange(m)] for j in xrange(n)] -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: boolean decisions

2008-02-06 Thread Robin Becker
timated the people I work with. having reduced the problem to only 4 input variables. They carefully produced a spreadsheet with 20 scenarios. There were clearly 4 scenarios missing, but also 4 pairs of duplicates in the input space; worse only one of the duplicate pairs agreed on the action. sig

Re: boolean decisions

2008-02-05 Thread Robin Becker
re various decision table techniques, but good > algorithms seem to be in short supply. in practice the decisions are mostly singletons and I'm fairly sure which order they have to be made in. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: boolean decisions

2008-02-05 Thread Robin Becker
Diez B. Roggisch wrote: > Robin Becker wrote: > >... >> terms or something, but perhaps I am daft. > > Triggered this in some deep-rootet parts of my brain stem: > > http://en.wikipedia.org/wiki/Quine-McCluskey_algorithm . seems like the sort of thing I can de

Re: boolean decisions

2008-02-05 Thread Robin Becker
Paul Hankin wrote: > On Feb 5, 10:52 am, Robin Becker <[EMAIL PROTECTED]> wrote: >> I have a couple of business decisions to make that essentially use 6 binary >> input variables. After the business users have gone back and forth for two >> weeks >> trying to buil

boolean decisions

2008-02-05 Thread Robin Becker
e. It seems to me I need to solve an overdetermined binary equation system and then choose the solution with the shortest number of terms or something, but perhaps I am daft. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: [wxPython-users] Issue with docking wx.listctrl window

2008-01-25 Thread Robin Dunn
tarun wrote: > Thanks a lot Robin. > > I tried using self.log and instead of self.log.list. *Code is attached.* > But this gives me a panel and listctrl in it. The extra blank space > around the listctrl in window1 is something that I don't need. Use a sizer to mana

Re: [wxPython-users] Issue with docking wx.listctrl window

2008-01-24 Thread Robin Dunn
UI to manage the listctrl, not the panel. If I understand correctly then your other problems stem from that as well. Try passing self.log to AddPane, instead of self.log.list. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! -- http://mail.python.org/mailman/listinfo/python-list

Re: bitmap problem

2008-01-20 Thread Robin Becker
Robin Becker wrote: > I'm having trouble with defining a completely transparent bitmap > for use as a stipple in a canvas > > ... after a bit of searching I find that stipples cannot be created with the tk image command; for non-standard stipples you need to use a file.

bitmap problem

2008-01-20 Thread Robin Becker
s, kw) File "C:\Python\lib\lib-tk\Tkinter.py", line 2145, in _create *(args + self._options(cnf, kw _tkinter.TclError: bitmap "gray0" not defined if I change gray0 to one of the predefined names eg gray12 then the create_rectangle succeeds. The tk manual seems to suggest I should be able to do this, but it doesn't seem to work even in tk. Is there a way to define a stipple without a file? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Fortran to Python

2008-01-04 Thread Robin Becker
to share my own ideas: > > Seems > > COMPLEX*16/complex*16 ~= complex > REAL*8/real*8 ~= float > INTEGER/integer ~= int/long > you probably want to look at numpy an extension that handles lots of matrix things with great ease. I think it now lives at htt

simplejson setup problem

2007-12-11 Thread Robin Becker
s to be creating an egg and that bit is failing. Is there some easy way to avoid this broken egg syndrome and just use ordinary distutils? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils & OS X universal binaries

2007-12-10 Thread Robin Becker
Robin Becker wrote: >> Ok. Still, I would write it as >> >> #if defined(__LITTLE_ENDIAN__) >> #undef WORDS_BIGENDIAN >> #elif defined(__BIG_ENDIAN__) >> #undef WORDS_BIGENDIAN >> #define WORDS_BIGENDIAN 1 >> #endif >> >> Re

Re: distutils & OS X universal binaries

2007-12-09 Thread Robin Becker
error if the variable isn't defined, but that is cleaner thanks for the assistance -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils & OS X universal binaries

2007-12-08 Thread Robin Becker
sing WORDS_BIGENDIAN so fewer changes need to be made to the code. It just makes resynching with the upstream code easier. If neither are defined we get to use the definition from setup.py if it's needed. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils & OS X universal binaries

2007-12-08 Thread Robin Becker
undef WORDS_BIGENDIAN # endif # define WORDS_BIGENDIAN 1 # else # ifdef __LITTLE_ENDIAN__ # ifdef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #

Re: distutils & OS X universal binaries

2007-12-08 Thread Robin Becker
27;t define the gcc macros the we seem to get the wrong result. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils & OS X universal binaries

2007-12-08 Thread Robin Becker
splays a known bug when run on a ppc. >> Have you reported the problem at http://bugs.python.org/? A minimal >> example could help us to fix the problem. > > At first, I also thought that Robin suggested that there is a problem > with Python. Upon re-reading, I now believe he ra

distutils & OS X universal binaries

2007-12-08 Thread Robin Becker
4 different binaries are being squashed together in these universal binaries. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to merge/sort two sorted lists?...

2007-12-06 Thread Robin Becker
3100 for PyxAggregateTailMerge C:\code\users\robin> -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

ANN: wxPython 2.8.7.1

2007-11-30 Thread Robin Dunn
ed GetDirItemData to wx.GenericDirCtrl, which returns a reference to the data object associated with an item in the control. (Patch #1836326) -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! -- http://mail.python.org/mailman/listinfo/python-list

PIL image.getcolors

2007-11-29 Thread Robin Becker
t;>>> im0.getcolors() > [(55367, (255, 1, 25, 255)), (24104, (24, 79, 235, 255)), (46529, (0, 0, 0, > 0))] >>>> im1 = Image.open('400px-Wiki_letter_w.svg.png') >>>> im1.mode > 'RGBA' >>>> im1.getcolors() >>>> im1.getcolors() is None > True >>>> -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Teach Python "Variables"

2007-11-27 Thread Robin Kåveland Hansen
ariable into a function/method, you can risk that your own "copy" will be "pointing" (For a lack of better words) to a different object. This won't happen in Python. Mutable objects make it seem very similar though. -- regards, Robin -- http://mail.python.org/mailman/listinfo/python-list

Re: Should proxy objects lie about their class name?

2007-11-27 Thread Robin Becker
ass thus turning all my modules into instances of class_war :) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 3000 on Leopard (Mac OS) fails...

2007-11-26 Thread Robin Kåveland Hansen
something for the core python developers and not for me to fix, or even advice in, so if you want to be on the safe side to ensure no breakage, don't touch it on my advice. -- regards, Robin -- http://mail.python.org/mailman/listinfo/python-list

Re: png transparency with PIL

2007-11-23 Thread Robin Becker
Bjoern Schliessmann wrote: > Robin Becker wrote: > >> I'm trying to determine the transparency information for a png . >> guessing I need the alpha channel, but is there a way to get hold >> of it? > > For accessing the alpha channel, there is an R

png transparency with PIL

2007-11-23 Thread Robin Becker
of the way png does transparency. I'm guessing I need the alpha channel, but is there a way to get hold of it? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Research-oriented Python mailing list?

2007-11-22 Thread Robin Becker
! > > Cheers!!! > Albert-Jan > > Cheers! > Albert-Jan I guess that depends on what you want to research. If you're into developing python I'd start lurking on the python dev list; if you're into compilers and basic blocks then the pypy list is just the thing et

Re: Create thumbnail image (jpg/png) of PDF file using Python

2007-11-20 Thread Robin Becker
too exotic, but otherwise it works quite well. If that sounds OK I can send you a script that I use. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: struct,long on 64-bit machine

2007-11-19 Thread Robin Becker
Neal Becker wrote: > What's wrong with this? > type(struct.unpack('l','\00'*8)[0]) > > > Why I am getting 'int' when I asked for 'long'? > > This is on python-2.5.1-15.fc8.x86_64 > On my AMD 64 I think int is 64 bits $ py

Re: timing puzzle

2007-11-16 Thread Robin Becker
saved_nodes = [] >for A in active_nodes[:]: > .. > if not cond: > saved_nodes.append(A) > > .. >active_nodes = saved_nodes >. > I like this approach, better than mine. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: timing puzzle

2007-11-16 Thread Robin Becker
ven faster: > active_nodes = [node for node in active_nodes if node not in > deleted_nodes], where deleted_nodes is a set. > > > Normal micro-optimization techniques apply here too, like looking up > the remove() method ahead of time and so on. >. yes indeed and they'

timing puzzle

2007-11-16 Thread Robin Becker
are O(n/2) on average. On the other hand we have to keep this list in sorted order. What data structure should I be using? I should add that I tried using a __cmp__ method to assist in doing the sorted insert, but that interfered with the simple active_nodes.remove. -- Robin Becker -- http:

Re: why did these companies choose Tcl over Python

2007-10-31 Thread Robin Becker
embedded language. Of course the embedding was the final application as the controlling computers were really puny eg pdp8/9/11. At that time the concept of free software hadn't even arisen. I believe forth was proprietary, but it was widely available to academics and many machine tools

ANNOUNCE: wxPython 2.8.6.1

2007-10-28 Thread Robin Dunn
the frozen one in Z-order to paint through, and also mouse events clicking through to the lower window. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! -- http://mail.python.org/mailman/listinfo/python-list

Re: vote for Python - PLEASE

2007-10-20 Thread Robin Becker
thon+mysql; I dispute the value of "kicking our butts" though. When I voted python was running at 39.8% about equal to java+php (41.4%). -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

deepcopy debugging

2007-10-19 Thread Robin Becker
254, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "C:\Python\lib\copy.py", line 189, in deepcopy y = _reconstruct(x, rv, 1, memo) File "C:\Python\lib\copy.py", line 322, in _reconstruct y = callable(*args) File "C:\Python\lib\copy_reg.py", line 92, in __newobj__ return cls.__new__(cls, *args) TypeError: object.__new__(_hashlib.HASH) is not safe, use _hashlib.HASH.__new__() -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Last iteration?

2007-10-13 Thread Robin Kåveland
On Oct 12, 12:58 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > can I determine somehow if the iteration on a list of values is the last > iteration? > > Example: > > for i in [1, 2, 3]: >if last_iteration: > print i*i >else: > print i > > that would print > > 1 > 2 >

Re: Plugins / Modularity

2007-10-10 Thread Robin Kåveland
On Oct 10, 8:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Oct 10, 12:30 pm, Robin Kåveland <[EMAIL PROTECTED]> wrote: > > > > > Hi there. I'm basically in the process of writing my first substantial > > application in Python, and

Plugins / Modularity

2007-10-10 Thread Robin Kåveland
Hi there. I'm basically in the process of writing my first substantial application in Python, and I've made a couple of (I'd like to say) design decisions so it won't just be a jumble. So, I've divided my program into three sub-packages, core, plugins and utilities. The core will be needed for the

Re: NUCULAR fielded text searchable indexing

2007-10-09 Thread Robin Becker
ht it was funny. Can't I make fun of > politicians in my open source projects? Besides there is > a great tradition of tounge-in-cheek package names, like > "Cold fusion", for example. >... I think it's an excellent name :) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: WebBased Vector 2D Graphics

2007-10-05 Thread Robin Becker
e job has been done. A javascript timeout periodically performed the query request and used the response to update the ticker. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Create a string array of all comments in a html file...

2007-09-30 Thread Robin Becker
nks. > You should probably eat beautiful soup at http://www.crummy.com/software/BeautifulSoup/documentation.html which helps with this sort of task. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: recipient validation with smtplib

2007-09-28 Thread Robin Becker
Tim Williams wrote: > On 28/09/2007, Robin Becker <[EMAIL PROTECTED]> wrote: >> Is there a way to use smtplib to get recipient validation. I can use smtplib >> quite happily to send emails using the locahost's sendmail, but sendmail is >> just >> fire and f

recipient validation with smtplib

2007-09-28 Thread Robin Becker
mtp setups do enforce recipient validation, but it doesn't seem terribly easy to do this with sendmail. I wondered if there were some way to do this in python? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

ANNOUNCE: wxPython 2.8.6.0

2007-09-27 Thread Robin Dunn
styles, this style replaces wx.BORDER_DOUBLE. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! -- http://mail.python.org/mailman/listinfo/python-list

Re: Odd files; just left behind?

2007-09-22 Thread Robin Becker
ll is wrong and may not even be possible. It also allows for the carefully crafted binary extensions to be substituted by anyone with write permission to the cache folder. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Odd files; just left behind?

2007-09-21 Thread Robin Becker
of not reading the FineManual(tm) ? well I didn't write the installer or the associated egg setup. The egg things are supposed to do the right thing, but perhaps they're too difficult for the egg layers. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Odd files; just left behind?

2007-09-21 Thread Robin Becker
Bruno Desthuilliers wrote: > Robin Becker a écrit : >> John J. Lee wrote: >> >>> Robin Becker <[EMAIL PROTECTED]> writes: >>> >>>> I see a folder .python-eggs in my home directory on one of our servers >>>> with various .so file

Re: Odd files; just left behind?

2007-09-19 Thread Robin Becker
John J. Lee wrote: > Robin Becker <[EMAIL PROTECTED]> writes: > >> I see a folder .python-eggs in my home directory on one of our servers >> with various .so files >> >> ~/.python-eggs/MySQL_python-1.2.2-py2.3-freebsd-6.1-SECURITY-i386.egg-tmp/_mysql.so >&g

Re: super() doesn't get superclass

2007-09-19 Thread Robin Becker
mro__ for the base class A immediately preceding B and then invokes the descriptor with the call: A.__dict__['m'].__get__(obj, A). " -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Odd files; just left behind?

2007-09-19 Thread Robin Becker
I see a folder .python-eggs in my home directory on one of our servers with various .so files ~/.python-eggs/MySQL_python-1.2.2-py2.3-freebsd-6.1-SECURITY-i386.egg-tmp/_mysql.so are these just left behind from some install process? -- Robin Becker -- http://mail.python.org/mailman/listinfo

Re: can Python be useful as functional?

2007-09-18 Thread Robin Becker
ed that fact, and are now > merely haggling about the price". > allegedly G B Shaw (http://findarticles.com/p/articles/mi_qn4158/is_19980925/ai_n14182408) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3K or Python 2.9?

2007-09-17 Thread Robin Becker
18 | 14.06 | 14.4050 | 0.800278 | ssh:app5:1258 62 | 48.44 | 30.0170 | 0.484145 | all local 128 |100.00 | 101.8940 | 0.796047 | total Time elapsed since scheduler creation 15.203687 Real average time 0.118773438036 #

sys.setdefaultencoding

2007-08-28 Thread Robin Becker
specify that unicode-->str should use 'utf8' rather than 'ascii' in all non-specific cases? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: about negative polar plots not defined in python not even matlab

2007-08-14 Thread Robin Becker
rresponds to -infinity. In practice, I think your radiation pattern plot might correspond to gain (or attenuation). Just relabel your plot and change the values to positive. If you do that and the plots look familiar then you have an answer. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: deliberate versus os socket timeout

2007-07-06 Thread Robin Becker
ng its own timeout seems to make the socket defaulttimeout irrelevant since I can have no per socket control over it. I think this came up before and I just forgot about it mumble mumble -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

deliberate versus os socket timeout

2007-07-05 Thread Robin Becker
elif hasattr(e, 'code'): return 1, escape('The server couldn\'t fulfill the request.\nError code: '+str(e.code)) else: # everything is fine h = self.headers = {} return 0,.. finally: socket.setdefaulttimeout(oto) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: 16bit hash

2007-06-28 Thread Robin Becker
ent and then I need a fairly robust way to generate reasonable candidates. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: 16bit hash

2007-06-28 Thread Robin Becker
Thomas Jollans wrote: > Robin Becker wrote: ... >> I'm not sure my postscript is really good enough to do the latter so I >> hoped to pursue a python based approach which has a low probability of >> busting. Originally I thought the range was a 16bit number which is w

Re: 16bit hash

2007-06-28 Thread Robin Becker
do the latter so I hoped to pursue a python based approach which has a low probability of busting. Originally I thought the range was a 16bit number which is why I started with 16bit hashes. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: 16bit hash

2007-06-27 Thread Robin Becker
Josiah Carlson wrote: > Robin Becker wrote: >> Is the any way to get an efficient 16bit hash in python? > > hash(obj)&65535 > > - Josiah yes I thought of that, but cannot figure out if the internal hash really distributes the bits evenly. Particularly since it seems

16bit hash

2007-06-27 Thread Robin Becker
Is the any way to get an efficient 16bit hash in python? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: simplifying algebraic expressions

2007-06-26 Thread Robin Becker
mework. The implication is that you know better than the overall fitness requirement. The additional expressions and redundancies allow for extra mutation and combination possibilities which is a good thing for the whole population. If you must, add the requirement to the target ie gi

Re: avoid script running twice

2007-06-19 Thread Robin Becker
.errno != EAGAIN: > raise > print >>sys.stderr, "exiting, another copy currently running" > > import time > time.sleep(2) > > (I tested it on linux only!) > many interesting suggestions, unfortunately I'm not exactly sure about the filesystem to be used. I think it might be some kind of NFS which might impact some of these solutions. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: avoid script running twice

2007-06-18 Thread Robin Becker
Wildemar Wildenburger wrote: > Robin Becker wrote: > > Well I can think of a dumb way: create a temporary file during the > transaction and have your script check for that before running its main > body. > > > I think thats the most hassle free way of doing

Re: avoid script running twice

2007-06-18 Thread Robin Becker
(or whether to do some of the > remaining work, etc.). > that might work, but this runs on someone's java solaris box with possible many connections going on. I doubt I'd be able to guarantee a particular port. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

avoid script running twice

2007-06-18 Thread Robin Becker
work(). Is there a smart way to avoid running simultaneously. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs

2007-06-18 Thread Robin Becker
t they go very deep. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Baffled on Windows.

2007-06-07 Thread Robin Becker
s shadowed so then we start having to recur and we'll have names like my_my_new.py my_my_list.py .. my_my_my_new.py . I leave as an exercise the algorithm which chooses the appropriate version of new/list to use :) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

safe cgi parameter

2007-06-04 Thread Robin Becker
_ a<&>b ie always wrap the value, but access to the original is possible via __raw__. However, if you do anything like x.strip() the original is lost. I'm not sure that's a bad thing, but I thought I would ask what others do for this problem. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: pyhon 2.5.1 build fails

2007-06-04 Thread Robin Becker
Robin Becker wrote: > I am getting an error while building python-2.5.1 on a freebsd 6.1 machine as > a > normal user > > ./configure --prefix=/home/me/mypython --enable-unicode=ucs2 > > seems to work fine, but make install fails whilst running > > Compiling > /

pyhon 2.5.1 build fails

2007-06-04 Thread Robin Becker
ata.o so I guess it's not being built for some reason. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: non standard path characters

2007-05-31 Thread Robin Becker
Tijs wrote: > Robin Becker wrote: ... > Zip files contain a bit flag for the character encoding (cp430 or utf-8), > see the ZipInfo object in module zipfile and the link (on that page) to the > file format description. > But I think some zip programs just put the path in the z

non standard path characters

2007-05-31 Thread Robin Becker
these path string conversions? Paths appear to come from all sorts of places and given the increasing use of zip file packaging it doesn't seem appropriate to rely on the current platform as a single choice for the default encoding. -- Robin Becker -- http://mail.python.org/mailman/lis

Re: Call for Ruby Champion !!

2007-05-30 Thread Robin Becker
ite me back ! > > Really appreciable for a word of mouth with our friends !!! > > Cheers, > Srini > Boy have you got the wrong vampire ;) -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: calldll for Python 2.5

2007-05-16 Thread Robin Becker
acement with ctypes? > > > Thomas > I just tried and the latest calldll compiles pretty much out of the box and so I sent him the pyd. Just more legacy code; eventually calldll won't compile and then the conversion will be forced anyhow. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

ANN: wxPython 2.8.4.0

2007-05-15 Thread Robin Dunn
base control, added in wxPython 2.7.1.1. Update to latest FloatCanvas from Chris Barker. The pywxrc tool now properly supports generating classes for menus and menubars, and also creating attributes for menus, menubars and menu items. -- Robin Dunn Software Craftsman http://wxPython.org Java give

<    1   2   3   4   5   6   7   8   9   >