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
-
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
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
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
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
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
>
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
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
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:
169923885626670049071596826438162146859296389521753229915608941463976156518286253697920827223758251185210916864
>>> b = fac(102)
>>> b
961446671503512660926865558697259548455355905059659464369444714048531715130254590603314961882364451384985595
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
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. >>>
#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
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.
> >
> >
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
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
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
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
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
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
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
>
"''' 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
* 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
* 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
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
* 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
* 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
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_
Regards,
André
smime.p7s
Description: S/MIME Cryptographic Signature
--
http://mail.python.org/mailman/listinfo/python-list
* 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
* 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
* 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 (
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)
> >
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
* 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
e.printStackTrace();
}
}
}
/
Can anyone help?
Thanks,
André
--
http://mail.python.org/mailman/listinfo/python-list
* 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
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
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
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
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'''
>
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):
> >
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
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
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
>
> 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é
>
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
;, 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
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
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
;
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
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
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
h appreciated.
André
--
http://mail.python.org/mailman/listinfo/python-list
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.
>
>
...
>
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
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
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
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
straightforward to do if one writes a new application.
André
--
http://mail.python.org/mailman/listinfo/python-list
---
#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
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
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
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
__ == '__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__
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
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
, 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
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
rs to
> start with programming something.
André
--
http://mail.python.org/mailman/listinfo/python-list
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.
>
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 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
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
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
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.
>
(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
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
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
direction.
Cheers,
André
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
even more so. ;-)
André Roberge
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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 - 100 of 376 matches
Mail list logo