Re: Installing Python on Windows 7

2016-10-28 Thread Jens Janzen
Am Freitag, 28. Oktober 2016 01:24:18 UTC+2 schrieb Karen Hermann: > I just downloaded Python 3.5.2 for Windows, which I installed on a Windows 7 > laptop. Disclaimer up front, I am a former lapsed programmer that has been > away from it and all things Windows since Windows XP. :)I’m back t

Re: installing libraries like numpy scipy matplotlib

2015-07-05 Thread Jens Thoms Toerring
memilanuk wrote: > On 07/04/2015 07:58 AM, Jens Thoms Toerring wrote: > > PIYUSH KUMAR wrote: > >> I have never used linux in my life.. only windows based computing.. So I > >> have problems in installing third party libraries in python. > > > > It depend

Re: installing libraries like numpy scipy matplotlib

2015-07-04 Thread Jens Thoms Toerring
package for your distro you don't need to worry at all - all dependencies will get installed automatically (so if you want to install package A and that needs package B, B will installed automatically before A is installed). > I also had problems installing PYKE last month. What were these p

Re: Help needed to create a Python extension library for an existing shared memory hash table library

2014-03-23 Thread Jens Thoms Toerring
ce I haven't used any of the alternatives I can't comment on how good they are. A list of them can be found here https://wiki.python.org/moin/IntegratingPythonWithOtherLanguages Regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de

Re: Updating a filename's counter value failed each time

2013-06-17 Thread Jens Thoms Toerring
MRAB wrote: > On 17/06/2013 19:32, Jens Thoms Toerring wrote: > > As I wrote you need *single* quotes around strings in > > SQL statements. Double quotes won't do - this is SQL > > and not Python so you're dealing with a different lan- > > guage and thus dif

Re: Updating a filename's counter value failed each time

2013-06-17 Thread Jens Thoms Toerring
Νίκος wrote: > On 17/6/2013 8:54 μμ, Jens Thoms Toerring wrote: > > Also take care to check the filename you insert - a malicous > > user might cobble together a file name that is actually a SQL > > statement and then do nasty things to your database. I.e. never > >

Re: Updating a filename's counter value failed each time

2013-06-17 Thread Jens Thoms Toerring
eturns the number of rows modified by an INSERT or UPDATE. > Since for sure the filename the user selected is represented by a record > inside 'files' table why its corresponding counter never seems to get > updated? I would guess because you

Re: How to create new python file with increament number, if doesn't exist?

2013-05-27 Thread Jens Thoms Toerring
ythons open() function which rather likeky is based on C's fopen() function). The best advice to avoid such problems is probably not to open files with a predictable name (or better to use one of the methods to create files with names guaranteed to be unique by the system) in directories to wh

Re: in need of some help...

2013-05-12 Thread Jens Thoms Toerring
Chris Angelico wrote: > On Mon, May 13, 2013 at 7:56 AM, Jens Thoms Toerring wrote: > > Chris “Kwpolska” Warrick wrote: > >> Gmail automatically hides long quotes. This is helpful in situations > >> like this one. More mail software should implement that > >

Re: in need of some help...

2013-05-12 Thread Jens Thoms Toerring
Chris “Kwpolska” Warrick wrote: > (slightly offtopic, sorry.) > On Sun, May 12, 2013 at 12:20 AM, Jens Thoms Toerring > wrote: > > PS: If I may ask you a favor: consider refraining from using Google's > > completely broken interface to newsgroups - your post cons

Re: in need of some help...

2013-05-11 Thread Jens Thoms Toerring
Alex Norton wrote: > On Wednesday, 1 May 2013 13:15:28 UTC+1, Jens Thoms Toerring wrote: > > Of course, it might be nicer to have a "result" label some- > > where in the graphical interface which you set to the text > > instead of printing it out to the console.

Re: Making safe file names

