Re: generate Windows exe on Linux

2012-02-23 Thread Waldek M.
a windows installation. Ah, that's the part I was missing :-) Thanks. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: generate Windows exe on Linux

2012-02-22 Thread Waldek M.
within Linux? That doesn't seem to have anything to do with Python, but you might want to google for cross-compiling. Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: InvalidResponseError: headers must be str

2012-01-02 Thread Waldek M.
't it? You may either wait a little, fix it yourself or pay someone to fix it for you, if you're in a hurry. Or stay with 2.5 / try upgrading to 3.x. The Python community is usually very helpful and friendly, but by *demanding& a fix ASAP you may accidentily step on people's toes :

Re: Dynamic variable creation from string

2011-12-07 Thread Waldek M.
ound like a good idea, though... >>> def foo(): global a a = 5 >>> foo() >>> print("The variable is: ", a) The variable is: 5 >>> Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Job Offer: 3 Python Backend Developer and other Positions in Berlin

2011-10-23 Thread Waldek M.
.python.org/community/jobs/ Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Freelance Django developer needed

2011-10-11 Thread Waldek M.
community/jobs/ There, you'd probably even earn credit for your posting :-) Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Request for research feedback

2011-09-15 Thread Waldek M.
On Thu, 15 Sep 2011 16:11:13 -0400, Prasad, Ramit wrote: > I don't want to be rude but... > Not rude: > Rude: You're right. I must have gotten a few bad habits I didn't even realize. Thanks. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Request for research feedback

2011-09-15 Thread Waldek M.
These long lines (a few times the limit of 78 characters per line) make your post unreadable. Thanks, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: what's the command for (cd ..) in python

2011-09-10 Thread Waldek M.
ructure is not a good idea, or at least something to be done carefully. I just wouldn't think to give it some special credit. Thanks Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: what's the command for (cd ..) in python

2011-09-10 Thread Waldek M.
ou work > with them. Curious. Do you mean multi-threaded environment or even in single thread? If the latter is the case, I'd say those functions make very nasty assumptions. Who are they, anyways? ;) Br. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Help parsing a text file

2011-08-30 Thread Waldek M.
not perfect - it's very useful indeed. Due to it's nature it is not a demon of speed when parsing complex and big structures, so you might want to keep it in mind. But I whole-heartedly recommend it. Br. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: os.path needs immediate attention!

2011-07-29 Thread Waldek M.
> simple things like specifying file-system paths is not helpful in any > context. Please, do tell it to Microsoft. And once you've convinced them, and they've implemented it, do report :-) Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: AUTO: Craig Churchill is out of the office (returning 27/07/2011)

2011-07-18 Thread Waldek M.
> I am out of the office until 27/07/2011. > > I will respond to your message when I return. > If you require assitance in relation to the SPEAR Integration project > please contact Terry Mandalios. Why, thank you Craig. I will definitely contact Terry ;-) Br. Waldek PS. Sorry

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Waldek M.
>> I'm still looking for the perfect programming font. Suggestions >> welcomed. > > When you find it Dotan, let me know, I've been looking since the later > '70's. For me, it's Terminus* (from sourceforge). Br. Waldek [*] As long as y

Re: Python threading/multiprocessing issue.

2011-07-16 Thread Waldek M.
other programming language), only because of GIL, you might not notice any performance improvement with that. Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Python ++ Operator?

2011-07-16 Thread Waldek M.
tion, eg. a==1, a+=1 may be completely senseless to mathematicians. Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get or set the text of a textfield?

2011-07-10 Thread Waldek M.
ython code? http://developer.gnome.org/pygtk/stable/ http://www.learningpython.com/2006/05/07/creating-a-gui-using-pygtk-and-glade/ Br. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Implicit initialization is EVIL!

2011-07-06 Thread Waldek M.
but not X One could argue that the second and the third case are - in one way or another - using windows. But not the first case, and I don't think you'd call them GUI-less. Br. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Testing if a global is defined in a module

2011-07-05 Thread Waldek M.
Dnia Wed, 06 Jul 2011 03:36:24 +1000, Steven D'Aprano napisał(a): > Because unless you are extremely disciplined, code and the comments > describing them get out of sync. [...] True, but that gets far worse with external docs. Do you have in mind any better replacement? Br. Wald

