Re: XML Considered Harmful

2021-09-22 Thread Pete Forman
Jon Ribbens writes: > On 2021-09-21, Pete Forman wrote: >> CSV is quite good as a lowest common denominator exchange format. I >> say quite because I would characterize it by 8 attributes and you >> need to pick a dialect such as MS Excel which sets out what those

Re: XML Considered Harmful

2021-09-21 Thread Pete Forman
> for the job in hand. > > Naturally. That's what I'm exploring. You might also like to consider HDF5. It is targeted at large volumes of scientific data and its capabilities are well above what you need. MATLAB, Octave and Scilab use it as their native format. PyTables and h2py provide Python/NumPy bindings to it. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Replacement for pygtk?

2020-09-07 Thread Pete Forman
PyQt. Most KDE apps do pull in > hundreds of packages, but I haven't had to install that many just to > use PyQt. Once you have one Qt app in a Gtk DE, or vice versa, then you have taken most of the hit for packages. I doubt that many people run pure versions of either. -- Pete Forman --

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-24 Thread Pete Forman
e point reportlab will be made 3.x only which will require more > effort. Packages like reportlab with a need to support both Python 2 and 3 end up with the worst of both worlds. The initial drive for Py3k was to drop cruft that had accumulated over the years. Mixing old and new hampers your ability to write clean 3 code. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Pete Forman
no public, searchable archive > of comp.lang.idl-pvwave available. This was the real benefit of Google > groups, from my point of view. > > There is something called "narkive", but its search function seems to > be broken, and it doesn't archive very far back in time. A couple of other mail archivers are: https://www.mail-archive.com https://marc.info -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: how to read in the newsreader

2017-10-17 Thread Pete Forman
Thomas Jollans <t...@tjol.eu> writes: > On 16/10/17 20:02, Pete Forman wrote: >> Thomas Jollans <t...@tjol.eu> writes: >> >>> On 2017-10-16 08:48, Pete Forman wrote: >>>> Andrew Z <form...@gmail.com> writes: >>>> >>&g

Re: how to read in the newsreader

2017-10-16 Thread Pete Forman
Thomas Jollans <t...@tjol.eu> writes: > On 2017-10-16 08:48, Pete Forman wrote: >> Andrew Z <form...@gmail.com> writes: >> >>> hmm. i did do that. maybe just a delay. >>> I'll see how it will go tomorrow then. Thank you gents. >>> >

Re: how to read in the newsreader

2017-10-16 Thread Pete Forman
igest then check your newsreader for a feature to expand it. Then you can read and reply as if you were getting individual posts. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Case-insensitive string equality

2017-09-01 Thread Pete Forman
? This seems to me to be rather similar to sort() and sorted(). How about giving equals() an optional parameter key, and perhaps the older cmp? Using casefold or upper or lower would satisfy many use cases but also allow Unicode or more locale specific normalization to be applied. The shortcircuiting in a character based comparison holds little appeal for me. I generally find that a string is a more useful concept than a collection of characters. +1 for using an affix in the name to represent a normalized version of the input. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread Pete Forman
eric web forum API. RFC 4642 (updated by RFC 8143) describes the use of TLS with NNTP. It enhances the connection between NNTP client and server, primarily with encryption but optionally with other benefits. Of course it does nothing to improve the content of Usenet. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Who still supports recent Python on shared hosting

2017-03-05 Thread Pete Forman
ion says 2.6. > > Is Python on shared hosting dead? > I don't need a whole VM and something I > have to sysadmin, just a small shared > hosting account. I use OpenShift from Red Hat on their free hosting package. They offer Python 3.5, 3.3 and 2.7. -- Pete Forman https://payg-petef.rhclo

Re: PEP 393 vs UTF-8 Everywhere

2017-01-21 Thread Pete Forman
e build or Python 3.3+ then all is rosy. (At this point I'm tempted to put in a winky emoji but that might push the internal representation into UCS-4.) -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 393 vs UTF-8 Everywhere

2017-01-21 Thread Pete Forman
2003). There is CESU-8 if you really need a naive encoding of UTF-16 to UTF-8-alike. py> low = '\uDC37' is only meaningful on narrow builds pre Python 3.3 where the user must do extra to correctly handle characters outside the BMP. -- Pete Forman https://payg-petef.rhcloud.com -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 393 vs UTF-8 Everywhere

2017-01-20 Thread Pete Forman
about why PEP 393 was adopted to replace the deficient old implementations rather than another approach. The implicit question is whether a UTF-8 internal representation should replace that of PEP 393. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 393 vs UTF-8 Everywhere

