enable-framework Vs. Naught

2017-01-09 Thread André Lemos
ution, I simply get a non inspiring: Fatal Python error: PyThreadState_Get: no current thread I am using python-config to get my flags on both the examples, but I simply cannot get it to run (although it compiles fine) on a *non* enabled Framework installation. Thoughts/Help? -- André Lemos -

Re: empty clause of for loops

2016-03-19 Thread André Roberge
t's the most Pythonic way of doing this? > > Best, > Sven for x in my_iterable: # do something if not my_iterable: # do something else André -- https://mail.python.org/mailman/listinfo/python-list

Re: [Still off-top] Physics [was Requests author discusses MentalHealthError exception]

2016-03-04 Thread André Roberge
e) binding energy is DEFINED as the difference between the (energy equivalent) sums of the individual masses of the consistuents and that of the bound state. === Now, could we forget about Physics and go back to discussions related to Python? André Roberge > > -- > Oscar -- https://mail.python.org/mailman/listinfo/python-list

Re: variable vs. object

2015-11-29 Thread André Roberge
quot; which is an integer. If you do: a = 10 b = a a = "hello" b will be 10. b was just another name given to object 10 to which the name "a" was referring to at that point, even though we decided later that a should refer to the string "hello" (which is an object). André -- https://mail.python.org/mailman/listinfo/python-list

Re: python PEP suggestion

2015-11-08 Thread André Roberge
int, I can, and > will, clean it up if needed, I am just trying to throw it against the wall at > this point to see if it resonates... (or if it falls flat and goes "splat" > ). > > Thoughts? > > Dan Strohl > Snip You might want to post this to the python-ideas

Re: Can anybody explain the '-' in a 2-D creation code?

2015-06-25 Thread André Roberge
On Thursday, 25 June 2015 22:07:42 UTC-3, fl wrote: > Hi, > > I read Ned's tutorial on Python. It is very interesting. On its last > example, I cannot understand the '_' in: > > > > board=[[0]*8 for _ in range(8)] > > > I know '_' is the precious answer, but it is still unclear what it is >

Re: An object is an instance (or not)?

2015-01-27 Thread André Roberge
On Tuesday, 27 January 2015 17:43:38 UTC-4, Mario Figueiredo wrote: > In article , > andre.robe...@gmail.com says... > > > > It is appropriate to refer to an instance as an object. It might not > > be appropriate to refer to an object as an instance ... but Python > > does not do so as your ex

Re: An object is an instance (or not)?

2015-01-27 Thread André Roberge
On Tuesday, 27 January 2015 17:06:50 UTC-4, Mario Figueiredo wrote: > In article <80a9f882-6b13-45a7-b514-8c47b3a4c...@googlegroups.com>, > andre.robe...@gmail.com says... > > > > You keep writing "an object is not an instance", making statements > > such as "the terminology keeps indicating tha

Re: An object is an instance (or not)?

2015-01-27 Thread André Roberge
On Tuesday, 27 January 2015 16:12:47 UTC-4, Mario Figueiredo wrote: > This is a follow up from a previous discussion in which it is argued > that the following code produces the correct error message terminology, > considering that in Python an object is also an instance. > > >>> class Sub:

Re: How to "wow" someone new to Python

2015-01-21 Thread André Roberge
169923885626670049071596826438162146859296389521753229915608941463976156518286253697920827223758251185210916864 >>> b = fac(102) >>> b 961446671503512660926865558697259548455355905059659464369444714048531715130254590603314961882364451384985595

Re: How to "wow" someone new to Python

2015-01-21 Thread André Roberge
y. Then I'd use Crunchy to launch an external app (perhaps a tkinter program), etc. As I said at the beginning, Crunchy has not been updated in *years* ... more or less since the IPython and Sage notebooks came along... André -- https://mail.python.org/mailman/listinfo/python-list

Re: How to run a python script with functions

