Fwd: How can I build embeddable zip python on Linux

2020-06-04 Thread Filip Bascarevic
Windows. Please, can you give me some instructions how can I build embeddable Python from source in Linux? Is it possible in the Linux environment? Please let me know if I can assist any further. With best regards, M.Eng. Filip Bascarevic -- https://mail.python.org/mailman/listinfo

Python CI and CD support available on Semaphore (feedback appreciated)

2015-09-08 Thread Filip Komnenović
HI folks, We have recently launched Python support on our continuous integration and deployment service and are looking for communities feedback. If you're up for it, please give a test drive to our service with your Python projects and give us your thoughts on what we could further improve up

Re: ANN: geany-pyflakes 1.0

2011-08-05 Thread Filip Gruszczyński
again, but I really, really don't wanto to touch autotools again. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: geany-pyflakes 1.0

2011-08-05 Thread Filip Gruszczyński
anything with it. I have posted a gzipped version with a fix. Would you care to take a look? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

ANN: geany-pyflakes 1.0

2011-08-05 Thread Filip Gruszczyński
/ -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

ANN: fathom 0.4.0, fathom-tools 0.1.0, qfathom 0.1.0

2011-06-16 Thread Filip Gruszczyński
http://code.google.com/p/fathom-tools qfathom QFathom is graphical tool written in python3 and PyQt for inspecting the database. It is basically a graphical frontend for fathom. http://code.google.com/p/qfathom/ And once again any kind of ideas or comments would be greatly appreciated. -- Filip Gruszcz

ANN: Fathom 0.3.0

2011-05-15 Thread Filip Gruszczyński
ction for finding procedures that access a table -> fathom2graphviz draws lines between columns for foreign key -> fathom2graphviz and fathom2django can now print output to a file, rather than to std -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

ANN: fathom 0.2.0

2011-04-09 Thread Filip Gruszczyński
ity-relationship diagrams in graphviz dot language, that can be turned into pdf or image files -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: fathom 0.2.0

2011-04-09 Thread Filip Gruszczyński
I forgot links: Homepage: http://code.google.com/p/fathom/ Documentation: http://code.google.com/p/fathom/wiki/Manual -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

ANN: fathom 0.1.0

2011-03-19 Thread Filip Gruszczyński
comments and additional ideas for new features.. Documentation can be found here: http://code.google.com/p/fathom/wiki/Manual Package can be downloaded from PyPi or from here: http://code.google.com/p/fathom/downloads/list -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python

Re: function annotations in open source projects

2011-03-16 Thread Filip Gruszczyński
Thanks for the links. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

function annotations in open source projects

2011-03-14 Thread Filip Gruszczyński
Do you know any open source python3 projects that use function annotations? I would like to see some real use, so maybe I find them useful to use in my own project. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

RE: [melbourne-pug] array matching

2010-04-29 Thread Filip
You could use dictionary of lists test = { A: [1, 3], B: [2, 4] } print test[A] [1, 3] test[A].append(5) print test[A] [1, 3, 5] Cheers, Fil _ From: melbourne-pug-bounces+filipz=3g.nec.com...@python.org [mailto:melbourne-pug-bounces+fil

Re: msvcr90.dll is MIA?

2010-04-15 Thread Filip
Maybe this is a stupid question. I don't know, I don't use windows. But what's so special about msvcr and visual studio compiler? Python compiles fine with gcc under unixes, so is it a problem to compile python interpreter with mingw and get rid of the proprietary runtime dependecies? Or does the w

ANN: logbuilder 0.1.0a

2009-12-21 Thread Filip Gruszczyński
more information, please come to http://code.google.com/p/logbuilder/. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Which is more pythonic?

2009-12-03 Thread Filip Gruszczyński
combo box. Still, it's two lines instead of one, so maybe it's not the best. So, which one is? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Validating positional arguments in optparse

2009-10-23 Thread Filip Gruszczyński
the dirty work of checking that arguments are all right for me and wanted to know the reason, it doesn't. I guess I should write a subclass, which would do just that. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Validating positional arguments in optparse

2009-10-23 Thread Filip Gruszczyński
rgument in OptionParser. Is it possible to do this, or was it intentionaly left this way? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: python fast HTML data extraction library

2009-07-26 Thread Filip
page templates) to say that the library is 'tested'... On Jul 26, 5:51 pm, John Machin wrote: > On Jul 23, 11:53 am, Paul McGuire wrote: > > > On Jul 22, 5:43 pm, Filip wrote: > > > # Needs re.IGNORECASE, and can have tag attributes, such as > CLEAR="ALL&q