2017-01-20 Thread Pete Forman
Chris Kaynor <ckay...@zindagigames.com> writes: > On Fri, Jan 20, 2017 at 2:35 PM, Pete Forman <petef4+use...@gmail.com> wrote: >> Can anyone point me at a rationale for PEP 393 being incorporated in >> Python 3.3 over using UTF-8 as an internal string representation?

PEP 393 vs UTF-8 Everywhere

2017-01-20 Thread Pete Forman
as a sequence of characters, is that a reason to shoehorn the subtleties of Unicode into that model? -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: lxml and xpath(?)

2016-10-27 Thread Pete Forman
;./name/text()") That enforces a single result. The original code will detect a lack of results but if the query returns multiple results when only one is expected then it silently returns the first. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Python packages listed in PyPI

2016-07-21 Thread Pete Forman
ditional downloads is automatic in pip. If the package you are installing requires some other packages then it will install those too. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Python packages listed in PyPI

2016-07-21 Thread Pete Forman
work on Windows as that does not bundle a compiler. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: best text editor for programming Python on a Mac

2016-06-19 Thread Pete Forman
od at it its pretty amazing -- and no mouse. The other thing > about vim is that it is on every linux system, so you don't have to > load your editor if you are ssh-ing to some machine Both emacs and vim are powerful tools in the hands of experienced users but I would recommend ne

Re: Method Chaining

2016-06-19 Thread Pete Forman
Rustom Mody <rustompm...@gmail.com> writes: > On Saturday, June 18, 2016 at 5:34:30 PM UTC+5:30, Pete Forman wrote: >> Rustom Mody writes: >> [snip] >> >> One subtle difference between your two citations is that VB uses a >> leading dot. Might that lessen

Re: Method Chaining

2016-06-18 Thread Pete Forman
Joonas Liik <liik.joo...@gmail.com> writes: > On 18 June 2016 at 15:04, Pete Forman <petef4+use...@gmail.com> wrote: >> Rustom Mody <rustompm...@gmail.com> writes: >> >>> On Friday, June 17, 2016 at 2:58:19 PM UTC+5:30, Steven D'Aprano wrote: >>

Re: value of pi and 22/7

2016-06-18 Thread Pete Forman
t; with one significant digit, so the ratio of the two measurements >> should only have one significant digit. > > Iā€™m not sure how you can write ā€œ30ā€ with one digit... >>> int('U', 36) 30 -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Method Chaining

2016-06-18 Thread Pete Forman
ses a leading dot. Might that lessening of ambiguity enable a future Python to allow this? class Foo: def .set(a): # equivalent to def set(self, a): .a = a# equivalent to self.a = a Unless it is in a with statement with obj: .a = 1# equivalent to obj.a = 1 .total = .total + 1 # obj.total = obj.total + 1 -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Format a timedelta object

2016-05-27 Thread Pete Forman
ons; most people are familiar only with the date amd time formats. There are variations available but PnDTnHnMnS is probably the best. The biggest timedelta unit is days. Years and months are not appropriate. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: for / while else doesn't make sense

2016-05-24 Thread Pete Forman
Gregory Ewing <greg.ew...@canterbury.ac.nz> writes: > Pete Forman wrote: >> However I am coming from scientific measurements where 1.0 is the >> stored value for observations between 0.95 and 1.05. > > You only know that because you're keeping some extra informatio

Re: for / while else doesn't make sense

2016-05-23 Thread Pete Forman
Ian Kelly <ian.g.ke...@gmail.com> writes: > On Mon, May 23, 2016 at 12:16 PM, Pete Forman <petef4+use...@gmail.com> wrote: >> Something else which I do not think has been stated yet in this >> thread is that floating point is an inexact representation. Just >

Re: for / while else doesn't make sense

2016-05-23 Thread Pete Forman
Something else which I do not think has been stated yet in this thread is that floating point is an inexact representation. Just because integers and binary fractions have an exact correspondence we ought not to be affording them special significance. Floating point 1 is not the integer 1, it stands for

Re: RFC: name for project of a cross version disassembler, and unmarshal program

2016-05-23 Thread Pete Forman
Rustom Mody <rustompm...@gmail.com> writes: > On Monday, May 23, 2016 at 1:38:41 PM UTC+5:30, rocky wrote: >> On Monday, May 23, 2016 at 2:17:07 AM UTC-4, Pete Forman wrote: >> > rocky writes: >> > >> > > I'm looking for a good name for a r