2015-01-20 Thread André Roberge
On Tuesday, 20 January 2015 17:11:58 UTC-4, faiz@gmail.com wrote: > Hi > > I have a file with a python scripts that has many functions in it. To run the > script I did the following: > 1. $ python (to initiate python, using the python command) > 2. >>> import file_name (without .py) > 3. >>>

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-13 Thread André Roberge
#x27;m thinking of having the new version return a datetime object automatically. André > > On Saturday, January 10, 2015 at 1:02:30 AM UTC, André Roberge wrote: > > On Friday, 9 January 2015 19:09:15 UTC-4, stephen...@gmail.com wrote: > > > On Wednesday, December 31, 201

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-09 Thread André Roberge
On Friday, 9 January 2015 19:09:15 UTC-4, stephen...@gmail.com wrote: > On Wednesday, December 31, 2014 at 4:24:50 PM UTC-6, André Roberge wrote: > > EasyGUI_Qt version 0.9 has been released. This is the first announcement > > about EasyGUI_Qt on this list. > > > >

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-09 Thread André Roberge
On Friday, 9 January 2015 19:09:15 UTC-4, stephen...@gmail.com wrote: > Very nice, thanks. > > One issue is the format returned for the calendar selection. For today, the > string returned is "Fri Jan 9 2015". My script needs to convert the date to a > datetime.date, and having the month retur

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-03 Thread André Roberge
On Saturday, 3 January 2015 04:52:21 UTC-4, wxjm...@gmail.com wrote: > Le vendredi 2 janvier 2015 20:11:25 UTC+1, André Roberge a écrit : > > On Friday, 2 January 2015 06:29:37 UTC-4, wxjm...@gmail.com wrote: > > > Le mercredi 31 décembre 2014 23:24:50 UTC+1, And

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread André Roberge
On Friday, 2 January 2015 16:22:21 UTC-4, Emil Oppeln-Bronikowski wrote: > On Fri, Jan 02, 2015 at 11:53:26AM -0800, André Roberge wrote: > > How could it then be used? > > Maybe I failed to explain myself fully. What I meant to say is building a > distribution-ready program

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread André Roberge
On Friday, 2 January 2015 15:22:22 UTC-4, Emil Oppeln-Bronikowski wrote: > On Fri, Jan 02, 2015 at 11:11:05AM -0800, André Roberge wrote: > > Sorry if this was asked before: have you tried building a portable version > using py2exe/Nuitka/etc? I always hit a wall when it comes

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread André Roberge
On Friday, 2 January 2015 06:29:37 UTC-4, wxjm...@gmail.com wrote: > Le mercredi 31 décembre 2014 23:24:50 UTC+1, André Roberge a écrit : > > EasyGUI_Qt version 0.9 has been released. This is the first announcement > > about EasyGUI_Qt on this list. snip > I toyed and I spent

[ANN] EasyGUI_Qt version 0.9

2014-12-31 Thread André Roberge
some unicode problems ...) using Python 2.7. More information can be found at http://easygui-qt.readthedocs.org/en/latest/index.html Feedback is most welcome, including reporting bugs to https://github.com/aroberge/easygui_qt/issues Happy 2015 everyone, André Roberge -- https://mail.python.org/ma

Re: problems with Methods in Python 3.4.2

2014-12-18 Thread André Roberge
On Thursday, 18 December 2014 13:28:33 UTC-4, Marcus Lütolf wrote: > Hello Dears, > 1)I am trying to do this: > > >>> dir(_builtins_) You need two underscore characters on each sides: dir(__builtins__) > > I am getting this: > Traceback (most recent call last): > File "", line 1, in >

Re: About some problem

2014-01-03 Thread André Malo
"''' raises a TypeError, though. nd -- sub the($){+shift} sub answer (){ord q [* It is always 42! *] } print the answer # André Malo # http://pub.perlig.de/ # -- https://mail.python.org/mailman/listinfo/python-list

Re: Why is regex so slow?

2013-06-18 Thread André Malo
* André Malo wrote: > * Johannes Bauer wrote: > >> The pre-check version is about 42% faster in my case (0.75 sec vs. 1.3 >> sec). Curious. This is Python 3.2.3 on Linux x86_64. > > A lot of time is spent with dict lookups (timings at my box, Python 3.2.3) > in you