2013-05-07 Thread Jens Thoms Toerring
rtists name) to a number. The drawback, of course, is that you can't translate back from the hash value to the original name (if that would be simple the whole thing wouldn't work;-) Regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Jens Thoms Toerring
In comp.lang.python Roy Smith wrote: > In article , > j...@toerring.de (Jens Thoms Toerring) wrote: > > Well, that didn't have a happy ending:-( Should have listened to > > my parents when they told me again and again "Never use Perl, just > > say no!". S

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Jens Thoms Toerring
In comp.lang.python Rainer Weikusat wrote: > j...@toerring.de (Jens Thoms Toerring) writes: > > In comp.lang.python Steven D'Aprano > > wrote: > >> On Sun, 05 May 2013 12:11:11 -0500, Ignoramus16992 wrote: > > > >> > According to CIO.com

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Jens Thoms Toerring
nd should I, while it lasts, get the Perl or the Python salary, or the mean or both combined? Got to consider that when applying for my next job! Regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with loading file into an array

2013-05-05 Thread Jens Thoms Toerring
and hopefully will get you started. Concerning reading other files: here I may not understand your problem since it looks rather trivial to me by simply passing the open() method of 'Image' the name of a file in a different directory. Regards, Jens --

Re: Sum operation in numpy arrays

2013-05-02 Thread Jens Thoms Toerring
like a = numpy.array( [ 1, '2', 3, 4, 5 ] ) (note the single quotes around 2, that will result in the element having a type of 'numpy.string'. But if it's like that is impossible to tell without seeing the real code you're using;-) I guess you will have to g

Re: in need of some help...

2013-05-01 Thread Jens Thoms Toerring
emoves Water, you win!' ) ... Now, when during the game the 'Air' button is clicked this function will get called. Of course, it might be nicer to have a "result" label some- where in the graphical interface which you set to the text instead of printing it out to the console. And you also will probably add some "Quit" button to end the game. Regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: File Read issue by using module binascii

2013-04-28 Thread Jens Thoms Toerring
haracter (i.e. single letter strings) and re- assembled it using join() and a for loop: r = list( rawdata( ) z = ''.join( x for x in r ) The second line alone took about 1.7 times longer than the whole, seemingly convoluted c1() function! What I take away from this is that a lot of the assumption one is prone to make when coming from e.g. a C/C++ background can be quite misleading when extrapolating to Python (or other in- terpreted languages)... Best regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: Nested For loop not running full

2013-04-26 Thread Jens Thoms Toerring
esponding value from the file (what you assign to 'classification') is simply the value of the dictionary for the key given by 'reg_num'. i.e. classification = d[ reg_num ] Regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess.call

2013-04-19 Thread Jens Thoms Toerring
"¶m4={3}¶m5={4}'" ) .format( value1, value2, value3, value4, value5 ) ] Note that there was one value for creating the string to be passed to lynx was mising. Regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to same file from two threads