Re: Testing if a global is defined in a module

2011-07-05 Thread Waldek M.
Dnia Tue, 5 Jul 2011 14:11:56 + (UTC), Grant Edwards napisał(a): > Because those specially-formatted comments are wrong. ... because? Not in sarcasm mode; just curious why you don't like them. Br. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pyparsing 1.5.6 released!

2011-07-01 Thread Waldek M.
yparsing right now, but I used to and surely will. I just wish it was included in the standard Python distribution some day... Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3 constant

2011-06-25 Thread Waldek M.
Yeah, might be useful, even if sometimes complexity of the process is a bit overwhelming to me :-) Br. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3 constant

2011-06-25 Thread Waldek M.
ure and can't really think of a sensible reason why it so wrong. Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3 constant

2011-06-25 Thread Waldek M.
change anything? I'd like that, sure. IMHO it'd be useful. But I don't *require*. Can you see the slight difference? :-) Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3 constant

2011-06-25 Thread Waldek M.
od idea to change 'this' and 'that'. Do they still want to change it? It's their responsibility, I'd let them hack themselves silly... To summarize: I do miss constants in Python and I think Python could really benefit from them. I haven't seen so far any convincing argument to not have them. That said, I'm not that kind of person who says "hey, you Python people, give me my constants or I won't use it". No, I like the language, I will still learn it and use it... and I'll still miss the constants ;-) Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3 constant

2011-06-23 Thread Waldek M.
quot;? [...] Yup, got the sarcasm, that's for sure. But your point was...? Br. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3 constant

2011-06-23 Thread Waldek M.
other languages, like C/C++/Java/Perl/ (bash even) have them, I can't see the reason not to have them in Python. Best regards, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3 constant

2011-06-22 Thread Waldek M.
n all caps, for example, > PI = 3.14, as opposed to pi = 3.14 which could change (according to > PEP 8, that is) That said, there are some workarounds for that: http://code.activestate.com/recipes/65207-constants-in-python/?in=user-97991 Still, I'd reallly like to have constants as a

Re: ctypes and how to copy data passed to callback

2008-07-29 Thread waldek
On Jul 28, 4:03 pm, Thomas Heller <[EMAIL PROTECTED]> wrote: > waldek schrieb: > > > > > Hi, > > > I'm trying to handle data passed to Py Callback which is called from > > C dll. Callback passes data to another thread using Queue module and > >

ctypes and how to copy data passed to callback

2008-07-28 Thread waldek
Hi, I'm trying to handle data passed to Py Callback which is called from C dll. Callback passes data to another thread using Queue module and there the data are printed out. If data is printed out in a callback itself it's ok. If I put on queue and next get from queue in another thread script p

Re: ctypes and reading value under pointer passed as param of a callback

2008-07-25 Thread waldek
On Jul 24, 5:01 pm, Thomas Heller <[EMAIL PROTECTED]> wrote: > waldekschrieb: > > > Hi, > > > I'm using C dll with py module and wanna read value (buffer of bytes) > > returned in py callback as parameter passed to dll function. > > The callback receives a pointer instance. You can dereference the

ctypes and reading value under pointer passed as param of a callback

2008-07-24 Thread waldek
", data[0]) and nothing. I tried different ctypes passed to callback and nothing. Any sugestions ? Thanks, Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: python.exe crash and ctypes use

2008-07-24 Thread waldek
On Jul 23, 4:39 pm, Thomas Heller <[EMAIL PROTECTED]> wrote: > waldek schrieb: > > > > > Hi, > > > I have module A.py and B.dll which exports C functions by cdecl_ > > > In A.py I pass callback (py callable) to dll. Next, thread inside dll > > simp

python.exe crash and ctypes use

2008-07-23 Thread waldek
Hi, I have module A.py and B.dll which exports C functions by cdecl_ In A.py I pass callback (py callable) to dll. Next, thread inside dll simply calls my callback (in a loop). After few secs I got crash of python.exe. How to debug it? I'm using winxp and py 2.5.2 ===