Re: Why is regex so slow?

2013-06-18 Thread André Malo
* Johannes Bauer wrote: > The pre-check version is about 42% faster in my case (0.75 sec vs. 1.3 > sec). Curious. This is Python 3.2.3 on Linux x86_64. A lot of time is spent with dict lookups (timings at my box, Python 3.2.3) in your inner loop (150 times...) #!/usr/bin/python3 import re pa

Re: object.enable() anti-pattern

2013-05-11 Thread André Malo
For running the new executable in a subprocess fork() and exec() are needed. I think, that's a bad example. These APIs are actually well-designed. nd -- Gefunden auf einer "Webdesigner"-Seite: > Programmierung in HTML, XML, WML, CGI, FLASH < # André Mal

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

2012-09-08 Thread André Malo
* Roy Smith wrote: > The third is that I never use methods I can't figure out how to > pronounce. here: strip'time nd -- Flhacs wird im Usenet grundsätzlich alsfhc geschrieben. Schreibt man lafhsc nicht slfach, so ist das schlichtweg hclafs. Hingegen darf man rihctig ruhig rhitcgi schreiben, we

Re: looking for a neat solution to a nested loop problem

2012-08-06 Thread André Malo
* Tom P wrote: > consider a nested loop algorithm - > > for i in range(100): > for j in range(100): > do_something(i,j) > > Now, suppose I don't want to use i = 0 and j = 0 as initial values, but > some other values i = N and j = M, and I want to iterate through all > 10,000 value

Re: multiprocessing: apply_async with different callbacks

2012-07-17 Thread André Panisson
On 07/17/2012 11:44 PM, André Panisson wrote: Hi all, I'm having a strange behavior when executing the following script: --- import multiprocessing def f(i): return i p = multiprocessing.Pool() for i in range(20): def c(r): print r, i p.apply_

multiprocessing: apply_async with different callbacks

2012-07-17 Thread André Panisson
Regards, André smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Gotcha's?

2012-04-08 Thread André Malo
* Grzegorz Staniak wrote: > On 06.04.2012, rusi wroted: > >> There should be one-- and preferably only one --obvious way to do it. > > Then again, practicality beats purity. Yes. If you ever grepped for, say, the usage of dictionary keys in a bigger application, you might agree, that having mu

Re: Python Gotcha's?

2012-04-06 Thread André Malo
* Steven D'Aprano wrote: > On Thu, 05 Apr 2012 23:08:11 +0200, André Malo wrote: > >> * Steven D'Aprano wrote: >> >>> For a 21st century programming language or data format to accept only >>> one type of quotation mark as string delimiter is rather

Re: Python Gotcha's?

2012-04-05 Thread André Malo
* Steven D'Aprano wrote: > For a 21st century programming language or data format to accept only one > type of quotation mark as string delimiter is rather like having a 21st > century automobile with a hand crank to start the engine instead of an > ignition. Even if there's a good reason for it (

Re: Puzzled by FiPy's use of "=="

2012-03-26 Thread André Roberge
On Monday, 26 March 2012 09:16:07 UTC-3, Robert Kern wrote: > On 3/26/12 12:47 PM, André Roberge wrote: > > In FiPy (a finite volume PDE solver), equations are "magically" set up as > > > > eqX = TransientTerm() == ExplicitDiffusionTerm(coeff=D) > >

Puzzled by FiPy's use of "=="

2012-03-26 Thread André Roberge
In FiPy (a finite volume PDE solver), equations are "magically" set up as eqX = TransientTerm() == ExplicitDiffusionTerm(coeff=D) and solved via eqX.solve(...) How can eqX be anything than True or False?... This must be via a redefinition of "==" but I can't see how that is done. I did look

Re: PyPI - how do you pronounce it?

2012-01-30 Thread André Malo
* Chris Angelico wrote: > Hopefully this will be a step up from Rick's threads in usefulness, > but I'm aware it's not of particularly great value! > > How do you pronounce PyPI? Is it: > * Pie-Pie? > * Pie-Pip, but without the last p? (same as above but short i) > * Pie-Pea-Eye? > * Something el

Execute python within Oracle

2011-12-09 Thread André Lopes
e.printStackTrace(); } } } / Can anyone help? Thanks, André -- http://mail.python.org/mailman/listinfo/python-list