2013-02-27 Thread Jens Thoms Toerring
Antoine Pitrou wrote: > Jens Thoms Toerring toerring.de> writes: > > > > Paul Rubin nospam.invalid> wrote: > > > jt toerring.de (Jens Thoms Toerring) writes: > > > > in garbled output (i.e. having some output from A inside a > > > > line

Re: Writing to same file from two threads

2013-02-26 Thread Jens Thoms Toerring
Paul Rubin wrote: > j...@toerring.de (Jens Thoms Toerring) writes: > > in garbled output (i.e. having some output from A inside a > > line written by B or vice versae) because the "main thread" or > Yes they do get garbled like that. Preferred Python style is put a

Writing to same file from two threads

2013-02-26 Thread Jens Thoms Toerring
n the latter case I would be grateful for an explanation what mechanism is responsible for this never to happen. Thanks and best regards, Jens PS: I already have determined experimentally that a context switch definitely can happen between two calls of write() (and I expecte

Re: Messing with the GC

2013-01-20 Thread Jens Thoms Toerring
Terry Reedy wrote: > On 1/20/2013 3:09 PM, Jens Thoms Toerring wrote: > > thank you for the explanations. I had overlooked the > > cyclic nature of what I had produced here and, of course, > > the GC can't be blamed for not collecting objects that are > > par

Re: Messing with the GC

2013-01-20 Thread Jens Thoms Toerring
nd best regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Messing with the GC

2013-01-19 Thread Jens Thoms Toerring
efore. But then there are obviously no calls of the destructors of neither the second instance of the X class nor of the Y class instance. Shouldn't they be invoked before the program ends? Thanks and best regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: how to solve complex equation?

2013-01-01 Thread Jens Thoms Toerring
ed derivative of the function with respect to SN+1 (wbich you can take to be x). Regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange effect with import

2012-12-21 Thread Jens Thoms Toerring
lobal variables;-) Probably the guys that wrote the SocketServer module indeed didn't expect people as dense as me to use their module and thus didn't mention that passing additional information to a handler object can be done this way... Best regards,

Re: Strange effect with import

2012-12-20 Thread Jens Thoms Toerring
sting at a first glance. Thank you for these ideas, I'll need a bit of time to figure out these new concepts and I don't think I'm up to it tonight any- more;-) Best regards. Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange effect with import

2012-12-20 Thread Jens Thoms Toerring
o accept just one argument, 'self'. And even if I would change the method to accept more arguments and that wouldnt blow up into my face, where would they be coming from (and from where would I pass them)? Best regards, Jens -- \ Jens Thoms T

Re: Strange effect with import

2012-12-20 Thread Jens Thoms Toerring
Thanks a lot to all three of you: that helped me understand the errors of my ways! You just saved me a few more hours of head-scratching;-) A few replies to the questions and comments by Steven: Steven D'Aprano wrote: > On Thu, 20 Dec 2012 20:39:19 +0000, Jens Thoms Toerring wrote: &g

Strange effect with import

2012-12-20 Thread Jens Thoms Toerring
simulate a kind of global variable shared between different files. Best regards, Jens -- \ Jens Thoms Toerring ___ j...@toerring.de \__ http://toerring.de -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expression for words (with umlauts, without numbers)

2011-05-13 Thread Jens Lechtenboerger
On 2011-05-13, Peter Otten wrote: > Jens Lechtenboerger wrote: > >> I'm looking for a regular expression to recognize natural language >> words with umlauts but without numbers. While \w with re.U does >> recognize words with umlauts, it also matches numbers, whic

Regular Expression for words (with umlauts, without numbers)

2011-05-13 Thread Jens Lechtenboerger
âãäåæ...]? I guess there should be a better way as \w appears to know about alphabetical characters... Thanks in advance Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding a cookie

2010-01-17 Thread Jens Müller
. You just need to send the cookie's value in the HTTP header. E.g. urllib2 can do this like this: request = urllib2.Request(url, None, {'Cookie': '$Version="1"; cookieName="CookieValue"; $Path=/cookiePath'}) Regards, Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: decode(..., errors='ignore') has no effect

2010-01-12 Thread Jens Müller
To convert unicode into str you have to *encode()* it. u"...".decode(...) will implicitly convert to ASCII first, i. e. is equivalent to u"...".encode("ascii").decode(...) Hence the error message Ah - yes of course. And how can you use the system's default encoding with errors=ignore? The de

decode(..., errors='ignore') has no effect

2010-01-12 Thread Jens Müller
Hi, I try to decode a string,e.g. u'M\xfcnchen, pronounced [\u02c8m\u028fn\xe7\u0259n]'.decode('cp1252', 'ignore') but even thoug I use errors='ignore' I get UnicodeEncodeError: 'charmap' codec can't encode character u'\u02c8&#x

Re: Speeding up network access: threading?

2010-01-05 Thread Jens Müller
nking of possible conflict situations that maybe could happen when two threads append their results to that same result list at the same moment. Regards, Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: Speeding up network access: threading?

2010-01-05 Thread Jens Müller
list does not matter. Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: Speeding up network access: threading?

2010-01-05 Thread Jens Müller
list does not matter. Jens -- http://mail.python.org/mailman/listinfo/python-list

Speeding up network access: threading?