Re: RFC: name for project of a cross version disassembler, and unmarshal program

2016-05-23 Thread Pete Forman
". See > https://github.com/rocky/python-pyxdis. > > In the past I've been told by Polish-speaking people that my names are > hard to pronounce. (If you've ever heard any Polish tongue twisters, > you'll know that this really hurts.) > > Any suggestions for a better name? relipmoc -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Pete Forman
Rustom Mody <rustompm...@gmail.com> writes: > On Tuesday, April 19, 2016 at 6:49:34 AM UTC+5:30, sohcatoa wrote: >> On Monday, April 18, 2016 at 2:14:17 PM UTC-7, Pete Forman wrote: >> > Why is it that Python continues to use a fixed width font and therefore >> >

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Pete Forman
Ian Kelly <ian.g.ke...@gmail.com> writes: > On Mon, Apr 18, 2016 at 3:14 PM, Pete Forman <petef4+use...@gmail.com> wrote: >> Why is it that Python continues to use a fixed width font and >> therefore specifies the maximum line width as a character count? >> >

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Pete Forman
with hard tabs, that is not germane to my question). The content of the line need not be bound by the rules needed to position its start. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Continuing indentation

2016-03-02 Thread Pete Forman
) > > Those feel like warping your code around the letter of the law, > without really improving anything. I beg to differ. If an expression is long or complex then splitting it up and, importantly, giving good names to the intermediates makes the code clearer. That advice is not restricted to if statements. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Sudoku solver

2015-03-26 Thread Pete Forman
|*** ***|***|418 ---+---+--- ***|*81|*** **2|***|*5* *4*|***|3** Solved, rating: dead easy Calculation took 18.006 ms 264|715|839 137|892|645 598|436|271 ---+---+--- 423|178|596 816|549|723 759|623|418 ---+---+--- 375|281|964 982|364|157 641|957|382 -- Pete Forman http://petef.22web.org/payg.html

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Pete Forman
if we adopted a non-numeric name for this product to support eXisting Python for those who were notified some years ago that Python 2 would be superseded? How about Python XP? I thought not ;-) -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: pip3.x error using LIST instead of list

2014-02-12 Thread Pete Forman
, and Linux computers for years: disable the caps-lock key My solution on Windows is to turn on Toggle Keys in the Accessibility options. That beeps when the Caps Lock (or Num or Scroll) is pressed. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Using virtualenv to bypass sudoer issues

2014-02-10 Thread Pete Forman
and activation is handled. E.g. in a fabfile myenv/bin/python myscript.py -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: pytz question: GMT vs. UTC

2014-02-02 Thread Pete Forman
. And remember to write kelvins. SI units named after people such as kelvin, watt and pascal are lower case while their symbols have a leading capital: K, W, Pa. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Guessing the encoding from a BOM

2014-01-17 Thread Pete Forman
if there was an eighth encoding scheme defined there UTF-8NB which would be UTF-8 with BOM not allowed. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Guessing the encoding from a BOM

2014-01-17 Thread Pete Forman
!!! :) Special delivery, a berm! Were you expecting one? Endian detection: Does my BOM look big in this? -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: Encoding of surrogate code points to UTF-8

2013-10-08 Thread Pete Forman
or UTF-32. -- Pete Forman -- https://mail.python.org/mailman/listinfo/python-list

Re: PyQt5 and virtualenv problem

2013-08-02 Thread Pete Forman
/PySide The Riverbank installer can install PyQt5 to your master copy of Python. You can then use the --system-site-packages flag when creating a virtualenv. The default behavior of virtualenv changed in 1.7 (2011-11-30) from including system packages to excluding them. -- Pete Forman -- http

Re: Popen and reading stdout in windows

2013-06-11 Thread Pete Forman
() and I have sent stdout to PIPE without luck. Just not sure what is the proper way to iterate over the stdout as it eventually makes its way from the buffer. You could try Sarge which is a wrapper for subprocess providing command pipeline functionality. http://sarge.readthedocs.org/ -- Pete Forman

[issue12641] Remove -mno-cygwin from distutils

2013-05-21 Thread Pete Forman
Pete Forman added the comment: Another +1 for Oscar. I've just done an install of Python 2.7.5 and had to hack cygwinccompiler.py again. I'm using mingw with gcc 4.6.2 on Windows 7. -- nosy: +Pete.Forman ___ Python tracker rep...@bugs.python.org

Re: LBYL vs EAFP

2013-02-05 Thread Pete Forman
, where the criterion depends on what your code is aiming to do with the value. BTW what if the value is Not-a-Number? ;-) -- Pete Forman -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL or something to open EXIF Metadata with Python