python fast HTML data extraction library

2009-07-22 Thread Filip
h them all by myself. regards, Filip Sobalski -- http://mail.python.org/mailman/listinfo/python-list

Re: Specific iterator in one line

2009-06-30 Thread Filip Gruszczyński
Oh, and there is additional requirement: it must be a one liner with at most 80 characters ;-) W dniu 30 czerwca 2009 10:44 użytkownik Filip Gruszczyński napisał: > This is purely sport question. I don't really intend to use the answer > in my code, but I am wondering, if such a fe

Specific iterator in one line

2009-06-30 Thread Filip Gruszczyński
a', 'b', 'b'] The easy way is to return a tuple ('b', 'b') for 1s and then flatten them. But this doesn't seem very right - I'd prefer to create a nice iterable right away. Is it possible to achieve this? Curiosly, the other way round is pret

urllib2 urlopen takes too much time

2009-06-21 Thread Filip Gruszczyński
tool written in C#, that also uses those web services and it worked much faster, so it doesn't seem to be connection problem. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

ECG segmentation

2009-05-08 Thread Filip Gruszczyński
Hi! I need to create a script, that performs ECG segmentation, but I can hardly find any useful materials on the web. Did anyone try to do this and could point me to some good materials/snippets about this? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic emptiness checking

2009-04-29 Thread Filip Gruszczyński
Yes, I get the difference. If x is [], than if x: won't be executed and if x is not None: will be. Thanks for clarifying. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Pythonic emptiness checking

2009-04-29 Thread Filip Gruszczyński
None: Because I often encounter it and would like to know, if I can simplify it. Especially that I liked similar construction in C/C++. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Too early implementation

2009-04-18 Thread Filip Gruszczyński
lly wrong with the design. It was then, that I started wondering: maybe I should first prepare some good design documents, I don't know some SAD or something. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Too early implementation

2009-04-18 Thread Filip Gruszczyński
ign get so annoying, that you need to do something about them. Usually at that point it's a bit problematic ;-) So, do you know some good methods to prevent myself from just starting coding (which I like very much) and do some thinking about the problem (which I like a little less ;-))? -- Fil

Re: Script for a project inside own directory

2009-03-22 Thread Filip Gruszczyński
Works great. Thanks a lot. 2009/3/22 Maxim Khitrov : > 2009/3/22 Filip Gruszczyński : >> I am having a project built like this: >> >> project >>   module1.py >>   module2.py >>   packages1/ >>     module3.py >> >> etc. >> >> I

Script for a project inside own directory

2009-03-22 Thread Filip Gruszczyński
r. I like to keep it clean. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Script in /usr/bin doesn't see my packages

2009-03-01 Thread Filip Gruszczyński
ripts: i put an import statement there and run them (they are outside of development directory) and they import stuff just the way they should. But when I put them into /usr/bin they stop. Could anyone help me on this? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a class instance like a function

2009-02-18 Thread Filip Gruszczyński
t value: > >myClass(5.0) > > I can override the "()" operator in C++, so I'm wondering if there's a way to > do it in Python as well. > > Thanks! > -- > http://mail.python.org/mailman/listinfo/python-list > -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Tree views - Best design practices

2009-01-08 Thread Filip Gruszczyński
. But I am looking for a different type of flexibility. I would like to be able to add more classes to my hierarchy and not have to change my code in many places when I add new class to the hierarchy. If I have to change every class in the hierarchy because I add new class, then it's not somethi

Re: Tree views - Best design practices

2009-01-08 Thread Filip Gruszczyński
in the gui). I believe it's just the same as asking for the class, but we hide it under static methods. It's no different though. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Tree views - Best design practices

2009-01-08 Thread Filip Gruszczyński
d provide additional info, but then I had to keep relations between objects in two places (relations between real groups and elements and wrapper groups and wrapper elements), which wasn't the right way to do. I just can figure a simple, elegant way to do this. -- Filip Gruszczyński -- http

Re: Tree views - Best design practices

2009-01-08 Thread Filip Gruszczyński
gt; e.operations > 'Element operations' >>>> g.operations > 'Group operations' But this is the same as asking for a class, except for having to write a method giving some form of a class name and then basing on this classname display operations. I know this solution, but this is what I would like to evade. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Tree views - Best design practices