Re: replace random matches of regexp

2011-09-08 Thread André Malo
* gry wrote: > I might want to replace '(max|min|cos|sqrt|ceil' with "public.\1", but > only with probability 0.7. I looked and looked for some computed > thing in re's that I could stick and expression, but could not find > such(for good reasons, I know). > Any ideas how to do this? I would go

Re: IDLE won't wrap lines of text

2011-02-20 Thread André Roberge
rs to be working just fine with the sample code you posted (at least when using Python 3 - I got an error when using it to run the code with Python 2). That being said, I would not recommend it for heavy work An editor that seems to work just fine (although it took a long time to load the sample code) is SublimeText (http://www.sublimetext.com/) - version 2 alpha; it is becoming my editor of choice. André -- http://mail.python.org/mailman/listinfo/python-list

Re: floating point woes

2011-02-15 Thread André Roberge
docs say, it's rounded up for this case? The problem is probably that 2.385 can not be represented as 2.3850 >>> a = 2.385 >>> a 2.3848 André > > > Values are rounded to the closest multiple of 10 to the power minus n; > if two multiples

Re: Arrays/List, filters, Pytho, Ruby

2011-02-11 Thread André Roberge
On Friday, February 11, 2011 5:24:15 PM UTC-4, LL.Snark wrote: > Hi, > > I'm looking for a pythonic way to translate this short Ruby code : > t=[6,7,8,6,7,9,8,4,3,6,7] > i=t.index {|x| x > If you don't know Ruby, the second line means : > What is the index, in array t, of the first element x such

Re: Print docstrings to shell

2011-02-01 Thread André Roberge
On Tuesday, February 1, 2011 9:21:48 PM UTC-4, André Roberge wrote: SNIP > > === > import pydoc > import os > import sys > > '''this is a test''' > > class A(object): > '''docstring''' >

Re: Print docstrings to shell

2011-02-01 Thread André Roberge
On Tuesday, February 1, 2011 9:05:28 PM UTC-4, Gnarlodious wrote: > On Feb 1, 5:30 pm, André Roberge wrote: > > > test.py== > > import pydoc > > > > '''this is a test''' > > > > class A(object): > >

Re: Print docstrings to shell

2011-02-01 Thread André Roberge
test.py== import pydoc '''this is a test''' class A(object): '''docstring''' pass print(pydoc.help(__file__[:-3])) = python test.py André -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-01 Thread André
n we continue to ignore such lackluster and shabby code > in OUR stdlib. Remember the code reflects on all of us! Could you enlighten us and tell us what code YOU contributed to the stdlib? André -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-25 Thread André
On Tuesday, January 25, 2011 10:12:23 PM UTC-4, Tim Chase wrote: > On 01/25/2011 07:07 PM, rantingrick wrote: > > What is it going to take for you (and others) to take me seriously? > > Easy: Stop ranting, start writing quality code. > +1 André > -tkc -- http://ma

Re: New instance of a class : not reset?

2011-01-20 Thread André
> > Thanks > > > class Bag(object): > def __init__(self, data = []): See http://docs.python.org/tutorial/controlflow.html#default-argument-values Read the text following "Important warning: The default value is evaluated only once.". André >

Re: move to end, in Python 3.2 Really?

2011-01-19 Thread André
On Wednesday, January 19, 2011 7:21:53 PM UTC-4, rantingrick wrote: > On Jan 19, 9:18 am, Grant Edwards wrote: > > > And an unmoderated Usenet newsgroup (which has even less of a chain of > > command than a mailing list). > > Moderated status has nothing to do with it. The fact is that the > "el

Re: Regular expression for "key = value" pairs

2010-12-22 Thread André
;, s) > Out[14]: [('a=b, c', 'd')] > > In [15]: re.findall(r'(.+)=(.+),', s) > Out[15]: [('a', 'b')] > > In [16]: re.findall(r'(.+)=(.+),?', s) > Out[16]: [('a=b, c', 'd')] > How about the following: >>> s = 'a=b,c=d' >>> t = [] >>> for u in s.split(','): ... t.extend(u.split('=')) ... >>> t ['a', 'b', 'c', 'd'] HTH, André > Thanks for your help, > francesco. -- http://mail.python.org/mailman/listinfo/python-list