2010-01-04 Thread Jens Müller
Hello, what would be best practise for speeding up a larger number of http-get requests done via urllib? Until now they are made in sequence, each request taking up to one second. The results must be merged into a list, while the original sequence needs not to be kept. I think speed could be

Re: join a samba domain

2008-12-22 Thread Jens Henrik Leonhard Jensen
Toff wrote: d = c.Win32_ComputerSystem d.JoinDomainOrWorkGroup(None, 3, "mydom", "mydompw", r"admin\\mydom") Shouldn't r"admin\\mydom" be "admin\\mydom" or r"admin\mydom". Or maybe just "admin" /Jens Henrik -- http://mail.python.org/mailman/listinfo/python-list

Re: flock seems very unsafe, python fcntl bug?

2008-06-22 Thread Jens Henrik Leonhard Jensen
Your problem is that open(...,'w') is not locked. Use something like: lockf = open('aaa', 'a') fnctl.flock(lockf,fnctl.LOCK_EX) file = open('aaa', 'w') file.write('asdf') file.close() lockf.close() [EMAIL PROTECTED] wrote: I ran following 2 programs (lock1, lock2) at almost same time, to write

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 3:16 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > Jens schrieb: > > > Hello Everyone. > > > I am relatively new to Zope(using it for a work project) and I was > > wondering if someone here could help me out or at least refer me to a > > dec

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 3:16 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > Jens schrieb: > > > Hello Everyone. > > > I am relatively new to Zope(using it for a work project) and I was > > wondering if someone here could help me out or at least refer me to a > > dec

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 2:45 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > >> You might have wrong assumptions from previous PHP experiences. > > >>  >>> 'x'+4 > >> Traceback (most recent call last): > >>    File "&

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 2:45 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > >> You might have wrong assumptions from previous PHP experiences. > > >>  >>> 'x'+4 > >> Traceback (most recent call last): > >>    File "&

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 2:45 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > >> You might have wrong assumptions from previous PHP experiences. > > >>  >>> 'x'+4 > >> Traceback (most recent call last): > >>    File "&

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 1:59 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > > I've the checked that i'm referring to the variables correctly, so the > > only explanation i can come up with, is that '+' doesn't result in a > > string concatenat

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 1:59 pm, Marco Mariani <[EMAIL PROTECTED]> wrote: > Jens wrote: > > I've the checked that i'm referring to the variables correctly, so the > > only explanation i can come up with, is that '+' doesn't result in a > > string concatenat

Zope/DTML Infuriating...

2008-04-29 Thread Jens
Hello Everyone. I am relatively new to Zope(using it for a work project) and I was wondering if someone here could help me out or at least refer me to a decent documentationg for Zope/DTML/Python (at the detail level of php.net or Java API reference). http://www.zope.org/Documentation/Books/Zope

Re: Terse Syntax through External Methods

2008-01-29 Thread Jens
On Jan 25, 3:19 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Jens schrieb: > > > > > Hello Everyone > > > I'm newbie to Zope and i have a few questions regarding external > > methods. What i wan't to do > > is provide

Terse Syntax through External Methods

2008-01-25 Thread Jens
Hello Everyone I'm newbie to Zope and i have a few questions regarding external methods. What i wan't to do is provide a terse syntax for converting urls to special tracking urls: http://myurl/')"> turns the provided url into something like http://host/tracking?url=http%3A%2F%2Fmyurl%2F in th

Re: Code Management

2007-11-21 Thread Jens
On 21 Nov., 05:34, Ben Finney <[EMAIL PROTECTED]> wrote: > > I hope the above makes it clearer what I prefer for this situation. > It does. You've been most helpful - thanks a lot! I'll bookmark this thread and keep it under my pillow :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Code Management

2007-11-20 Thread Jens
On 21 Nov., 04:16, Jens <[EMAIL PROTECTED]> wrote: > On 21 Nov., 01:46, [EMAIL PROTECTED] wrote: > > > > > On Nov 20, 4:09 pm, Jens <[EMAIL PROTECTED]> wrote: > > > > Dear Reader, > > > > I'm writing some modules in Python, and I&#x

