release builds that
allow me to switch
debug stmts, like assert, on / off ?
Thanx,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 2, 12:12 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote:
> On 11/2/07, matthias <[EMAIL PROTECTED]> wrote:
>
>
>
> > Howdy !
>
> > I started using the assert() stmt and found it quite useful :-) I
> > have only one problem: I don'
On Nov 2, 1:29 pm, "Bart." <[EMAIL PROTECTED]> wrote:
> Friday 02 of November 2007 20:53:12 matthias napisa (a):
>
>
>
> > On Nov 2, 12:12 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote:
> > > On 11/2/07, matthias <[EMAIL PROTECTED
On Nov 2, 2:32 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> On Nov 2, 2007 3:04 PM, Beema shafreen <[EMAIL PROTECTED]> wrote:
>
>
>
> > hi everybody,
> > i have a file:
>
> > A_16_P21360207#304
> > A_14_P136880#783
> > A_16_P21360209#795
> > A_16_P21360210#173
> > A_16_P03641959#1177
> > A_16_P0
tyield
i\n\t\ti += 1\no=func()", Py_file_input, Dict, Dict) );
Py_XDECREF( PyRun_String( "print o.next()", Py_file_input, Dict, Dict) );
Log("Marker 2");
Here the output goes
Marker 1
0
1
Marker 2
What is the reason for this very strange behaviour? Did I do something
wrong?
-Matthias
--
http://mail.python.org/mailman/listinfo/python-list
Am Thu, 09 Mar 2006 20:06:54 +0100 hat Duncan Booth
<[EMAIL PROTECTED]> geschrieben:
> Matthias wrote:
>
>> Log("Marker 1");
>> Py_XDECREF( PyRun_String( "print 'Hi!'", Py_single_input, Dict, Dict) );
>> Log("Marker 2")
do a similar thing in the Makefile using
Compiler-/Link-Options (DEBUG/FINAL Build) switching
between two libraries.
Any hints are welcome, especially a search term
would be very helpful :)
Thanks in advance,
Matthias Kievernagel.
--
http://mail.python.org/mailman/listinfo/python-list
Peter Otten <__pete...@web.de> wrote:
> Matthias Kievernagel wrote:
>
>> In my top-level script I want to select if my program
>> is to use random.xxx functions or the random.SystemRandom.xxx
>> ones. All the other modules shouldn't know about that
>&g
Hi all,
I was recently had to use weakreferences, using the weakref module, and came
across the fact that some object cannot be weakreferenced. If you try to do so
you get greated by a TypeError, which is a totally expected and documented
behavior.
As I tend to prefer the "Look before you le
ven't found anything on b.p.o. about this.
Thanks for any insights,
Matthias Kievernagel
--
https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
py (referenced by one.py) references one.py
again, something breaks.
I'm lost. Am I doing something wrong, or is this a bug?
Many thanks for any light anybody can shed on this.
Greetings
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
le.
Especially since the former also used to fail (google for "python
cyclic imports" on groups.google.com). I wonder whether the "from"
style imports were overlooked when the cyclic problem was fixed.
Greetings
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
tain the stream data and decode the data therein.
What you do with the data is up to your application. Converting the
file into another format is just one such application.
- Matthias -
--
http://mail.python.org/mailman/listinfo/python-list
nts (see changelog)
Windows binary versions are available for Python 2.3 and Python 2.4.
For more information, visit:
http://cgkit.sourceforge.net
- Matthias -
--
http://mail.python.org/mailman/listinfo/python-list
27;t already somewhere on his system.
But this really is not a satisfying solution...
- Matthias -
--
http://mail.python.org/mailman/listinfo/python-list
it isn't already somewhere on his system.
>> But this really is not a satisfying solution...
>
>Then you should probably include the DLL, or rewrite your extension
>to not use C++.
I'm afraid the latter will hardly ever be an option... ;)
For one smaller package I was
> From: "Paul Rubin" "http://phr.cx"@NOSPAM.invalid
>> "Matthias Kluwe" <[EMAIL PROTECTED]> writes:
>> After getting a @gmail.com address, I recognized I had to use TLS in my
>> python scripts using smtplib in order to get mail to the smtp.
export ASF/AMC files
+ several other enhancements and bugfixes (see changelog)
Windows binary versions are available for Python 2.3 and Python 2.4.
For more information, visit:
http://cgkit.sourceforge.net
- Matthias -
--
http://mail.python.org/mailman/listinfo/python-list
D]);
>
> --
> is there some shortcut to turn lines into list in Python?
txt = """rb_basic_islamic
sq1_pentagonTile
sq_arc501Tile
sq_arc503Tile"""
print txt.splitlines()
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
27;group'
RE doesn't find "()(/python>)" because it isn't in your string.
That's why group fails.
>>> import re
>>> s = "blablaRe module is great!blabla"
>>> re.search("().*(/python>)", s).group()
'Re module is great!'
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
Unfortunately matplotlib is only a 2D-plotting library.
Do you know another one with 3D-capabilities as well?
That would be very nice,
thank you,
Matthias
Robert Kern wrote:
> fortuneteller wrote:
>> Hello,
>>
>> I'm quite new to python and Scipy.
>> Anyway
Steven D'Aprano <[EMAIL PROTECTED]> writes:
>On Sun, 10 Jul 2005 07:20:34 -0700, raptor wrote:
>
>> I think u are wrong.. I think perl is much more exrpressive in
>> semantics than Python..
>
>Well, with such great command of natural language as you are displaying,
>how could anyone argue with you
[EMAIL PROTECTED] writes:
>In comp.lang.perl.misc Xah Lee <[EMAIL PROTECTED]> wrote:
>> The other class of jargon stupidity is from computing practitioners, of
>> which the Unix/Perl community is exemplary. For example, the name Unix
>> & Perl themselves are good examples of buzzing jargons. Unix
d bugfixes (see the changelog).
Windows binary versions are available for Python 2.3 and Python 2.4.
For more information, visit:
http://cgkit.sourceforge.net
- Matthias -
--
http://mail.python.org/mailman/listinfo/python-list
lioth.debian.org/benchmark.php?test=all&lang=python&sort=fullcpu
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
an instance. This is because the instance _is_ the parameter.
Python does this for you internally.
For more documentation you should read the paragraph about classes in
the tutorial.
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
e.net
- Matthias -
--
http://mail.python.org/mailman/listinfo/python-list
Hans Almåsbakk (14.12.2004 16:02):
Any pointer will be greatly appreciated. Maybe I'm attacking this problem
the wrong way already from the start? (Not that I can see another way
myself :)
Hans, did you try the csv module in the Python library?
Matthias
--
http://mail.python.org/mailman/lis
de to 2.3, but since 2.4 works fine
too, I don't see why I shouldn't use it, if I don't mind the MySQL
problems of course.
Thanks in advance!
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh schreef:
Matthias Verniers wrote:
2. Is it possible to use Python 2.4 & 2.3 next to each other without conflicts?
yes, assuming "next to each other" means "on the same machine".
but binary extensions are bound to the Python version they were built
f
Steve Holden schreef:
Fredrik Lundh wrote:
Matthias Verniers wrote:
2. Is it possible to use Python 2.4 & 2.3 next to each other without
conflicts?
yes, assuming "next to each other" means "on the same machine".
but binary extensions are bound to the Python version
Steve Holden schreef:
Matthias Verniers wrote:
[...]
Good job! It would be nice if I could have a copy of your installer. I
am one of the interested people ;-)
Regards
As I reported, I've shipped a copy of the installer to Andy Dustman, so
it will appear on SourceForge in due course. For
aller enhancements and bugfixes (see changelog)
Windows binary versions are available for Python 2.3 and Python 2.4.
For more information, visit:
http://cgkit.sourceforge.net
- Matthias -
--
http://mail.python.org/mailman/listinfo/python-list
;generator" for Sphinx documentation:
> https://github.com/amitsaha/sphinx_doc_packaging
>
> It's written in Python, so perhaps may help with you a starting point.
>
> Best,
> Amit.
>
>
In Fedora (and IMHO in EPEL, too) there is a package named pyp2rpm. This
is qui
Hi Sven,
Just adding a few comments inline:
On Sun, Sep 6, 2015 at 7:33 PM, Sven R. Kunze wrote:
> 3) more than one way to do (upload, wheel, source/binary etc.) it (sigh)
And most are uploading/registering over http (sight)
> nope: what a pity for wheels; example:
> https://github.com/simple
actually load all the data into memory beforehand
would be prohibitive (so I'd still need a way to load referred data on
demand), and the update problem remains.
--
-- Matthias Urlichs
--
https://mail.python.org/mailman/listinfo/python-list
Am 12.09.2011 16:03, schrieb John Reid:
I don't have much experience writing web sites or applications. Can
anyone recommend a python framework that will allow me to easily write a
few pages?
You want a simple framework? Try Bottle:
http://bottlepy.org/
Matthias
--
http://mail.pytho
an gtk gui inside
an entry or textbox, etc.
Thanks,
Matthias
--
Wer A sagt, der muss nich B sagen, Er
kann auch erkennen, dass A falsch war.
GPG key: 1814DA35
--
http://mail.python.org/mailman/listinfo/python-list
scheme for
complex systems involving hiding of details, and the small scale one was to
find a more flexible version of assignment, and then to try to eliminate it
altogether." At least for me, this quote sends a signal to language designers
that is still looking for a receiver -- Matth
hon is still worth learning :-/
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
ion).
I have also read the other answers to my question, and I am really sorry
if I have sounded ignorant in my post, but it's harder than I thought to
move to a language where all these techniques one had learned in years
of hard work suddenly become redundant :)
I'm so used to statically
have a different object and the
interpreter will happily continue executing the flawed program.
I really see issues with this, can anyone comment on this who has been
working with Python more than just a day (like me)?
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
That was quite insightful Martin, thanks.
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
e in Python, where I would use
getters and setters in Java? I know that encapsulation is actually just
a hack in Python (common, "hiding" an implementation detail by prefixing
it with the classname so you can't access it by its name anymore? Gimme
a break...), but is tha
[EMAIL PROTECTED] wrote:
> Just follow the links.
I'll try ;-)
--
http://mail.python.org/mailman/listinfo/python-list
them up like this?
Thanks,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
Oh and:
Where can I find an API reference for PyXML? Am I supposed to /guess/
which methods and attributes e.g. Sax2 supplies? :D
Thanks again,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
more sane
> organization. ;) Plus, it will be part of the Python standard library
> in Python 2.5.
That sounds great, thanks.
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
Ivan Herman wrote:
> I know this is not the ideal answer, but maybe it helps...
It does, thanks Ivan.
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
How can i encode with yEnc?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a simple question. When I read in a string like:
a='1,2,3,4,5 6 7,3,4', can I get the list l=[1,2,3,4,5,6,7,3,4] with a
single split-call?
Thx,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
Darren New <[EMAIL PROTECTED]> writes:
> Joachim Durchholz wrote:
>> Give a heterogenous list that would to too awkward to live in a
>> statically-typed language.
>
> Printf()?
Very good statically typed versions of printf exist. See, e.g.,
Danvy's unparsing combinators.
--
http://mail.python.o
Darren New <[EMAIL PROTECTED]> writes:
> Matthias Blume wrote:
>> Very good statically typed versions of printf exist. See, e.g.,
>> Danvy's unparsing combinators.
>
> That seems to ignore the fact that the pattern is a string, which
> means that printf's
George Neuner writes:
> I am, however, going to ask what
> information you think type inference can provide that substitutes for
> algorithm or data structure exploration.
Nobody wants to do such a substitution, of course. In /my/
experience, however, I find that doing algorithm and data struc
"Rob Thorpe" <[EMAIL PROTECTED]> writes:
> I don't think dynamic typing is that nebulous. I remember this being
> discussed elsewhere some time ago, I'll post the same reply I did then
> ..
>
>
> A language is statically typed if a variable has a property - called
> it's type - attached to it, an
Pascal Costanza <[EMAIL PROTECTED]> writes:
> Matthias Blume wrote:
>> "Rob Thorpe" <[EMAIL PROTECTED]> writes:
>>
>>> I don't think dynamic typing is that nebulous. I remember this being
>>> discussed elsewhere some time ago, I'l
Pascal Costanza <[EMAIL PROTECTED]> writes:
> - In a dynamically typed language, you can run programs successfully
> that are not acceptable by static type systems.
This statement is false.
For every program that can run successfully to completion there exists
a static type system which accept
David Squire <[EMAIL PROTECTED]> writes:
> Andreas Rossberg wrote:
>> Rob Thorpe wrote:
> No, that isn't what I said. What I said was:
> "A language is latently typed if a value has a property - called it's
> type - attached to it, and given it's type it can only represent values
"Rob Thorpe" <[EMAIL PROTECTED]> writes:
> Andreas Rossberg wrote:
>> Rob Thorpe wrote:
>> >>
>> >>>No, that isn't what I said. What I said was:
>> >>>"A language is latently typed if a value has a property - called it's
>> >>>type - attached to it, and given it's type it can only represent value
David Squire <[EMAIL PROTECTED]> writes:
> Matthias Blume wrote:
>> David Squire <[EMAIL PROTECTED]> writes:
>>
>>> Andreas Rossberg wrote:
>>>> Rob Thorpe wrote:
>>>>>>> No, that isn't what I said. What I said was:
>
"Rob Thorpe" <[EMAIL PROTECTED]> writes:
> I think we're discussing this at cross-purposes. In a language like C
> or another statically typed language there is no information passed
> with values indicating their type.
You seem to be confusing "does not have a type" with "no type
information is
Joachim Durchholz <[EMAIL PROTECTED]> writes:
> Matthias Blume schrieb:
>> Perhaps better: A language is statically typed if its definition
>> includes (or ever better: is based on) a static type system, i.e., a
>> static semantics with typing judgments derivable
"Rob Thorpe" <[EMAIL PROTECTED]> writes:
> Matthias Blume wrote:
>> "Rob Thorpe" <[EMAIL PROTECTED]> writes:
>>
>> > I think we're discussing this at cross-purposes. In a language like C
>> > or another statically typed lan
Joachim Durchholz <[EMAIL PROTECTED]> writes:
> Matthias Blume schrieb:
>> Joachim Durchholz <[EMAIL PROTECTED]> writes:
>>
>>> Matthias Blume schrieb:
>>>> Perhaps better: A language is statically typed if its definition
>>>> includes
"Rob Thorpe" <[EMAIL PROTECTED]> writes:
>> >> > No it doesn't. Casting reinterprets a value of one type as a value of
>> >> > another type.
>> >> > There is a difference. If I cast an unsigned integer 20 to a
>> >> > signed integer in C on the machine I'm using then the result I will get
"Marshall" <[EMAIL PROTECTED]> writes:
> Torben Ægidius Mogensen wrote:
>>
>> That's not true. ML has variables in the mathematical sense of
>> variables -- symbols that can be associated with different values at
>> different times. What it doesn't have is mutable variables (though it
>> can get
Darren New <[EMAIL PROTECTED]> writes:
> [ ... ] As far as I know, LOTOS is the only
> language that *actually* uses abstract data types - you have to use
> the equivalent of #include to bring in the integers, for
> example. Everything else uses informal rules to say how types work.
There are *to
Pascal Bourguignon <[EMAIL PROTECTED]> writes:
> Moreover, a good proportion of the program and a good number of
> algorithms don't even need to know the type of the objects they
> manipulate.
>
> For example, sort doesn't need to know what type the objects it sorts
> are. It only needs to be giv
Pascal Costanza <[EMAIL PROTECTED]> writes:
> Chris Smith wrote:
>
>> While this effort to salvage the term "type error" in dynamic
>> languages is interesting, I fear it will fail. Either we'll all
>> have to admit that "type" in the dynamic sense is a psychological
>> concept with no precise te
Pascal Bourguignon <[EMAIL PROTECTED]> writes:
> Matthias Blume <[EMAIL PROTECTED]> writes:
>
>> Pascal Bourguignon <[EMAIL PROTECTED]> writes:
>>
>>> Moreover, a good proportion of the program and a good number of
>>> algorithms don't ev
Pascal Costanza <[EMAIL PROTECTED]> writes:
> Patricia Shanahan wrote:
>> Vesa Karvonen wrote:
>> ...
>>> An example of a form of informal reasoning that (practically) every
>>> programmer does daily is termination analysis. There are type systems
>>> that guarantee termination, but I think that
Pascal Costanza <[EMAIL PROTECTED]> writes:
> Matthias Blume wrote:
>> Pascal Costanza <[EMAIL PROTECTED]> writes:
>>
>>> Patricia Shanahan wrote:
>>>> Vesa Karvonen wrote:
>>>> ...
>>>>> An example of a form of
David Hopwood <[EMAIL PROTECTED]> writes:
> Patricia Shanahan wrote:
>> Vesa Karvonen wrote:
>> ...
>>
>>> An example of a form of informal reasoning that (practically) every
>>> programmer does daily is termination analysis. There are type systems
>>> that guarantee termination, but I think tha
27;t really blame the compiler if the program does not print 0,
or if it even crashes.
AFAIC, C is C-unsafe by Bob's reasoning.
---
Of course, C can be made safe quite easily:
Define a state "undefined" that is considered "safe" and add a
transition to "undefined" wherever necessary.
Kind regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
David Hopwood <[EMAIL PROTECTED]> writes:
> Matthias Blume wrote:
>> I agree with Bob Harper about safety being language-specific and all
>> that. But, with all due respect, I think his characterization of C is
>> not accurate.
> [...]
>> AFAIC, C is C-u
Tin Gherdanarra <[EMAIL PROTECTED]> writes:
> Oliver Bandel wrote:
>> こんいちわ Xah-Lee san ;-)
>
> Uhm, I'd guess that Xah is Chinese. Be careful
> with such things in real life; Koreans might
> beat you up for this. Stay alive!
And the Japanese might beat him up, too. For butchering their
language
Pascal Costanza <[EMAIL PROTECTED]> writes:
> Whether you consider something you cannot do with statically typed
> languages a bad idea or not is irrelevant. You were asking for things
> that you cannot do with statically typed languages.
The whole point of static type systems is to make sure tha
Pascal Costanza <[EMAIL PROTECTED]> writes:
>> And I am convinced that updating a running system in the style of,
>> e.g., Erlang, can be statically typed.
>
> Maybe. The interesting question then is whether you can express the
> kinds of dynamic updates that are relevant in practice. Because a
>
"Marshall" <[EMAIL PROTECTED]> writes:
> Matthias Blume wrote:
>>
>> How does this "create" such a problem? The problem is there in either
>> approach. In fact, I believe that the best chance we have of
>> addressing the problem is by
this. Stay alive!
>> And the Japanese might beat him up, too. For butchering their
>> language. :-)
>
> OK, back to ISO-8859-1 :) no one needs so much symbols,
> this is enough: äöüÄÖÜß :)
There are plenty of people who need such symbols (more people than
those who need ß, btw).
Matthias
PS: It should have been こんにちは.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I want to change the beginning/end-coordinates of a canvas.line item.
Something like:
self.myCanvas.itemconfigure(item_id, coords=(x1_new, y1_new, x2_new,
y2_new))
I don't want to delete and repaint a new line item. Is this possible?
Thanks
Matthias
--
http://mail.pytho
Very nice :)
Thank you,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
inding 'var1' in module A.
Is there a solution to this problem which doesn't involve introducing a
new module holding the shared objects?
Thanks,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
robably a good idea anyway.
Thanks for clearing up,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
I was
programming MFC when working with the wxWidgets somewhat drove me away
from it with a big "Yuck!", but if it's based on GTK2 now I might risk
another glimpse.
Thanks,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
sage boxes, you could start
with EasyGUI.
http://www.ferg.org/easygui/
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
Andreas Rottmann wrote:
> You get terminology totally wrong here. As already said, Lisp is
> stronger typed than C, but C is statically typed, whereas Lisp is
> dynamically typed. In Lisp (or Scheme), all variables have types:
>
> (define foo #(1 2 3))
> (vector? foo) => #t
> (boolean? foo) => #t
Anno Siegel wrote:
> I've been through Pascal, Modula2 and Oberon, and I agree.
> In the short run they succeeded. For a number of years, languages of
> that family were widely used, primarily in educational programming
> but also in implementing large real-life systems.
With a few relaxations a
Andrea Griffini wrote:
>>With a few relaxations and extensions, you can get a surprisingly useful
>>language out of the rigid Pascal, as evidenced by Turbo Pascal, one of
>>the most popular (and practical) programming languages in the late 80ies
>>/ start of the 90ies.
>
> It was not a language.
Xah Lee wrote:
> to be continued tomorrow.
Please don't...
mkb.
--
http://mail.python.org/mailman/listinfo/python-list
Andrea Griffini wrote:
>>Of course it is a language, just not a standardized one (if you include
>>Borland's extensions that make it practical).
>
> The history of "runtime error 200" and its handling from
> borland is a clear example of what I mean with a product.
Hmm, I had to google this up..
27;EOF occurred in violation of protocol')
Did I miss something? Any hint is welcome.
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
Simply use the internal table SQLite_Master:
select name from SQLite_Master
will return all existing tables.
Regards,
Matthias
--
http://mail.python.org/mailman/listinfo/python-list
> "Matthias Kluwe" <[EMAIL PROTECTED]> writes:
>> The server accepts and delivers my messages, but the last command
>> raises
>> socket.sslerror: (8, 'EOF occurred in violation of protocol')
>> Did I miss something? Any hint is welcome.
&g
David Kastrup wrote:
> My favorite killing offence is /* vi:set ts=4: */.
This is apparently the default setting in many of the so-called "IDE"s
today.. I think it's another unwelcome poison gift from the ignorant
M$FT world (I suspect some primitive Windoze IDE which couldn't
differentiate betwe
Twisted wrote:
> That's a joke, right? I tried it a time or two. Every time it was
> rapidly apparent that doing anything non-trivial would require
> consulting a cheat sheet. The printed-out kind, since navigating to
> the help and back without already having the help displayed and open
> to the
Twisted wrote:
> Emacs does have documentation. The problem is you have to already know
> a load of emacs navigation oddities^Wkeyboard commands to get to and
> use it.
Yes, like hitting the F1 key.
> Yeah, and I abhor the elitist systems that are designed with the
> philosophy that anyone who h
Kaldrenon wrote:
> I don't think anyone can make the argument that any (past or current)
> graphics-based editor is as efficient when being used to its fullest
> as a text-based editor.
Actually, I think the argument can be made:
``We’ve done a cool $50 million of R & D on the Apple Human Inter
Twisted wrote:
> I find these anecdotes liberally sprinkled into this thread frankly
> unbelievable.
If you'd spent as much time learning the software as you're ranting
about it, you could actually use it _and_ would get the additional
benefit of having avoided making a fool of yourself on Usenet
1 - 100 of 167 matches
Mail list logo