2009-01-08 Thread Filip Gruszczyński
is wrong. But I can hardly see any easy and more maintainable solution for this problem. Could you help me with this? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: deleting a method

2009-01-04 Thread Filip Gruszczyński
>>> 'foo' in dir(a) >True >>>> del A.foo >>>> 'foo' in dir(a) >False Thanks, now I see, what happens, but don't exactly know why. Could you point me to some good explanation how object creation is performed in Pytho

deleting a method

2009-01-03 Thread Filip Gruszczyński
uteError: A instance has no attribute 'foo' Why is it so and how may still delete it? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing None objects from a sequence

2008-12-13 Thread Filip Gruszczyński
Just to be clear, I decided to use generator by alex23, as it seems simple, short and understandable. Still reading this thread was quite interesting, thanks :-) -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing None objects from a sequence

2008-12-12 Thread Filip Gruszczyński
ever. I like the last one a lot :) -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing None objects from a sequence

2008-12-12 Thread Filip Gruszczyński
I don't mean memory, but space in code ;-) I'll try this generator :) -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Removing None objects from a sequence

2008-12-12 Thread Filip Gruszczyński
ow if that's the best way. I checked itertools, but the only thing that seemed ok, was ifilter - this requires seperate function though, so doesn't seem too short. How can I get it the shortest and fastest way? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Do more imported objects affect performance

2008-12-01 Thread Filip Gruszczyński
I see. Thanks for a really good explanation, I like to know, how to do things in the proper way :) 2008/12/1 Nick Craig-Wood <[EMAIL PROTECTED]>: > Rafe <[EMAIL PROTECTED]> wrote: >> On Dec 1, 7:26?am, "Filip Gruszczy?ski" <[EMAIL PROTECTED]> wrote: >

Re: pydoc enforcement.

2008-11-30 Thread Filip Gruszczyński
e, precise class names > mightn't be mentioned (since we mightn't know what is being used > then), but having *some* description would certainly be helpful (I > feel). > > Even if no-one else is interested in this feature, I think it could > help my own development (and

Do more imported objects affect performance

2008-11-30 Thread Filip Gruszczyński
rbage" to this storage and make those searches longer? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Project structure - Best practices

2008-11-30 Thread Filip Gruszczyński
> http://jcalderone.livejournal.com/39794.html That's exactly what I have read before posting here ;-) -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Project structure - Best practices

2008-11-30 Thread Filip Gruszczyński
. When I use pychecker, it can't import this module and fails. Any suggestions, how can I avoid this and what structure should I use? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Two instances share an attribute

2008-11-15 Thread Filip Gruszczyński
Every day something new. Thanks a lot :) 2008/11/15 Cameron Simpson <[EMAIL PROTECTED]>: > On 15Nov2008 22:41, Filip Gruszczyński <[EMAIL PROTECTED]> wrote: > | I really don't understand, what's happening with the following code. > | Am I doing something wrong? &g

Two instances share an attribute