Re: Code Management

2007-11-20 Thread Jens
On 21 Nov., 01:46, [EMAIL PROTECTED] wrote: > On Nov 20, 4:09 pm, Jens <[EMAIL PROTECTED]> wrote: > > > Dear Reader, > > > I'm writing some modules in Python, and I'm also using unittests. I'm > > wondering about some things: > > I'd love

Code Management

2007-11-20 Thread Jens
Dear Reader, I'm writing some modules in Python, and I'm also using unittests. I'm wondering about some things: 1) Should I put my unittests in a subdirectory? Does the subdirectory have to be a package? 2) Does the main folder /myproject have to be a package? Should I put my modules directly un

Re: pydoc - how to generate documentation for an entire package?

2007-11-20 Thread Jens
On 20 Nov., 08:19, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Mon, 19 Nov 2007 10:50:28 -0800, Jens wrote: > > Generating documentation form code is a nice thing, but this pydoc.py > > is driving me insane - isn't there are better way? > > Ep

Re: pydoc - how to generate documentation for an entire package?

2007-11-20 Thread Jens
On 20 Nov., 08:20, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 19, 12:50 pm, Jens <[EMAIL PROTECTED]> wrote: > > > > > On 8 Nov., 02:46, Jens <[EMAIL PROTECTED]> wrote: > > > > I have a project/package for which I want to gene

Re: display messages in python shell

2007-11-19 Thread Jens
On 19 Nov., 19:48, [EMAIL PROTECTED] wrote: > Is it possible to display messages in the python shell? I want to > display error messages based on parameters in my scripts to the > users. Is there another way to display messages other than log > files? Thanks. > > Kou What about using print? For

Re: pydoc - how to generate documentation for an entire package?

2007-11-19 Thread Jens
On 8 Nov., 02:46, Jens <[EMAIL PROTECTED]> wrote: > I have a project/package for which I want to generate documentation > usingpydoc. > > My problem is that when I type "pydoc.py -w MyPackage" it only > generates documentation for the package - no modules, class

Re: Using python as primary language

2007-11-08 Thread Jens
On 8 Nov., 08:52, Michel Albert <[EMAIL PROTECTED]> wrote: > In our company we are looking for one language to be used as default > language. So far Python looks like a good choice (slacking behind > Java). A few requirements that the language should be able cope with > are: > > * Database access t

pydoc - how to generate documentation for an entire package?

2007-11-07 Thread Jens
I have a project/package for which I want to generate documentation using pydoc. My problem is that when I type "pydoc.py -w MyPackage" it only generates documentation for the package - no modules, classes or methods or sub-packages. Just a single HTML file called "MyPackage.html" That's strange

Re: Looking for a good Python environment

2007-11-06 Thread Jens
Just wrote a mini "review" of three Python code editors on my blog... http://pyminer.blogspot.com/2007/11/python-code-editors.html I use PSPad or Notepad++ for quick editing, and Komodo Edit 4.2 for longer sessions. Komodo Edit is the only one with code completion - a very nice feature. You can p

Re: Python good for data mining?

2007-11-06 Thread Jens
> > Jens, > > You might be interested in this > bookhttp://www.oreilly.com/catalog/9780596529321/index.html > which is new, I just ordered my copy. From the contents shown online, > it has lot of applicability to data mining, using Python, although it > its primary topi

Re: Python good for data mining?

2007-11-05 Thread Jens
On 5 Nov., 16:29, Maarten <[EMAIL PROTECTED]> wrote: > As for pytables: it is the most elegant programming interface for HDF > on any platform that I've encountered so far. Most other platforms > stay close the HDF5 library C-interface, which is low-level, and quite > complex. PyTables was written

Re: Python good for data mining?

2007-11-05 Thread Jens
On 5 Nov., 16:29, Maarten <[EMAIL PROTECTED]> wrote: > On Nov 5, 1:51 pm, Jens <[EMAIL PROTECTED]> wrote: > "Premature optimization is the root of all evil", to quote a famous > person. And he's right, as most people working larger codes will > confirm