2013-01-10 Thread Pete Forman
https://bitbucket.org/haypo/hachoir/wiki/Home -- Pete Forman -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing ISO date/time strings - where did the parser go?

2012-09-12 Thread Pete Forman
-offset of -00:00 means UTC but local time is unknown -- Pete Forman -- http://mail.python.org/mailman/listinfo/python-list

Re: if, continuation and indentation

2010-06-09 Thread Pete Forman
variable to hold the result of the condition and then the if statement is more readable. -- Pete Forman-./\.- West Sussex, UK -./\.- http://petef.22web.net -./\.- petef4+use...@gmail.com -./\.- -- http://mail.python.org/mailman/listinfo/python-list

Re: xmlrpc slow in windows 7 if hostnames are used

2010-02-08 Thread Pete Forman
. Windows can be rather slow to process that file. -- Pete Forman-./\.- West Sussex, UK -./\.- http://petef.22web.net -./\.- petef4+use...@gmail.com -./\.- -- http://mail.python.org/mailman/listinfo/python-list

Re: optparse versus getopt

2009-02-11 Thread Pete Forman
Jython 2.5 which is in beta. Jython 2.2 needs optparse.py and textwrap.py. These can be copied from Python 2.3 or Optik 1.4.1 or later. May also need gettext.py and locale.py. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco

Re: Tkinter w.pack()?

2009-02-09 Thread Pete Forman
check out inurl: and friends. http://www.google.com/help/operators.html -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent pete.for...@westerngeco.com-./\.- the opinion of Schlumberger or http

Re: alt.possessive.its.has.no.apostrophe

2008-12-16 Thread Pete Forman
. This led to a schism between the British and the newly-independent Americans, who responded by taking the u out of colour, valour, and aluminium. I'd thought that the main schism was triggered by a tax on tea but it turns out that it was due to an apostrophe after t. ;-) -- Pete Forman

Re: alt.possessive.its.has.no.apostrophe

2008-12-16 Thread Pete Forman
. Darn Americans and their alminim ;-) Next thing you know, they'll be putting an I in TEAM.[1] It's called humour. Or humor. Or incompetence ;-) There's an 'I' in Python. There's no 'F' in Python in this thread. -- Pete Forman-./\.- Disclaimer: This post is originated

Re: int() and leading zeros in Python 2.6

2008-11-12 Thread Pete Forman
Peter Otten [EMAIL PROTECTED] writes: you're wrong. Indeed I am, sorry for the waste of time. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion

int() and leading zeros in Python 2.6

2008-11-12 Thread Pete Forman
for int([x[, radix]]) correct? I'd say that the default for radix has become 0. http://docs.python.org/library/functions.html#int -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED

Re: docpicture

2008-10-15 Thread Pete Forman
the image. AFAIK a downside is that MS are only starting to support that in IE8. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef

Re: python syntax for conditional is unfortunate

2008-09-24 Thread Pete Forman
): print '%d thing%s' % (i, ('s', '')[i==1]) for i in range(4): print '%d thing%s' % (i, 's' if i != 1 else '') -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion

Re: PEP proposal optparse

2008-09-19 Thread Pete Forman
dir of previous release for regression ' 'analysis'} parser.add_option('-q', '--quiet', action=store_false, dest='verbose', help = desc['verbose']) ... Or another approach might be like this. for ... in zip(...): parser.add_option(...) -- Pete Forman

Re: Python-URL! - weekly Python news and links (Sep 9)

2008-09-10 Thread Pete Forman
has been stretched into 6 years. ;-) http://lists.xml.org/archives/xml-dev/200302/msg00259.html -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion

Re: code of a function

2008-05-30 Thread Pete Forman
alex23 [EMAIL PROTECTED] writes: Which is very handy, like most of IPython. +1 QOTW -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger

Re: Am I missing something with Python not having interfaces?

2008-05-13 Thread Pete Forman
I would suggest that using an interface at compile time is not the only approach. Unit tests can be run on classes to check that they do indeed quack. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent

Re: best way to have enum-like identifiers?

2008-03-12 Thread Pete Forman
this, some kind of enum-like thing or somesuch. https://launchpad.net/munepy describes itself as yet another Python enum implementation. Its author is Barry Warsaw. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does

Re: Python Standardization: Wikipedia entry

2008-02-01 Thread Pete Forman
/PubliclyAvailableStandards/index.html -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef.port5.com -./\.- WesternGeco

