Re: Bitstream -- Binary Data for Humans (Posting On Python-List Prohibited)

2018-03-06 Thread Sébastien Boisgérault
Le mardi 6 mars 2018 11:15:15 UTC+1, Terry Reedy a écrit : > On 3/6/2018 3:58 AM, Sébastien Boisgérault wrote: > > Hi Lawrence, > > > > Le mardi 6 mars 2018 01:20:36 UTC+1, Lawrence D’Oliveiro a écrit : > >> On Tuesday, March 6, 2018 at 8:06:00 AM UTC+13, Séb

Re: Bitstream -- Binary Data for Humans (Posting On Python-List Prohibited)

2018-03-06 Thread Sébastien Boisgérault
Le mardi 6 mars 2018 10:23:02 UTC+1, Lawrence D’Oliveiro a écrit : > On Tuesday, March 6, 2018 at 9:59:55 PM UTC+13, Sébastien Boisgérault wrote: > > > > Le mardi 6 mars 2018 01:20:36 UTC+1, Lawrence D’Oliveiro a écrit : > > > >> On Tuesday, March 6, 2018 a

Re: Bitstream -- Binary Data for Humans

2018-03-06 Thread Sébastien Boisgérault
Le mardi 6 mars 2018 09:26:50 UTC+1, Sébastien Boisgérault a écrit : > Le mardi 6 mars 2018 00:29:25 UTC+1, Roel Schroeven a écrit : > > Sébastien Boisgérault schreef op 5/03/2018 20:05: > > > I have released bitstream, a Python library to manage binary data (at the >

Re: Bitstream -- Binary Data for Humans (Posting On Python-List Prohibited)

2018-03-06 Thread Sébastien Boisgérault
Hi Lawrence, Le mardi 6 mars 2018 01:20:36 UTC+1, Lawrence D’Oliveiro a écrit : > On Tuesday, March 6, 2018 at 8:06:00 AM UTC+13, Sébastien Boisgérault wrote: > > I have released bitstream, a Python library to manage binary data > > (at the byte or bit level), hopefully without the

Re: Bitstream -- Binary Data for Humans

2018-03-06 Thread Sébastien Boisgérault
Le mardi 6 mars 2018 00:29:25 UTC+1, Roel Schroeven a écrit : > Sébastien Boisgérault schreef op 5/03/2018 20:05: > > I have released bitstream, a Python library to manage binary data (at the > > byte or bit level), > > hopefully without the pain that this kind of

Bitstream -- Binary Data for Humans

2018-03-05 Thread Sébastien Boisgérault
://boisgera.github.io/bitstream/) and tell me what you think. Cheers, Sébastien -- https://mail.python.org/mailman/listinfo/python-list

Python problem

2015-10-09 Thread Sébastien Pinsonneault
Hi, I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me each time if I want to modify, repair or uninstall, but doesn't open. I have Windows 10 64 bits. Thx -- https://mail.python.org/mailman/listinfo/python-list

Re: An interesting beginner question: why we need colon at all in the python language?

2011-07-11 Thread Sébastien Volle
Could it have been made optional, like the trailing comma in list declaration? -- Seb 2011/7/11 Anthony Kong > Awesome! Thanks for blog post link > > Cheers > > > On Tue, Jul 12, 2011 at 12:16 AM, Thomas Jollans wrote: > >> On 07/11/2011 03:51 PM, Anthony Kong wrote: >> > Hi, all, >> > >> > La

Re: __file__ is sometimes absolute, sometimes relative

2010-10-01 Thread Sébastien Barthélemy
Hi, Arnaud, Christian, thank you for your help. I'll use abspath, it's shorter. Any idea why it's sometimes absolute, sometimes not? -- http://mail.python.org/mailman/listinfo/python-list

__file__ is sometimes absolute, sometimes relative

2010-10-01 Thread Sébastien Barthélemy
Hello, I use a data file that lies on disk in the same directory that the module which makes use of it. The data file is checked in the repository and gets installed by the distutils ``package_data`` directive, so it is in place both during development and after and install. In my program, I nee

Re: A lot of problem with pygame.mixer module!

2009-08-28 Thread Sébastien Ouellet
I had the same problem and struggled through every solution posted on the web. None actually helped but I discovered bbfreeze : http://pypi.python.org/pypi/bbfreeze/ It works as well as py2exe and there are no problems with pygame.mixer. It's easy to install and the example script at the end of the

Re: re.sub and named groups

2009-02-04 Thread Yapo Sébastien
> Hi everybody, > > I'm having a ball with the power of regular expression but I stumbled > on something I don't quite understand: > > theOriginalString = "spam:(?P.*) ham:(?P.*)" > aReplacementPattern = "\(\?P.*\)" > aReplacementString= "foo" > re.sub(aReplacementPattern , aReplacementString, the

Sybase module 0.39 released

2008-04-14 Thread Sébastien Sablé
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. The module is available here: http://downloads.sourceforge.net/python-sybase/python-sybase-0.39.tar.gz The module home pa

News from Jython world

2008-03-03 Thread Sébastien Boisgérault
Frank Wierzbicki and Ted Leung have been hired by Sun. Frank is a key Jython developer and is specifically hired to work full time on Jython, a version of the Python interpreter that runs on top of the JVM and provides full access to Java libraries. After a period where the development had slowed,

Sybase module 0.39pre1 released

2008-02-12 Thread Sébastien Sablé
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. ** This version is a pre-release not intended for production use ** The module is available here: http://downloads.source

using pyopengl 3.0.0b1 with py2exe

2008-01-16 Thread Sébastien Ramage
Hi ! How can I make an exe that use the new pyopengl 3.0.0b1 ??? I use py2exe 0.6.6 with the 3.0.0a6 version I have make it working by copying the egg and by forcing loading it at the start of the app but it doesn't work with this version py2exe correctly detect it and include it in the app but

Re: Pyro and sqlite3 problem

2007-12-02 Thread Sébastien Ramage
me error, I just recycled the objects used in the I/O operations and the problem was solved. However, that was done locally, without using Pyro, so your milleage may vary. On Dec 1, 2007 4:29 AM, Sébastien Ramage <[EMAIL PROTECTED]> wrote: > > Hi ! > >

Re: Pyro and sqlite3 problem

2007-12-02 Thread Sébastien Ramage
> Off hand -- ensure that each remote access runs the entire sequence > of "connect, cursor, execute, fetch, cursor-close, connection-close" > rather than trying to, say, create a cursor in one access and then use > that cursor on a second access... > > Or maybe create one long-run

Pyro and sqlite3 problem

2007-12-01 Thread Sébastien Ramage
nd this is thread i d 4068', 'This error occured remotely (Pyro). Remote traceback is available.') what can I do to avoid this ? I'm using Python 2.5.1,Pyro 3.7 under Windows Sébastien -- http://mail.python.org/mailman/listinfo/python-list

Re: gnosis XML objectify

2007-11-26 Thread Sébastien Boisgérault
On Nov 26, 8:46 pm, "Wang, Harry" <[EMAIL PROTECTED]> wrote: > The gnosis xml libs should not be version specific, but when I try to use > Python 2.5, I am getting "not well formed (invalid token)" errors. > > Harry Could you show us a simple example that exhibits this behavior please ? SB -- h

Re: How to use module audit-lib ?

2007-10-19 Thread Sébastien Weber
Le Fri, 19 Oct 2007 21:49:59 +0200, Jarek Zgoda a écrit : > Sébastien Weber napisał(a): > >> I've installed the python-audit-lib module but there's no >> documentation. Does someone know how to use it ? > > I don't know this package, but why did you i

Re: write whitespace/tab to a text file

2007-10-19 Thread Sébastien Weber
Le Fri, 19 Oct 2007 07:33:29 -0700, dirkheld a écrit : > Hi, > > I would l like to write some data to a text file. I want to write the > data with whitespace or tabs in between so that I create tabular columns > like in a spreadsheet. How can I do this in python. (btw, I'm new to > python) > > n

How to use module audit-lib ?

2007-10-19 Thread Sébastien Weber
Hello, I've installed the python-audit-lib module but there's no documentation. Does someone know how to use it ? Thank's in advance, SW -- http://mail.python.org/mailman/listinfo/python-list

Pyinotify : which user ?

2007-10-18 Thread Sébastien Weber
Hello, I'm actually writing an application with pyinotify which watchs a directory. Pyinotify lets me know the events (access, modify, suppression, etc.) on and in the directory, but not the users who are responsable of them. Does someone know a library which could give me that information (who'

Re: Hot subject: a good python editor and/or IDE?

2007-08-19 Thread Buchoux Sébastien
Bjoern Schliessmann wrote: > Sébastien wrote: > >> I am currently using Eclipse+PyDev when developping Python >> projects but I lack a fast, simple editor for tiny bit of scripts. >> So here is my question: what is, for you, the current best ( but >> still kind

Hot subject: a good python editor and/or IDE?

2007-08-19 Thread Sébastien
for a linux compatible editor. Cheers, Sébastien -- http://mail.python.org/mailman/listinfo/python-list

Re: How to say $a=$b->{"A"} ||={} in Python?

2007-08-17 Thread Sébastien Buchoux
s, > Geoffrey > > One solution I often use in such cases: try: a = b[k] except KeyError: #or except IndexError: if b is a list/tuple and not a dict a = {} b[k] = a a['A'] = 1 Indeed, exceptions are handled faster than "if/else" loops. As it was mentionn

Re: searching algorithm

2007-05-10 Thread Sébastien Ramage
I have made a script that search anagram based on the ODS file ( call OSW in english, Official Scrabble Words) it load a file that contain 369085 words (one word per line) I create a dictionnary and store word into using the length of the word as key example : mydict[2] contain a list of word with

Sybase module 0.38 released

2007-05-03 Thread Sébastien Sablé
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. The module is available here: http://downloads.sourceforge.net/python-sybase/python-sybase-0.38.tar.gz The module home p

SAMBA-PYTHON ???

2007-03-04 Thread WEBER Sébastien
Hello, (I'm french and I speak english like a spanish cow : sorry.) Does someone know how to use the samba-python tdb.so module ? I've been looking for information about this on Google for 3 days and I've found not a word. The only functions I can use are 'open()' and 'first_key()' : not enough.

Sybase module 0.38pre2 released

2007-02-02 Thread Sébastien Sablé
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. The module is available here: http://downloads.sourceforge.net/python-sybase/python-sybase-0.38pre2.tar.gz The module ho

Re: XLM prolgoue

2007-01-17 Thread Sébastien Boisgérault
fscked wrote: > How do I go about creating the XML prologue like I want it to be? > Specifically, I am trying to add encoding and some namespace stuff. The XML declaration and the DTD that may appear in the prolog are optional. [22]prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? [23]XMLD

Re: ElementTree and utf-16 encoding

2006-12-19 Thread Sébastien Boisgérault
On Dec 19, 10:49 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Sébastien Boisgérault wrote: > > ET being ElementTree in the following code, could anyone explain > > why it fails ?I'm afraid the standard serializer in 1.2 only supports > > ASCII-compatible >

ElementTree and utf-16 encoding

2006-12-19 Thread Sébastien Boisgérault
Hi, ET being ElementTree in the following code, could anyone explain why it fails ? >>> xml = ET.tostring(ET.Element("root"), "UTF-16") >>> xml "\n<\xff\xfer\x00o\x00o\x00t\x00 />" >>> ET.fromstring(xml) Traceback (most recent call last): ... xml.parsers.expat.ExpatError: encoding specified in X

Re: Validate XML against a set of XSD files, with Python

2006-12-15 Thread Sébastien Boisgérault
Stefan Behnel wrote: > RelaxNG support in libxml2 is pretty much perfect, BTW. The *potential* issue I mentioned before with Relax NG validation in libxml2 does *NOT* exist. I double-checked with Jing and my RelaxNG file was indeed incorrect ... (the "recursive reference outside elements" kind

Re: Validate XML against a set of XSD files, with Python

2006-12-13 Thread Sébastien Boisgérault
On Dec 13, 2:28 pm, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > > Fast google query, uncheked, leads to: > > > - XSV:http://www.ltg.ed.ac.uk/~ht/xsv-status.htmlI tried this before. > > Unfortunately, xsv is not officially supported on > my system (FreeBSD 6.1) :-(> - libxml :http://codespeak.net

Re: Sybase module 0.38pre1 released

2006-12-13 Thread Sébastien Sablé
By the way, I forgot to say that new releases can now be downloaded from this page: https://sourceforge.net/project/showfiles.php?group_id=184050 regards -- Sébastien Sablé 2006/12/12, Sébastien Sablé <[EMAIL PROTECTED]>: > WHAT IS IT: > > The Sybase module provides a Python i

Re: Validate XML against a set of XSD files, with Python

2006-12-12 Thread Sébastien Boisgérault
Laszlo Nagy wrote: > Do you know an open source lib that can do $subject? Fast google query, uncheked, leads to: - XSV: http://www.ltg.ed.ac.uk/~ht/xsv-status.html - libxml : http://codespeak.net/lxml/ Cheers, SB -- http://mail.python.org/mailman/listinfo/python-list

Sybase module 0.38pre1 released

2006-12-12 Thread Sébastien Sablé
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. MAJOR CHANGES SINCE 0.37: * This release works with python 2.5 * It also works with sybase 15 * It works with 64bits cli

Re: Python Plugin for Web Browser

2006-12-12 Thread Sébastien Ramage
pour ceux que ça intéresse http://base.google.com/base/a/1438658/D18001067256043490325 -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree, XML and Unicode -- C0 Controls

2006-12-11 Thread Sébastien Boisgérault
On Dec 11, 4:51 pm, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > Sébastien Boisgérault wrote: > > Could anyone comment on the rationale behind > > the current behavior ? Is it a performance issue, > > the search for non-valid unicode code points being > &g

ElementTree, XML and Unicode -- C0 Controls

2006-12-11 Thread Sébastien Boisgérault
Hi all, The unicode code points in the -001F range -- except newline, tab, carriage return -- are not legal XML 1.0 characters. Attempts to serialize and deserialize such strings with ElementTree will fail: >>> elt = Element("root", char=u"\u") >>> xml = tostring(elt) >>> xml '' >>> from

Re: Python Plugin for Web Browser

2006-12-06 Thread Sébastien Ramage
> Par contre, je pense qu'il existe une autre démarche, qui consiste à > générer, à la volée, en Python, des sortes d'applets java/javascript. Il est clair que mon projet est un peu plus complexe mais je l'espère plus ambitieux aussi Le but étant vraimment de faire des applets en Python et non J

Re: Python Plugin for Web Browser

2006-12-06 Thread Sébastien Ramage
oui COM je connais et ça fonctionne bien mais ce n'est pas portable d'un navigateur à l'autre et ce n'est pas ce que je cherche à faire. Mon but serait d'avoir un plugin qui permettrait d'embarquer des applets écrient en python dans les pages html à l'image de Java ou Flash, etc Pour le moment j'e

Re: Python Plugin for Web Browser

2006-12-06 Thread Sébastien Ramage
des exemples de plugins pour IE oui mais qui ne sont pas embarqué dans une page Web je souhaiterai créer qqchose qui ressemble vraiment à Java VM ou Flash J'ai trouvé un début de réponse pour Firefox en télécharger le GeckoSDK mais je n'arrive pas à compiler les exemples pour le moment... merci

Python Plugin for Web Browser

2006-12-05 Thread Sébastien Ramage
I've an idea and I've made some search but I found nothing really interesting. There is somebody who have (or can help me to) try to developp a python plugin for web browser just like java ?? I search an how-to for creating a plugin for Firefox and only find how create extension... I've find some

Re: Pydev configuration

2006-11-24 Thread Sébastien Boisgérault
On Nov 24, 9:42 pm, tool69 <[EMAIL PROTECTED]> wrote: > Sébastien Boisgérault a écrit :> Hi, > > > Did anyone managed to change the code font family/size > > in Pydev (Python Editor Plugin for Eclipse) ? I found how > > to change the color mapping (Windows/Prefer

Pydev configuration

2006-11-24 Thread Sébastien Boisgérault
Hi, Did anyone managed to change the code font family/size in Pydev (Python Editor Plugin for Eclipse) ? I found how to change the color mapping (Windows/Preference/Pydev) but did not found the font setting. Cheers, SB -- http://mail.python.org/mailman/listinfo/python-list

Re: About alternatives to Matlab

2006-11-17 Thread Sébastien Boisgérault
On Nov 16, 10:46 pm, "John Henry" <[EMAIL PROTECTED]> wrote: > Bill Gates will have you jailed! :-) > > On a more serious note, is there any alternative to Simulink though? Ptolemy II. Java stuff in the core but components may be written in Python http://ptolemy.eecs.berkeley.edu/ptolemyII/ htt

Re: ANN compiler2 : Produce bytecode from Python 2.5 Abstract Syntax Trees

2006-10-28 Thread sébastien martini
>> 17 FOR_ITER13 (to 33) 20 STORE_NAME 2 (a) 23 LOAD_NAME0 (_[1]) 26 LOAD_NAME2 (a) 29 LIST_APPEND 30 JUMP_ABSOLUTE 17 >> 33

Re: Max-plus library

2006-10-17 Thread Sébastien Boisgérault
Robert Kern wrote: > Martin Manns wrote: > > Hello, > > > > Is there any library that allows employing max-plus dioids in > > python (e.g. based on numpy/scipy)? > > Google says "no" and I haven't heard of any, so I imagine that there aren't. > There might be something buried in some of the control

Re: How Build VTK for Python 2.5 under Windows?

2006-10-03 Thread Sébastien Ramage
I've install MS Visual C++ toolkit 2003 and cmake but I don't really know how it work. there's somebody who can compile VTK for python 2.5 under windows for me ? thank you (And sorry for my english, I'm French) Seb Sébastien Ramage wrote: > Hello, > I'm runnin

How Build VTK for Python 2.5 under Windows?

2006-10-03 Thread Sébastien Ramage
Hello, I'm running on Windows and I want to test VTK but I don't understand how build it Somebody can help me to build VTK for Python 2.5 under Windows? (or Python 2.43 if python 2.5 is a problem) I have no C compiler but I can install one if it's free. Thank you Seb -- http://mail.python.org

Re: ElementTree and proper identation?

2006-09-27 Thread Sébastien Boisgérault
John Salerno a écrit : > I've been doing a little studying of ElementTree and it doesn't seem > very satisfactory for writing XML files that are properly > formatted/indented. I saw on the website that there is an > indent/prettyprint function, but this isn't listed in the Python docs > and I did

Re: PyOpenGL pour python 2.5 ???

2006-09-25 Thread Sébastien Ramage
good news ! thank for links to the blog, very usefull now I have to wait seb -- http://mail.python.org/mailman/listinfo/python-list

Re: PyOpenGL pour python 2.5 ???

2006-09-25 Thread Sébastien Ramage
(thinking recompilation is the only things) Somebody can help me? Seb Bruno Desthuilliers a écrit : > Sébastien Ramage wrote: > > Bonjour à tous, > > > Hi Sébastien. > > Wrong newsgroup, I'm afraid - either repost here in english, or post to > fr.comp.lang.python...

PyOpenGL pour python 2.5 ???

2006-09-25 Thread Sébastien Ramage
Bonjour à tous, Dans la folie j'ai installé le nouveau python, impatient de voir les nouveautés mais je pense que j'ai été un peu rapide car j'ai voulu utiliser pyOpenGL et là problème il n'existe pas pour python 2.5 ?!!! de plus il semble que pyopengl est été abandonné depuis 2005 ? plus rien ne

Re: ElementTree and Unicode

2006-08-02 Thread Sébastien Boisgérault
Martin v. Löwis wrote: > Sébastien Boisgérault schrieb: > > I am trying to embed an *arbitrary* (unicode) strings inside > > an XML document. Of course I'd like to be able to reconstruct > > it later from the xml document ... If the naive way to do it does > > no

Re: ElementTree and Unicode

2006-08-02 Thread Sébastien Boisgérault
Richard Brodie wrote: > "Sébastien Boisgérault" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >>>> element = Element("string", value=u"\x00") > > I'm not as familiar with elementtree.ElementTree as I

ElementTree and Unicode

2006-08-02 Thread Sébastien Boisgérault
I guess I am doing something wrong ... Any clue ? >>> from elementtree.ElementTree import * >>> element = Element("string", value=u"\x00") >>> xml = tostring(element) >>> XML(xml) Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/site-packages/elementtree/Eleme

Re: Python for Embedded Systems?

2006-07-15 Thread Sébastien Boisgérault
Jack a écrit : > If Python is not the best candidate for embedded systems because > of the size, what (scripting) language would you recommend? > > PHP may fit but I don't quite like the language. Anything else? > Loa is small but it does not seem to be powerful enough. You mean Lua ? Not powerfu

Re: Python strings outside the 128 range

2006-07-13 Thread Sébastien Boisgérault
Fredrik Lundh wrote: > in the iso-8859-1 character set, the character é is represented by the code > 0xE9 (233 in decimal). there's no mapping going on here; there's only one > character in the string. how it appears on your screen depends on how you > print it, and what encoding your terminal

Python strings outside the 128 range

2006-07-13 Thread Sébastien Boisgérault
Hi, Could anyone explain me how the python string "é" is mapped to the binary code "\xe9" in my python interpreter ? "é" is not present in the 7-bit ASCII table that is the default encoding, right ? So is the mapping "é" -> "\xe9" portable ? (site-)configuration dependent ? Can anyone have somet

Re: language design question

2006-07-10 Thread Sébastien Boisgérault
Steven Bethard a écrit : > The advantage of a functional form over a method shows up when you write > a function that works on a variety of different types. Below are > implementations of "list()", "sorted()" and "join()" that work on any > iterable and only need to be defined once:: > > [... skip

Re: Numerics, NaNs, IEEE 754 and C99

2006-06-14 Thread Sébastien Boisgérault
Jeez, 12 posts in this IEEE 754 thread, and still no message from uncle timmy ? ;) Please, we need enlightenment here and *now* :) platform-dependent accident'ly yours, SB -- http://mail.python.org/mailman/listinfo/python-list

Re: capture video from camera

2006-06-06 Thread Sébastien Boisgérault
aljosa wrote: > i searched on google and found http://videocapture.sourceforge.net/ > before i posted here. yup. > videocapture has no docs With the API docs in the ".zip" and the examples provided, you should be able to handle it.I did :) > and doesn't provide additional options like > motion

Re: (mostly-)POSIX regular expressions

2006-05-29 Thread Sébastien Boisgérault
John Machin wrote: > On 29/05/2006 7:46 AM, Sébastien Boisgérault wrote: > > Paddy a écrit : > > > >> maybe this: http://www.pcre.org/pcre.txt and ctypes might work for you? > > > > Well finally, it doesn't fit. What I need is a "longest match" po

Re: (mostly-)POSIX regular expressions

2006-05-28 Thread Sébastien Boisgérault
Paddy a écrit : > maybe this: http://www.pcre.org/pcre.txt and ctypes might work for you? Well finally, it doesn't fit. What I need is a "longest match" policy in patterns like "(a)|(b)|(c)" and NOT a "left-to-right" policy. Additionaly, I need to be able to obtain the matched ("captured") subst

Re: (mostly-)POSIX regular expressions

2006-05-28 Thread Sébastien Boisgérault
Very good hint ! I wouldn't have found it alone ... I have to study the doc, but the "THE DFA MATCHING ALGORITHM" may do what I need Obviously, I didn't expect the Perl-Compatible Regular Expressions to implement "an alternative algorithm, provided by the pcre_dfa_exec() function, that operates in

(mostly-)POSIX regular expressions

2006-05-27 Thread Sébastien Boisgérault
Hi, I'm searching for a POSIX 1003.2 compatible regular expression engine. The Python binding "pregex" by Neal Becker may do the job, but I did not manage to download it as the original link ftp://ftp.ctd.comsat.com/pub/ seems dead. Does any old-timer () have a copy of this package ? Cheers, SB

Re: Any pointers/advice to help learn CPython source?

2006-05-19 Thread sébastien
want to learn, because instead it can be interesting to read the compiler module or to look at pypy source code. Obviously if your motivations are to understand some internals of CPython you want to study CPython ! lol -- sébastien http://seb.dbzteam.com -- http://mail.python.org/mailman/lis

Re: Calling Python from Matlab

2006-04-23 Thread Sébastien Boisgérault
> Also, can you elaborate on what (if anything) it is about Matlab that > you feel you can't replicate in Python? Are you aware of matplotlib and > numpy? The features provided by some matlab 'toolboxes' (libraries in matlab-speak) are lacking, and are beyond what numpy + scipy may provide. Some

Re: multiple inheritance

2006-02-15 Thread Sébastien Boisgérault
Thomas Girod a écrit : > Hi. > > I think I'm missing something about multiple inheritance in python. > > I've got this code. > > class Foo: > def __init__(self): > self.x = "defined by foo" > self.foo = None > > class Bar: > def __init__(self): > self.x = "defined

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-23 Thread Sébastien Boisgérault
Robert Kern wrote: > Sébastien Boisgérault wrote: > > Robert Kern wrote: > > > >>Sébastien Boisgérault wrote: > >> > >>>By the way, I tried numpy 0.9.4 10 minutes ago and guess > >>>what ? 'eigenvalue' is broken too ... (hangs fo

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-23 Thread Sébastien Boisgérault
[EMAIL PROTECTED] wrote: > Robert Kern wrote: > > Sébastien Boisgérault wrote: > > > > > By the way, I tried numpy 0.9.4 10 minutes ago and guess > > > what ? 'eigenvalue' is broken too ... (hangs forever) > > > > On what platform?

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-23 Thread Sébastien Boisgérault
Robert Kern wrote: > Sébastien Boisgérault wrote: > > > By the way, I tried numpy 0.9.4 10 minutes ago and guess > > what ? 'eigenvalue' is broken too ... (hangs forever) > > On what platform? Linux, Mandriva 2006 (gcc 4.0.1, etc.) > Are you linking against a

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-22 Thread Sébastien Boisgérault
Robert Kern wrote: > J wrote: > > I will just jump in an use NumPy. I hope this one will stick and evolve > > into the mother of array packages. > > How stable is it ? For now I really just need basic linear algebra. > > i.e. matrix multiplication, dot, cross etc Same concern for me. I discovere

Re: How run web software *locally* easily?

2006-01-06 Thread sébastien
for example like that: python -m CGIHTTPServer -- http://mail.python.org/mailman/listinfo/python-list

Re: Abstract Methods & Abstract Class

2005-10-20 Thread sébastien
or [...] def method(self): assert not "must be overrided" -- http://mail.python.org/mailman/listinfo/python-list

Re: Continuous system simulation in Python

2005-10-10 Thread Sébastien Boisgérault
so I've heard that Scilab was developed in Fortran in a way which > make it rigid and that the sources are poorly documented, not a good > sign for an open source software (and Scilab isn't 'Free' for the FSF). > > Regards, > > > *** REPLY SEPARATOR **

Re: Continuous system simulation in Python

2005-10-08 Thread Sébastien Boisgérault
Simulink is a framework widely used by the control engineers ... It is not *perfect* but the ODEs piece is probably the best part of the simulator. Why were you not convinced ? You may also have a look at Scicos and Ptolemy II. These simulators are open-source ... but not based on Python. Cheers

Re: sys.stdout

2005-09-09 Thread Sébastien Boisgérault
Jorgen Grahn a écrit : > On 9 Sep 2005 03:40:58 -0700, Sébastien Boisgérault <[EMAIL PROTECTED]> wrote: > > > > Fredrik Lundh wrote: > >> Sébastien Boisgérault wrote: > >> > >> > Thanks for your answer. The execution of your example leads to

Re: sys.stdout

2005-09-09 Thread Sébastien Boisgérault
Fredrik Lundh a écrit : > > what "python shell" are you using, and what platform are you running > > it on? here's what I get on a standard Unix console: > > > import sys > sys.stdout.write("") > > >>> sys.stdout.write("\n") > > > sys.stdout.write("\n") >

Re: sys.stdout

2005-09-09 Thread Sébastien Boisgérault
Fredrik Lundh wrote: > Sébastien Boisgérault wrote: > > > Thanks for your answer. The execution of your example leads to a > > 'aaa' display during 2 secs, before it is erased by the prompt. > > > > This behavior is standard ? The standard output is no

Re: sys.stdout

2005-09-09 Thread Sébastien Boisgérault
Robert Kern wrote: > Sébastien Boisgérault wrote: > > Tiissa, > > > > Thanks for your answer. The execution of your example leads to a > > 'aaa' display during 2 secs, before it is erased by the prompt. > > > > This behavior is standard ? The st

Re: sys.stdout

2005-09-09 Thread Sébastien Boisgérault
Tiissa, Thanks for your answer. The execution of your example leads to a 'aaa' display during 2 secs, before it is erased by the prompt. This behavior is standard ? The standard output is not supposed to *concatenate* the 'aaa' and the '>>>' ? SB -- http://mail.python.org/mailman/listinfo/pyt

sys.stdout

2005-09-09 Thread Sébastien Boisgérault
ys.stdout.flush() [...nothing...] Have you ever seen sys.stdout behave like that ? Any idea what is wrong with my Python2.4 install or Linux (Mandrake 10.0) system ? Cheers, Sébastien -- http://mail.python.org/mailman/listinfo/python-list

Jython from CVS

2005-07-03 Thread Sébastien Ramage
Somebody can help me to recompile Jython from the CVS file ? thank --- other question : No python browser plugins avaible? Seb -- http://mail.python.org/mailman/listinfo/python-list

C parser with spark

2005-07-03 Thread Sébastien Boisgérault
Hi, Has anybody already implemented a full ANSI C parser with John Aycock's spark module ? (spark : http://pages.cpsc.ucalgary.ca/~aycock/spark/) Cheers, SB -- http://mail.python.org/mailman/listinfo/python-list

Re: What's wrong with this code?

2005-07-02 Thread Sébastien Boisgérault
Nathan Pinno a écrit : > Hi all, > > What's wrong with the following code? It says there is name error, that > random is not defined. How do I fix it? Add "import random" at the top of your file Cheers, SB > # Plays the guessing game higher or lower. > # Originally written by Josh Cogli

Newbee question : List of packages

2005-06-01 Thread Sébastien V.
Hello, I'm quite new in Python and I discover every day very interesting new packages in this newsgroup : Is there somewhere on the web a list (as complete as possible) in which main features of external packages are listed ? Sebastien -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to understand pickle.loads withou class declaration

2005-05-29 Thread Sébastien Boisgérault
Even class A: pass should do the trick. Only the instance attributes are saved by a pickle, not the methods or the class itself. The unpickler tries to merge the saved data and the class/method info that is not saved to recreate the fully functional instance... but of course this info

Re: ControlDesk Automation in dSpace

2005-05-29 Thread Sébastien Boisgérault
Crispen a écrit : > I am having trouble using the ControlDesk automation libraries in > python. In particluiar running the automation in a thread. My code is > as follows, is keeps coming up with this strange error. Any help would > be great. > > Crispen > > import cdacon > from time import sleep >

Re: lambda a plusieurs arguments

2005-05-27 Thread Sébastien Boisgérault
Nico, [EMAIL PROTECTED] seems to be a good place to post questions related to Python if you intend to use french. -> http://www.aful.org/wws/arc/python/ (( des questions rédigées en français sont plus à leur place sur des liste de diffusions nationales ... )) Regards, SB -- http:

Re: embedded Python

2005-05-25 Thread Sébastien Ramage
PROBLEME RESOLU j'ai résolu le problème en supprimant le commutateur \GZ de le link http://support.microsoft.com/kb/q191669/ -- http://mail.python.org/mailman/listinfo/python-list

embedded Python

2005-05-25 Thread Sébastien Ramage
bonjour, après bien du mal j'ai réussi à créer une dll pour 4e Dimension maintenant j'aurai voulu intégré Python à cette dll j'ai voulu faire simple pour le moment en utilisant l'exemple donné dans la doc exemple : #include int main(int argc, char *argv[]) { Py_Initialize(); PyRun_SimpleSt

Re: Python on a public library computer

2005-05-18 Thread Jean-Sébastien Guay
exe? (yes, I have seen so-called "locked down" machines with a "program black list" that were that stupid) Worth a try! :-) And then you could rename ssh.exe to explorer.exe, perl.exe to java.exe or something funny like that... J-S -- _

Re: NaN support etc.

2005-05-18 Thread Sébastien Boisgérault
Martin v. Löwis a écrit : > Andreas Beyer wrote: > > How do I find out if NaN, infinity and alike is supported on the current > > python platform? > > To rephrase Sebastian's (correct) answer: by > > 1. studying the documentation of the CPU vendor > 2. studying the documentation of the compiler ve

Re: NaN support etc.

2005-05-18 Thread Sébastien Boisgérault
Search for: + fpconst / PEP 754 + Tim Peters IEEE 754 accident """what-the-world-needs-now-is-nannanny.py-ly y'rs"" - SB -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem listing services with wmi

2005-05-18 Thread Jean-Sébastien Guay
sterday, with the same results. It would seem (from what I can understand) that c.ExecQuery() just makes a list of proxy objects, and that when you call Count on the set, it has to create them all for real and that's where it fails when reaching the "bad" service. Thanks again, loo

  1   2   >