Re: Python good for data mining?

2007-11-05 Thread Jens
On 5 Nov., 04:42, "D.Hering" <[EMAIL PROTECTED]> wrote: > On Nov 3, 9:02 pm, Jens <[EMAIL PROTECTED]> wrote: > > > > > I'm starting a project indatamining, and I'm considering Python and > > Java as possible platforms. > > >

Re: Python good for data mining?

2007-11-04 Thread Jens
> > What if I were to use my Python libraries with a web site written in > > PHP, Perl or Java - how do I integrate with Python? > > Possibly the simplest way would be python .cgi files. The cgi and cgitb > modules allow form data to be read fairly easily. Cookies are also > fairly simple. For a

Python good for data mining?

2007-11-03 Thread Jens
I'm starting a project in data mining, and I'm considering Python and Java as possible platforms. I'm conserned by performance. Most benchmarks report that Java is about 10-15 times faster than Python, and my own experiments confirms this. I could imagine this to become a problem for very large da

Embedding Python in a multithreaded managed C++ application

2007-10-16 Thread jens . hester
Hi experts, I am currently embedding the Python interpreter 2.3.4 in a managed C++ application (I currently use an unmanaged dll which is linked to Python23.lib). Forget about Ironpython - no binary compatibility for extension modules, forget about a decent C API, by the way... After a lot of work

Re: Metaclass v.s. Property function.

2007-08-14 Thread Jens Thiede
On Aug 11, 6:06 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > Jens Thiede <[EMAIL PROTECTED]> wrote: > > I don't like the property function, usable in the new-style classes, > > because having to remember to manage a list of "foo = property(...)" >

Metaclass v.s. Property function.

2007-08-11 Thread Jens Thiede
or impractical. The metaclass is here: http://pastebin.com/m5b06b571 and some simple testcode is here: http://pastebin.com/m382f2ae9. Notice the first line though. Thanks for any replies, Jens Thiede. -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a wxPython GUI builder

2007-06-15 Thread Jens Thiede
On Jun 16, 3:18 am, Dick Moores <[EMAIL PROTECTED]> wrote: > How about SPE? > > Any others? > > And which ones do people > actually use? Commercial or Freeware. > > Thanks, > > Dick Moores There's Boa Constructor... (http://boa-constructor.sourceforge.net/ Screenshots). I haven't actually used it

Custom wxPython Widget

2007-06-15 Thread Jens Thiede
What is the best source code to read? Any tips; suggestions? Thanks in advance Jens Thiede -- http://mail.python.org/mailman/listinfo/python-list

Re: idea for testing tools

2007-02-08 Thread Jens Theisen
assert a == b didn't reveal the values for a and b, though some more complex cases showed something. -- Cheers, Jens -- http://mail.python.org/mailman/listinfo/python-list

idea for testing tools

2007-02-07 Thread Jens Theisen
valuate(frame.f_globals, frame.f_locals), statement) finally: del frame -- Cheers, Jens -- http://mail.python.org/mailman/listinfo/python-list

beginner's refcount questions

2006-10-29 Thread Jens Theisen
her minor question: Is there a way to query the use count of an object? This would be useful for debugging and testing. -- Cheers, Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Quest for the Holy Grail (a PyGame game)

2006-07-31 Thread Horst F. JENS
very nice game, i like it. -Horst -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with namespaces using eval and exec

2006-05-17 Thread Jens
Thanks a lot, that works for me. -- http://mail.python.org/mailman/listinfo/python-list

problem with namespaces using eval and exec

2006-05-16 Thread Jens
Hi, has anyone an idea why the following code does not work. s = """ def a(n): return n*n def b(t): return a(t) """ ns = {} exec(s, {}, ns) eval("b(2)", ns, {}) executing this script raises an exception (NameError: global name 'a' is not defined) in the last line. Hope for your help

eval and exec in an own namespace