Re: string identity and comparison

2010-12-16 Thread André
en more simply, this: Jython 2.5.0 (Release_2_5_0:6476, Jun 16 2009, 13:33:26) [Java HotSpot(TM) Client VM (Apple Inc.)] on java1.5.0_26 Type "help", "copyright", "credits" or "license" for more information. >>> a = 'foo' >>> b = 'foo' >>> id(a) 1 >>> id(b) 2 Reusing immutable objects, for the sake of efficiency, is an implementation details which should not be relied upon (as you know since you ask for examples). André -- http://mail.python.org/mailman/listinfo/python-list

Re: TDD in python

2010-11-29 Thread André
demo of *doing it* in eclipse/C++ > I was hoping for something similar for python Go to showmedo.com and do a search for "python tdd"; you'll find many such screencasts. André -- http://mail.python.org/mailman/listinfo/python-list

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread André Malo
; my $japh = q[sub japh { }]; print join # [ $japh =~ /{(.)}/] -> [0] => map $_ -> () #André Malo # => @japh;# http://www.perlig.de/ # -- http://mail.python.org/mailman/listinfo/python-list

Re: Some syntactic sugar proposals

2010-11-16 Thread André
ere is some > pitfalls: >     if x in range(a, b): #wrong! This is true only if x is an integer such that a <= x < b > it feels so natural to check it that way, but we have to write >     if a <= x <= b This is true if x is an integer OR a float. Two very different ca

Re: How to write pbm file in Python 3?

2010-10-30 Thread André
On Oct 31, 1:11 am, Chris Rebert wrote: > On Sat, Oct 30, 2010 at 8:32 PM, André wrote: > > I'm trying to create pbm (portable bitmap) files using Python 3 and > > have run into a problem.   The example I am using is the Python 2 > > Mandelbro

How to write pbm file in Python 3?

2010-10-30 Thread André
h appreciated. André -- http://mail.python.org/mailman/listinfo/python-list

Re: OT Komodo Edit, line selection gutter is one pixel wide?

2010-07-01 Thread André
single pixel > location immediately to the left of the line. Or am I doing > something wrong? > Assuming it is the same behavior as for Komodo IDE, if you set it up so that linenumbers are shown, then you get a much larger target to click and select the line. André > Thanks. > >

Re: Python is cool!!