Re: Will Python on day replace MATLAB?????????????????????????????????????????????????????

2008-02-01 Thread Pete Forman
*implement* such ideas, not just to plan for them. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef.port5.com

Re: When is min(a, b) != min(b, a)?

2008-01-25 Thread Pete Forman
of the exception will be unknown. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef.port5.com -./\.- WesternGeco. -- http

Re: When is min(a, b) != min(b, a)?

2008-01-24 Thread Pete Forman
that in Python 2.5.1 int(inf) already does. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef.port5.com -./\.- WesternGeco

Re: When is min(a, b) != min(b, a)?

2008-01-21 Thread Pete Forman
the result of an invalid operation. Using it for missing value is not in the draft standard, though it is not forbidden either. If NaNs in your data are important then you must take care in explicit and implicit comparisons to consider unordered results. -- Pete Forman-./\.- Disclaimer

Re: SimplePrograms challenge

2007-06-21 Thread Pete Forman
. Perhaps the thing to do is to add links to the tutorial for those seeking further enlightenment. If your page gets much bigger it will lose its original attraction. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does

Re: SimplePrograms challenge

2007-06-20 Thread Pete Forman
fails :-( So both the unittest and doctest examples ought to be redone to emphasize what they are doing without getting bogged down by issues of floating point representations. http://wiki.python.org/moin/SimplePrograms -- Pete Forman-./\.- Disclaimer: This post

Re: SimplePrograms challenge

2007-06-20 Thread Pete Forman
: add_money([0.13, 0.02]) Expected: 0.15 Got: 0.14999 -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef.port5

Re: SimplePrograms challenge

2007-06-20 Thread Pete Forman
of attribute (no get/set). 3) Pare some lines. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef.port5.com -./\.- WesternGeco

Re: SimplePrograms challenge

2007-06-20 Thread Pete Forman
tough squeezing all that discourse into 13 or 14 lines ;-) BankAccount allows arbitrarily large withdrawals, is that to be fixed too? -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED

Re: Python's handling of unicode surrogates

2007-04-24 Thread Pete Forman
on concatenation will conform to Unicode, whether or not there are surrogates in the strings. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http

Re: matplotlib basic question

2007-04-23 Thread Pete Forman
2.4.3. http://code.enthought.com/enthon/ -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumberger or http://petef.port5.com

Re: matplotlib basic question

2007-04-20 Thread Pete Forman
of this is to use IPython. It also needs a backend which remains responsive, WxAgg works but Tk did not last time I tried. IPython 0.8.1 is a release candidate which fixes some Windows issues in 0.8.0. If you want a stable package that has all the parts present out of the box then look at Enthought. -- Pete

Windows upgrade incomplete

2006-12-21 Thread Pete Forman
uninstalled the old Python first I'd have not seen this. I've amended my file type associations and all is now well. Someone might care to look at the installer. I've used the MSIs since 2.4. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco

Re: Coding style and else statements

2006-08-31 Thread Pete Forman
Ben Finney [EMAIL PROTECTED] writes: Why not ensure that there is one return point from the function, so the reader doesn't have to remind themselves to look for hidden return points? There will always be more potential return points in languages that support exceptions. -- Pete Forman

Re: How to measure execution time of a program

2006-06-28 Thread Pete Forman
Fredrik Lundh [EMAIL PROTECTED] writes: simplest way: t0 = time.time() You can get better resolution by using time.clock() instead of time.time(). -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does

Ovum quote about Python

2006-01-26 Thread Pete Forman
open source stuff. http://news.zdnet.co.uk/software/applications/0,39020384,39248923,00.htm -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- opinion of Schlumberger

Re: zipfile and file permissions

2006-01-23 Thread Pete Forman
Robert Kern [EMAIL PROTECTED] writes: Pete Forman wrote: I'm trying to move the building of a zip file from a shell script into python. It is mostly working but when I unzip the files the UNIX permissions are not preserved. The zip program I've been using is the standard(?) one on Linux

zipfile and file permissions

2006-01-20 Thread Pete Forman
with external_attr in ZipInfo, any pointers? -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- opinion of Schlumberger, Baker http://petef.port5.com -./\.- Hughes

Re: injecting set into 2.3's builtins?

2005-03-14 Thread Pete Forman
I've done at work. I was hoping someone else had already tried this and could report on their experience. This is what I use to allow my 2.4 code to run on 2.3. if not 'set' in dir(__builtins__): from sets import Set as set, ImmutableSet as frozenset -- Pete Forman