2006-05-09 Thread Jens
Hi, has anyone an idea why the following code does not work. s = """ def a(n): return n*n def b(t): return a(t) """ ns = {} exec(s, {}, ns) eval("b(2)", ns, {}) executing this script raises an exception (NameError: global name 'a' is not defined) in the last line. Hope for your help. --

Pyexcelerator

2006-04-06 Thread Jens Kabella
colours in my XML script. Is there anybody who have done this? Best regards Jens Kabella -- http://mail.python.org/mailman/listinfo/python-list

Re: Another try at Python's selfishness

2006-02-04 Thread Jens Theisen
tand with "self", and this discrapency between the number of arguments and parameters puts newbies to it. Jens -- http://mail.python.org/mailman/listinfo/python-list

Graphical introspection utilities?

2006-02-04 Thread Jens Theisen
Hello, as it would be so obviously a good thing to have a graphical (or maybe curses-base) browser through the dynamic state of a Python program, it's probably there. Can someone point me to something? Cheers, Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs C for a mail server

2006-01-31 Thread Jens Theisen
Paul wrote: > Or should I be looking for some other context here? Three people were looking at the wrong one, thanks for putting this right. I really should not have given my point that briefly. Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs C for a mail server

2006-01-31 Thread Jens Theisen
at Python is doing it wrong. I'm sorry to hear this, and whilst I'm certainly lacking experience in Python, I'm not one of those people. > All I can say is that if you spend time with Python (and more > importantly, read quality, well-established Python code that's already > out there), you'll see and understand the Python way of doing things. I will. Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs C for a mail server

2006-01-29 Thread Jens Theisen
since we use three general-purpose languages: Python, Java, C++. I have no doubt that goolge know what they're doing, and if you're working there then you're likely to know what you're talking about. I found it especially astonishing what you had to say against the use of smart pointers. Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs C for a mail server

2006-01-29 Thread Jens Theisen
eason. And there is another point that there are good Python bindings for the the more important C libraries, but usually no decent C++ wrapper for it. Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: writing large files quickly

2006-01-28 Thread Jens Theisen
ater point, so this makes it more efficient. I wonder how other file systems behave. > I read somewhere that it has a use in database software, but the only > thing I can imagine for this is when using heap queues > (http://python.active-venture.com/lib/node162.html). That's an a

Re: Python vs C for a mail server

2006-01-28 Thread Jens Theisen
d, but if anyone could make a point of how Python's disadvantages in these regards could be alleviated, I'd be very interested. Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: writing large files quickly

2006-01-28 Thread Jens Theisen
that location will cause the filesystem to return a block of NULs. Are you sure that's not just a case of asynchronous writing that can be done in a particularly efficient way? df quite clearly tells me that I'm running out of disk space on my ext2fs linux when I dump it

Re: writing large files quickly

2006-01-28 Thread Jens Theisen
h only zeroes are meaningful is testing, and that's exactly when you don't want that optimisation. On compressing filesystems such as ntfs you will get this behaviour as a special case of compression and compression makes more sense. Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: writing large files quickly

2006-01-28 Thread Jens Theisen
system/file system? As far as I know this should be file system dependent at least under Linux, as the calls to open and seek are served by the file system driver. Jens -- http://mail.python.org/mailman/listinfo/python-list

Re: calling python from C#...

2006-01-23 Thread Jens Theisen
There is IronPython which compiles to .NET. And there was another project bridging the .NET runtime with the standard Python interpreter of which I forgot the name. Jens -- http://mail.python.org/mailman/listinfo/python-list

Output: Number of digits in exponent?

2005-12-06 Thread Jens Bloch Helmers
Speed is an issue so I don't like the idea of rolling my own output function. It should be possible to do: >>> print '%12.5.2e' % (1.0e50) 1.000e+50 Thanks for any help! Jens -- http://mail.python.org/mailman/listinfo/python-list

2.4 or 2.3.4 for 2.3 software?

2004-12-01 Thread Jens Bloch Helmers
Can we expect the current release of 2.4 to be just as reliable as 2.3.4 for 2.3 compliant software? Thanks for any help! Jens -- http://mail.python.org/mailman/listinfo/python-list