2008-11-15 Thread Filip Gruszczyński
elf.__values keeps old list? Can anyone explain it to me? I am using: Python 2.5.2 (r252:60911, Sep 14 2008, 23:49:00) [GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2 -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

XML validation in stdlib?

2008-06-14 Thread Filip Gruszczyński
Hi! I took a look at the standard library and tried to find some validation against schema tools, but found none. I googled, but found only links to external libraries, that can do some validation. Does it mean, that there is no validation in stdlib or have I just missed something? -- Filip

Ideas for master's thesis

2008-06-02 Thread Filip Gruszczyński
d would be close enough to the OOP, so I could present it to a mentor (he is cool with doing something for OSS community). -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Fill memeory with endless loop?

2008-05-13 Thread Filip Štědronský
On Út, kvě 13, 2008 at 06:49:33 +0200, globalrev wrote: > if i do something like > while 1: > print "x" > > will the program ever stop because it runs out of memory? No, there is no reason to run out of memory. This will simply make an everlasting x-printer and there is no need to store anyth

Re: Make Python create a tuple with one element in a clean way

2008-05-11 Thread Filip Štědronský
Hello, > so it would be clean if Python would convert anything put into ( ) to > be a tuple, even if just one value was put in (without having to use > that ugly looking comma with no value after it). if it worked that way, it will absolutely mess up Python syntax, because we mathematicians are u

Re: Unimport statement

2008-05-11 Thread Filip Štědronský
The main problem are references to objects within a module, because we can NEVER be sure there aren't any, even though we cleaned up everything, that's just a consequence of Python nature. We can keep the old objects referenced and it would make an equivalent to the reload() builting, just without

Re: Explicit variable declaration

2008-04-25 Thread Filip Gruszczyński
et in certain function (the same with fields in a class). I am finishing a small tool, that allows to create such declarations in similar manner to Smalltalk declarations. I hope I can post a link to it soon. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Explicit variable declaration

2008-04-23 Thread Filip Gruszczyński
on't quite get. How it may help me? Could you explain? -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Explicit variable declaration

2008-04-23 Thread Filip Gruszczyński
t;", line 1, in > @uses("x") > File "", line 8, in decorator > raise ValueError("%s: %s assigned but not declared" % (f.func_name, > ','.join(undeclared))) > ValueError: f: y assigned but not declared > > > >>> > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: Explicit variable declaration

2008-04-23 Thread Filip Gruszczyński
ear only specified variables. Like in smalltalk, if I remember correctly. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Explicit variable declaration

2008-04-22 Thread Filip Gruszczyński
. -- Filip Gruszczyński -- http://mail.python.org/mailman/listinfo/python-list

Re: achieving performance using C/C++

2007-11-05 Thread Filip Wasilewski
On Nov 5, 7:40 am, sandipm <[EMAIL PROTECTED]> wrote: > I did fair amount of programming in python but never used c/c++ as > mentioned below. > any good tutorials for using C/C++ to optimize python codebase for > performance? > how widely do they use such kind of mixed coding practices? [...] Sinc

Re: Using msvcrt (in Windows), how to catch Enter key?

2007-10-29 Thread Filip Wasilewski
On Oct 29, 11:26 am, Dick Moores <[EMAIL PROTECTED]> wrote: > Windows XP Pro, Python 2.5.1 > > import msvcrt > while True: > if msvcrt.kbhit(): > key = msvcrt.getch() > if key == 'Enter' > do something > > Is there a way to catch the pressing of the 'Enter' key? Yes

Re: Why doesn't Python's "robotparser" like Wikipedia's "robots.txt" file?

2007-10-02 Thread Filip Salomonsson
(perhaps adding <http://code.google.com/p/wikimarkup/> to convert the wiki markup to HTML). -- filip salomonsson -- http://mail.python.org/mailman/listinfo/python-list

Re: About alternatives to Matlab

2006-12-14 Thread Filip Wasilewski
Jon Harrop wrote: > Filip Wasilewski wrote: > > Jon Harrop wrote: > >> Filip Wasilewski wrote: > >> > Jon, both Python and Matlab implementations discussed here use the > >> > lifting scheme, while yours is a classic convolution based approach. > >

Re: About alternatives to Matlab

2006-12-13 Thread Filip Wasilewski
Jon Harrop wrote: > Filip Wasilewski wrote: > > Jon, both Python and Matlab implementations discussed here use the > > lifting scheme, while yours is a classic convolution based approach. > > I've done both in OCaml. The results are basically the same. Have you tried

Re: About alternatives to Matlab

2006-12-12 Thread Filip Wasilewski
Jon Harrop wrote: > Filip Wasilewski wrote: > > Besides of that this code is irrelevant to the original one and your > > further conclusions may not be perfectly correct. Please learn first > > about the topic of your benchmark and different variants of wavelet > > t

Re: About alternatives to Matlab

2006-12-04 Thread Filip Wasilewski
Jon Harrop wrote: [...] > I first wrote an OCaml translation of the Python and wrote my own > little "slice" implementation. I have since looked up a C++ solution and > translated that into OCaml instead: > > let rec d4_aux a n = > let n2 = n lsr 1 in > let tmp = Array.make n 0. in > for i=0

Re: About alternatives to Matlab

2006-11-19 Thread Filip Wasilewski
sturlamolden wrote: > > Actually, there was a typo in the original code. I used d1[l-1] where I > should have used d1[l+1]. Arrgh. Here is the corrected version, the > Matlab code must be changed similarly. It has no relevance for the > performance timings though. > > > def D4_Transform(x, s1=None,

Re: About alternatives to Matlab

2006-11-19 Thread Filip Wasilewski
sturlamolden wrote: [...] > Here is the correct explanation: > > The factorization of the polyphase matrix is not unique. There are > several valid factorizations. Our implementations corresponds to > different factorizations of the analysis and synthesis poyphase > matrices, and both are in a senc

Re: numpy: frequencies

2006-11-18 Thread Filip Wasilewski
robert wrote: > I have an integer array with values limited to range(a,b) like: > > ia=array([1,2,3,3,3,4,...2,0,1]) > > and want to speedly count the frequencies of the integers into get a density > matrix. > Is this possible without looping? See numpy.bincount (for integers >= 0) if you mean 'w

Re: About alternatives to Matlab

2006-11-17 Thread Filip Wasilewski
sturlamolden wrote: > Boris wrote: > > Hi, is there any alternative software for Matlab? Although Matlab is > > powerful & popular among mathematical & engineering guys, it still > > costs too much & not publicly open. So I wonder if there's similar > > software/lang that is open & with comparable

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-03 Thread Filip Wasilewski
robert wrote: > I'd like to use multiple CPU cores for selected time consuming Python > computations (incl. numpy/scipy) in a frictionless manner. > > Interprocess communication is tedious and out of question, so I thought about > simply using a more Python interpreter instances (Py_NewInterprete

Re: Visibility against an unknown background

2006-10-24 Thread Filip Salomonsson
On 10/24/06, Sergei Organov <[EMAIL PROTECTED]> wrote: > I'd be very upset to see, say, 5-6 highly intersecting > scientific plots on the same picture drawn using the > "marching ants" approach. I'd be a bit upset to see scientific plots *on a picture* at all

Re: A critique of cgi.escape

2006-09-25 Thread Filip Salomonsson
documentation isn't clear enough, that means the documentation should be fixed. It does _not_ mean "you are free to introduce new behavior because nobody should trust what this function does anyway". -- filip salomonsson -- http://mail.python.org/mailman/listinfo/python-list

Re: xmlrpc, extract data from http headers

2006-09-19 Thread Filip Wasilewski
Milos Prudek wrote: > > A better solution would be to extract cookies from headers in the > > request method and return them with response (see the code below). I > > Full solution! Wow! Thank you very much. I certainly do not deserve such > kindness. Thanks a lot Filip! Gla

Re: xmlrpc, extract data from http headers

2006-09-16 Thread Filip Wasilewski
Milos Prudek wrote: > > Overload the _parse_response method of Transport in your > > BasicAuthTransport and extract headers from raw response. See the > > source of xmlrpclib.py in the standard library for details. > > Thank you. > > I am a bit of a false beginner in Python. I have written only sho

Re: xmlrpc, extract data from http headers

2006-09-15 Thread Filip Wasilewski
Milos Prudek wrote: > I perform a XML-RPC call by calling xmlrpclibBasicAuth which in turn calls > xmlrpclib. This call of course sends a HTTP request with correct HTTP > headers. The response is correctly parsed by xmlrpclib, and I get my desired > values. > > However, I also need to get the raw H

Re: Searching for patterns on the screen

2006-09-15 Thread Filip Wasilewski
Jerry Hill wrote: > Hello all, > > I have a piece of code I could use some help optimizing. What I'm > attempting to do is periodically grab a screenshot, and search for 2D > patterns of black pixels in it. I don't care about any color other > than black. Here's some simple code that simulates m

Re: How to build extensions on Windows?

2006-09-07 Thread Filip Wasilewski
Jarek Zgoda wrote: > Filip Wasilewski napisa³(a): > > > There is an easy way to build Python extensions on Windows with MinGW > > and it works fine for me. Just follow these steps: > > It was brougt to my attention that mingw-compiled extensions for Python > 2.4 use oth

Re: How to build extensions on Windows?

2006-09-07 Thread Filip Wasilewski
Kevin D. Smith wrote: > I've written a simple Python extension for UNIX, but I need to get it > working on Windows now. I'm having some difficulties figuring out how > to do this. I've seen web pages that say that MS Visual Studio is > required, and other that say that's not true, that MinGW will

Re: sending mailing list with smtplib

2006-08-15 Thread Filip Salomonsson
an reuse your message object, but you need to delete the old header before setting a new one: <http://docs.python.org/lib/module-email.Message.html#l2h-3843> -- filip salomonsson -- http://mail.python.org/mailman/listinfo/python-list

Re: String negative indices?

2006-06-25 Thread Filip Wasilewski
Steven D'Aprano wrote: > On Sat, 24 Jun 2006 05:36:17 -0700, Filip Wasilewski wrote: > > > Steven D'Aprano wrote: > >> On Fri, 23 Jun 2006 02:17:39 -0700, Filip Wasilewski wrote: > >> > >> > [EMAIL PROTECTED] wrote: > >> > > >

Re: String negative indices?

2006-06-24 Thread Filip Wasilewski
Steven D'Aprano wrote: > On Fri, 23 Jun 2006 02:17:39 -0700, Filip Wasilewski wrote: > > > [EMAIL PROTECTED] wrote: > > > >> Logically, I should be able to enter x[-2:-0] to get the last and next to > >> last characters. However, since Python doesn

Re: String negative indices?

2006-06-23 Thread Filip Wasilewski
[EMAIL PROTECTED] wrote: > Logically, I should be able to enter x[-2:-0] to get the last and next to > last characters. However, since Python doesn't distinguish between positive > and negative zero, this doesn't work. Instead, I have to enter x[-2:]. Hooray! Logically there is no such thing as

Re: Update on Memory problem with NumPy arrays

2006-06-21 Thread Filip Wasilewski
sonjaa wrote: > Hi > > last week I posted a problem with running out of memory when changing > values in NumPy arrays. Since then I have tried many different > approaches and > work-arounds but to no avail. [...] Based on the numpy-discussion this seems to be fixed in the SVN now(?). Anyway, you

Re: python socket proxy

2006-06-06 Thread Filip Wasilewski
[EMAIL PROTECTED] wrote: > Hi all > > I am trying to create a lighweight tcp proxy server. [...] There is a bunch of nice recipies in the Python Cookbook on port forwarding. In the [1] and [2] case it should be fairly simple to add an extra authentication step with pyOpenSSL. [1] http://aspn.acti

Re: Extend Python

2005-09-01 Thread Filip Dreger
MethodDef is one simple line Bottomline: you need 5 additional lines of C code per procedure to make it usable from Python. Unless you have hundreds of procedures, there is no point in using special tools to do that. Especially if you need full control over the results. regards, Filip Dreger

Re: why "import wx" doesn't work?

2005-04-28 Thread Filip Dreger
lowing you to use all the names without "wx.". If you change "from something import *" to "import something", your code will always break, this is normal. regards, Filip Dreger -- http://mail.python.org/mailman/listinfo/python-list

Re: Can .py be complied?

2005-04-27 Thread Filip Dreger
e, probably something like: c: cd \ python24\python -OO) and then import your example.py, you will get a file example.pyo, which is also stripped of any documentation strings (a bit harder to decode). regards, Filip Dreger -- http://mail.python.org/mailman/listinfo/python-list

Re: func_code vs. string problem

2005-04-24 Thread Filip Dreger
ou really need *full* local namespace access? Why isn't access to > the actor.actor instance sufficient? !!! Yep, of course it is sufficient. Abondoning the obvious role_func() must have had some good reasons some time ago, but now I can not even remember them, probably they were not

Re: func_code vs. string problem

2005-04-23 Thread Filip Dreger
is also the case here :-). > But I'd have to know what your real use case is to tell you whether > or not this is worth the trouble. Why do you want to exec the > func_code anyway? Why can't you just call the function? I put the description in the other post. Perhaps it's jkust my design that's broken. Thanks again. regards, Filip Dreger -- http://mail.python.org/mailman/listinfo/python-list

Re: func_code vs. string problem

2005-04-23 Thread Filip Dreger
Uzytkownik "Steven Bethard" <[EMAIL PROTECTED]> napisal w wiadomosci news:[EMAIL PROTECTED] > Filip Dreger wrote: >> I am trying to find a way of executing functions without creating a >> nested scope, so they can share local and global namespace (even if >

Re: func_code vs. string problem

2005-04-23 Thread Filip Dreger
ey can share local and global namespace (even if they are declared in some other module). I _could_ turn them into strings and pass around as compiled objects, butthis would be very ugly. I am sure Python has some better, cleaner way to do this. regards, Filip Dreger -- http://mail.python.org/mailman/listinfo/python-list

func_code vs. string problem

2005-04-23 Thread Filip Dreger
i=foo() i.checkstring() i.checkfunction() # this throws exception; why??? 4. I try to find some help here, and hope to also gain better undesrtanding of how Python works :-) Thanks for any suggestions, regards, Filip Dreger -- http://mail.python.org/mailman/listinfo/python-list