2010-05-09 Thread André
... > An alternative approach to those already mentioned is to use Crunchy (http://code.google.com/p/crunchy) as a local app in combination with a browser. André > Any opinion -- http://mail.python.org/mailman/listinfo/python-list

Re: Teaching Programming

2010-05-03 Thread André
without the need for arbitrary keywords and other punctuation symbols. There are very few keywords in the language. You indicate that Python programs are readable. They are also known to be short (much shorter than some other languages). André -- http://mail.python.org/mailman/listinfo/python-list

Re: remote evaluation of Python code typed in html webpage frame

2010-01-16 Thread André
your purpose, you likely would have to disable the authentication feature of Crunchy. André > On 15 янв, 16:41, "Diez B. Roggisch" wrote: > > > Am 15.01.10 15:16, schrieb dmitrey: > > > > hi all, > > > what's the simplest way to create a webpage with

Re: Those two controversial 2nd & 3rd paragraphs of my ch 1

2010-01-13 Thread André
ble to have one program working correctly under both Python 2 *and* 3 with a single code base. It might not be the officially recommended way... but that does not make it impossible. André -- http://mail.python.org/mailman/listinfo/python-list

Re: Bugs in CPython 3.1.1 [wave.py]

2010-01-12 Thread André
straightforward to do if one writes a new application. André -- http://mail.python.org/mailman/listinfo/python-list

Re: unittest inconsistent

2010-01-05 Thread André
--- #from importme import render import importme def run(somearg): return importme.render(somearg) = A long answer, with explanation, will cost you twice as much ;-) (but will have to wait) André -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found."

2009-11-25 Thread André
On Nov 19, 6:57 pm, Neil Hodgson wrote: > André: > > > Apparently the error is caused by cx_Oracle not being able to find the > > Oracle client DLLs (oci.dll and others). The client home path and the > > client home path bin directory are in the PATH System Variable

Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found."

2009-11-19 Thread André
Hello, I'm trying to get Python 3.1 and cx_Oracle 5.02 (cx_Oracle-5.0.2-10g.win32-py3.0.msi) to connect to an Oracle 11.1.0.7.0 database via OraClient10g 10.2.0.3.0 with Pydev 1.5.1.1258496115 in Eclipse 20090920-1017 on Windows XP SP 3 v2002. The import cx_Oracle line appears as an unresolved imp

Re: How to improve this code?

2009-09-14 Thread André
     return False > > It might actually be that turning both lists to sets & checking if these > overlap is faster because it's in pure C. > > Diez Here's an example using sets: >>> def is_present(list_1, list_2): ...if set(list_1).intersection(set(list_2)): ... return True ...return False ... >>> is_present([1,2,3], [4,5,6]) False >>> is_present([1,2,3], [0,2,4]) True André -- http://mail.python.org/mailman/listinfo/python-list

Re: NameError: name '__main__' is not defined

2009-09-13 Thread André
__ == '__main__' : >   print "Hello World!\n" > $ ./test.py > Traceback (most recent call last): >   File "./test.py", line 3, in >     if __main__ == '__main__' : > NameError: name '__main__' is not defined You wrote __main__

Re: list as an instance attribute

2009-09-12 Thread André
that method. This definitely look wrong. Perhaps if you could post the actual offending code (the smallest example showing the problem you observe) others might be able to help you. Cheers, André -- http://mail.python.org/mailman/listinfo/python-list

Re: pyjamas in action?

2009-08-31 Thread André
t; TIA! > > kynn Perhaps you might get answers faster if you posted to the pyjamas group: http://groups.google.com/group/pyjamas-dev André -- http://mail.python.org/mailman/listinfo/python-list

WEB PROGRAMMER ANALYST (with Python knowledge) for Laval, Quebec needed.

2009-08-30 Thread Marc-André Ouellette
, Windows, MacOSX Other: Client/server architectures, version control systems Mercurial SALARY: Based on level of experience, from 5$ to 75000$ + benefits. If your interested to know more, please contact me. Regards, Marc-André Ouellette marcan...@abppers.com Marc

Re: P3 weird sys.stdout.write()

2009-08-24 Thread André
not how it worked in 2.6. > > What's the reason for this? Is this intended? I couldn't find a bug > report for this. I don't know what the reason for the change, but try the following: >>> out = sys.stdout.write("test\n") test >>> out 5 What you are seeing is the concatenation of the return value of the write() method with its output. André -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE is not as interactive as Maple

2009-08-20 Thread André
rs to > start with programming something. André -- http://mail.python.org/mailman/listinfo/python-list

Re: Identifying a class type - bad practice?

2009-08-18 Thread André
e latter will match the instance against any > superclass and the former will match one class only. > > My question is: is this the Pythonic way to deal with such a tree? Is > there a better way? In C I would use structs where one field was a tag > indicating the kind of struct. >

Re: Obtaining Python version

2009-08-03 Thread André
way?  Are there ever > non-numeric versions, like "3.2.rc1"? > >                                 John Nagle I strongly suspect that sys.version_info would never change... André -- http://mail.python.org/mailman/listinfo/python-list

Re: Announcing PythonTurtle

2009-08-03 Thread André
re about it and download it on the website. > > Ram. Why not make the source available? At the very least, people that do not run windows could try it too. André -- http://mail.python.org/mailman/listinfo/python-list

Re: how to embed the python interpreter into web App (Mehndi, Sibtey)

2009-07-29 Thread André
website/webapp. > > Good luck. Or you can look at the code for Crunchy: http://code.google.com/p/crunchy Note however that this will result in something that is not secure... To quote the try-python site: "My ISP (idiom.com) provides a sandbox inside a FreeBSD Jail..." André -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree's Element substitution in Python 3

2009-07-24 Thread André
On Jul 24, 4:17 pm, Piet van Oostrum wrote: > >>>>> André (A) a écrit: > >A> I have a function to replace the content of an ElementTree Element by > >A> that of another one which works using Python 2 but not with Python 3. > >A> I get an assertion

Re: ElementTree's Element substitution in Python 3

2009-07-24 Thread André
Sorry for replying to myself ... the following seems to be a working solution to my original problem. On Jul 24, 2:54 pm, André wrote: > I have a function to replace the content of an ElementTree Element by > that of another one which works using Python 2 but not with Python 3. >

ElementTree's Element substitution in Python 3

2009-07-24 Thread André
(most recent call last): File "test.py", line 7, in a[:] = c[:] File "/usr/local/py3.1/lib/python3.1/xml/etree/ElementTree.py", line 210, in __setitem__ assert iselement(element) AssertionError == I would gladly welcome any suggestion for writing a replace_element

Re: Presentation software for Python code

2009-04-23 Thread André
unchy for a presentation, you might be interested in the html style used for Crunchy's own talk at the latest Pycon: http://us.pycon.org/media/2009/talkdata/PyCon2009/012/crunchy_.html André Roberge > --Scott David Daniels > scott.dani...@acm.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem understanding some unit tests in Python distribution

2009-04-04 Thread André
On Apr 4, 4:38 am, Peter Otten <__pete...@web.de> wrote: > André wrote: > > Hi everyone, > > > In the hope of perhaps contributing some additional unit tests for > > Python (thus contributing back to the community), I dove in the code > > and found something

Problem understanding some unit tests in Python distribution

2009-04-03 Thread André
direction. Cheers, André -- http://mail.python.org/mailman/listinfo/python-list

Re: Introducing Python to others

2009-03-26 Thread André
Then perhaps use IPython as a terminal window and show them other cool stuff that people have mentioned. André -- http://mail.python.org/mailman/listinfo/python-list

Re: Preparing teaching materials

2009-03-20 Thread André
t in action, you can check these older videos: http://showmedo.com/videos/video?name=143;fromSeriesID=143 http://showmedo.com/videos/video?name=1430020;fromSeriesID=143 André -- http://mail.python.org/mailman/listinfo/python-list

Re: New to python, open source Mac OS X IDE?

2009-01-27 Thread André
r Python? > If you already use netbeans, what about http://www.netbeans.org/features/python/ ? > Any recommendations on open source Python environments? I like Komodo Edit (which has many IDE like features). In fact, I like it so much that I decided to buy the Komodo IDE - the only non- fr

Re: reading file to list

2009-01-18 Thread André Thieme
William James schrieb: André Thieme wrote: You make a very strong case that Lisp is very feeble at processing data. I'm almost convinced. I somehow don’t believe you :-) Ruby isn't feeble, so data like this is fine: shall we begin? or lotus135? 1984 times! The 3 stooges:

Re: reading file to list

2009-01-17 Thread André Thieme
Xah Lee schrieb: Xah Lee wrote: • A Ruby Illustration of Lisp Problems http://xahlee.org/UnixResource_dir/writ/lisp_problems_by_ruby.html On Jan 17, 12:30 pm, André Thieme wrote: In the Lisp style Clojure for example one does exactly the same as Jillian James (JJ) did in Ruby: (map

Re: reading file to list

2009-01-17 Thread André Thieme
d as (3 10 2) (4 1) (11 18) And then read it back into the program with: (map read-string (line-seq (reader "blob.txt"))) André -- -- http://mail.python.org/mailman/listinfo/python-list

Solved. was: Memory leak problem (while using tkinter)

2008-12-31 Thread André
On Dec 31, 12:21 am, André wrote: > I have written a small program (my first Tkinter-based app) to play > around the idea mentioned on > http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mo... > and, in doing so, have encountered a memory leak problem.   I have > s

Memory leak problem (while using tkinter)

2008-12-30 Thread André
be greatly appreciated. André == from Tkinter import Canvas, Tk, Label import Image, ImageTk, ImageChops, ImageStat # PIL import aggdraw from random import randint import time import copy FITNESS_OFFSET = 0 saved = [None, None] def fitness(im1, im2): """Calculate a value d

Re: getting object instead of string from dir()

2008-12-17 Thread André
ariables in the namespace, along > with their type, size, value, etc  I am trying to create a python > equivalent.   You might want to have a look at http://www.physics.ox.ac.uk/users/santoso/Software.WebLab.html André -- http://mail.python.org/mailman/listinfo/python-list

Re: Google Summer of Code 2009

2008-12-09 Thread André
I would appreciate it. > > Thanks, > Eric You should have a look at http://wiki.python.org/moin/SummerOfCode It's still early, so there's nothing yet for 2009, but I am sure that some ongoing projects mentioned in previous years [like Crunchy ;-)] will be looking for volunteers. And

Re: Python for kids?

2008-12-07 Thread André
that addresses this concern, preferably (but not necessarily) using > Python? I could try to teach him Python myself, but I'm afraid I would > just frustrate him and kill his interest in programming. I did a > Google search and found a few things, but not a lot. Thanks. htt

Re: python book for non technical absolute beginner

2008-12-07 Thread André
sourceforge.net/ It's Karel the robot, using only Python, and comes with a whole bunch of lessons and exercises. André -- http://mail.python.org/mailman/listinfo/python-list

Re: Using dictionary to hold regex patterns?

2008-11-23 Thread André
27; for name in self.patterns: result = self.patterns[name].match(line) if result is not None: return name, result.groups() return None, line where self.patterns is something like self.patterns={ 'pattern1': re.compile(...), 'patter

Parsing: request for pointers

2008-11-11 Thread André
and I'll start from there...) 4. I want to do this only using modules in the standard Python library, as I want to use this to learn about the basics of parsing. So, please don't *simply* suggest to use a third-party module, such as [1] plex, [2] yapps, [3] pyparsing The le

ANN: Docpicture 0.2

2008-10-31 Thread André
even more so. ;-) André Roberge -- http://mail.python.org/mailman/listinfo/python-list

Re: math equation, svg and matplotlib

2008-10-29 Thread André
On Oct 29, 6:34 pm, kib2 <[EMAIL PROTECTED]> wrote: > André a écrit : > > > Would anyone have a "quick and dirty" code sample to create an svg > > output of a sample math equation using matplotlib? > > > André > > Hi André, > > maybe that

math equation, svg and matplotlib

2008-10-29 Thread André
Would anyone have a "quick and dirty" code sample to create an svg output of a sample math equation using matplotlib? André -- http://mail.python.org/mailman/listinfo/python-list

Re: docpicture

2008-10-14 Thread André
On Oct 14, 1:56 pm, [EMAIL PROTECTED] wrote: > André: > > > Ok, the following is my first attempt at implementing this idea. > > I suggest you to change the program you use to encode your images, > because it's 1000 bytes, while with my program the same 256 colors &g

Re: docpicture

2008-10-14 Thread André
On Oct 14, 10:58 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Tue, 14 Oct 2008 06:12:59 -0700, Scott David Daniels wrote: > > Steven D'Aprano wrote: > >> And if not, it's no big deal. Your help string has a clearly labeled > >> few lines of hex: > > >> Help on function spa

Crunchy 1.0 alpha 1 released

2008-10-09 Thread André
makes use of jQuery and various plugins. As usual, suggestions for improvements, bug reports and other comments are welcome. Cheers, André -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >