Re: why no camelCase in PEP 8?

2020-05-18 Thread Juergen Brendel
On Mon, 2020-05-18 at 19:28 -0400, Dan Sommers wrote: > On Tue, 19 May 2020 09:55:04 +1200 > Juergen Brendel wrote: > > > ... he prefers snake-case. > > That's not snake_case. That's kebab-case.¹ > > ¹ https://wiki.c2.com/?KebabCase :-) -- https://ma

Re: why no camelCase in PEP 8?

2020-05-18 Thread Juergen Brendel
20 years now and it has served me well. Juergen On Mon, 2020-05-18 at 21:07 +, Eli the Bearded wrote: > In comp.lang.python, Paul Rubin wrote: > > I don't know if this was the explicit motivation for PEP 8, but it > > has always seemed valid to me: > > > >

Re: Python dependences

2020-04-21 Thread Juergen Brendel
re your sources are: "cdproject" * Completely wipe all installed dependencies of the virt-env with a single command: "wipeenv" It really makes it easy working with many different Python projects. Juergen On Tue, 2020-04-21 at 11:35 -0300, jorge.confo...@inpe.br wrote: > >

Re: Getting the dependencies of a function from a library

2020-04-20 Thread Juergen Brendel
w the code that was actually called, though, not all the code (and attributes for that matter) that COULD conceivably be used under some other circumstances. Nevertheless, it's a good start to see what your code relies on when under use. Juergen On Mon, 2020-04-20 at 23:50 -0400, Bob Gailer

Re: RFC: For Loop Invariants

2020-04-10 Thread Juergen Brendel
ated: count += 1 All in all, I like the proposal, but I'm not sure it would buy us that much. Specifically, I'm not sure that it would help a lot with readability and may end up making it worse, since you'll have a higher chance of having those line-breaks. Juergen -- https://mail.python.org/mailman/listinfo/python-list

Re: How Does requests.get Work?

2020-04-01 Thread Juergen Brendel
Hello! Can you elaborate on what you mean by "use directly"? Juergen On Thu, 2020-04-02 at 01:12 +0400, Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > I was viewing requests https://github.com/psf/requests > > I know we can do `requests.get` > > Found

Re: __builtins__ thread-safe / __builtins__ as function?

2012-10-14 Thread Juergen Bartholomae
>> One possible solution is to somehow redirect every __builtins__ to a >> function that returns a different __builtins__ dictionary for each thread >> (such a function already exists). >How exactly does the code reference it? If they're simply referring to >the name __builtins__ at module level,

__builtins__ thread-safe / __builtins__ as function?

2012-10-11 Thread Juergen Bartholomae
ay to add any methods here) I could do it if there was any way to load .py-files as any other class than , maybe as a subclass, but I do not know how this could be done. So, I am really at a loss here. Any help would be greatly appreciated. Regards, Juergen Bartholomae -- http://mail.python.org/mai

Re: Programming language comparison examples?

2009-06-15 Thread Juergen Hermann
pobox.com> writes: > but that's not what I was thinking of. I thought there was a site with a > bunch of smaller examples. http://langref.org/ is another one. -- http://mail.python.org/mailman/listinfo/python-list

Re: python libpcap equivalent

2009-02-04 Thread Juergen Kareta
Gabriel schrieb: Hello I need to write a software router [yes, software equivalent to a hardware box that is routing packets .)]. It's a school work.. Question is: is possible write this kind of application in python? and if it's, what module should i use? I tried search for some libpcap equi

Re: SWIG C++ std::cout do not output to interactive interpreter IDLE

2008-04-22 Thread Juergen Perlinger
ven't had a deeper look into the BOOST Python bindings, (www.boost.org) but they have a rather good reputation. Perhaps there is something in it that takes away most of the burden. -- juergen 'pearly' perlinger "It's hard to make new errors!" -- http://mail.python.org/mailman/listinfo/python-list

Re: What happened with python? messed strings?

2008-04-20 Thread Juergen Perlinger
might be hard to use them properly if you don't have the understanding. 4. Simplicity can be deceptive. -- juergen 'pearly' perlinger "It's hard to make new errors!" -- http://mail.python.org/mailman/listinfo/python-list

Re: What happened with python? messed strings?

2008-04-20 Thread Juergen Perlinger
Juergen Perlinger wrote: > [EMAIL PROTECTED] wrote: > [snip] > Basically you're not using ASCII encoding in your source text... You need > to define an encoding for your source if you're using german umlauts or > other fancy stuff. > > See chapter 2.1.4 of th

Re: What happened with python? messed strings?

2008-04-20 Thread Juergen Perlinger
. # -*- coding: utf-8 -*- as first or second line to your script. Make sure your editor talks utf-8, or use the encoding used by your editor. cp1552 is a good choice for windows... -- juergen 'pearly' perlinger "It's hard to make new errors!" -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.AF_INET

2008-04-20 Thread Juergen Perlinger
ts are that the SIOCGIFADDR opcode has a different numerical value for BSD. Even if some names are portable, the numerical values aren't! I don't have BSD, but using find /usr/include -type f -name '*.h' | xargs grep SIOCGIFADDR /dev/null should give some hints... -- juerg

Re: py3k s***s

2008-04-18 Thread Juergen Kareta
Diez B. Roggisch schrieb: >> And I have been benefiting from Python in general, so far. Thanks, >> community. >> >> But now... I'll probably stop posting here for now, & I may stop other >> things too. >> >> Just my 2c. > > You know what I was just wondering about? All these C-written > cross-pla

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-19 Thread Juergen Erhard
On Thu, Jul 12, 2007 at 11:26:22AM -0700, Paul Rubin wrote: > > Guy Steele used to describe functional programming -- the evaluation > of lambda-calculus without side effects -- as "separation of Church > and state", a highly desirable situation ;-). > > (For non-FP nerds, the above is a pun refe

Re: fetching text from the screen

2007-06-21 Thread Juergen Kareta
Gabriel Genellina schrieb: > En Mon, 18 Jun 2007 09:13:16 -0300, Juergen Kareta <[EMAIL PROTECTED]> > escribió: > >> I'm thinking about a python script which fetch some text from the screen >> independent of what application provides the text on the screen

fetching text from the screen

2007-06-18 Thread Juergen Kareta
Hello list, I'm thinking about a python script which fetch some text from the screen independent of what application provides the text on the screen. In this regard it should be similar to the babylon software: www.babylon.com Here my thoughts: 1) getting the mouse position 2) calculate a ade

Re: numpy error

2006-10-24 Thread Juergen Kareta
> Or install the numpy-1.0rc2 binary which is now again available on > sourceforge. Hello Travis, thanks for your help. Going back to the 1.0rc2 release was successful. Ok, I had also to copy wxmsw26uh_vc.dll to my path and get around wx.PrindData.SetPrinterCommand, but that's because I run w

numpy error

2006-10-23 Thread Juergen Kareta
Hello, this is my first try to get wxmpl-1.2.8 running. Therefor I installed: python 2.5 matplotlib-0.87.6.win32-py2.5.exe numpy-1.0rc3.win32-py2.5.exe on WinXP SP2 The result is a version mismatch (see below). Numpy version 102 seems to be numpy-1.0b5 which is not downloadable anymore. A

std in and stdout

2006-07-10 Thread Juergen Huber
hello, i have a question! how would i fix the following problem: now i have an input file with a fix name and an output file! i have this two files hardcoded written in the sourcecode of this function! in the future i will start this script with the command line. the syntax should be look like

Re: print shell output in a file

2006-06-30 Thread Juergen Huber
| 1|4 >> AND_BOOL_N10 | 4 | 1 |4 >> AND_BOOL_N12 | 4| 1|4 >> >> >> >> Is there a way to put this output in an file?!?! i searched about 2h >> for this, but i couldn`t find an answer! >> >> thnks, juergen -- http://mail.python.org/mailman/listinfo/python-list

print shell output in a file

2006-06-30 Thread Juergen Huber
h for this, but i couldn`t find an answer! thnks, juergen -- http://mail.python.org/mailman/listinfo/python-list

Re: delete first line in a file

2006-06-30 Thread Juergen Huber
this helps me! thank you very much! greetings, juergen JH> Fredrik Lundh wrote: >> Juergen Huber wrote: >> >>> ok...i thought as much, that i have to copy this file! >>> >>> how will i do that?! >>> how will i fix this file =>

Re: delete first line in a file

2006-06-30 Thread Juergen Huber
Fredrik Lundh wrote: > Juergen Huber wrote: > >> ok...i thought as much, that i have to copy this file! >> >> how will i do that?! >> how will i fix this file => delete the first line?! >> >> with which commands could i do that?! > > st

Re: delete first line in a file

2006-06-30 Thread Juergen Huber
Fredrik Lundh wrote: > Juergen Huber wrote: > >> i am a dummy user in python and new in this programming language and >> so there will be questions, that´s for you no problem! i never have >> before programmed in any language! sorry for this! i hope you will >>

delete first line in a file

2006-06-30 Thread Juergen Huber
! :) the first question for me in this newsgroup will be the follow one: - is there a way to delete in a csv-file the first line?! big thanks, juergen -- http://mail.python.org/mailman/listinfo/python-list

omniorbpy: problems sending float values

2006-05-29 Thread Juergen
hi, I've got a problem sending floating point values to an corba server. With other datatyes like short or string it works fine. So having this idl file : module Example{ interface User{ void setV( in float x ); }; interface Target{

Re: disassemble, was(How do (not) I distribute my Python progz?)

2005-12-19 Thread Juergen Kareta
gene tani schrieb: > http://users.cs.cf.ac.uk/J.P.Giddy/python/decompiler/decompiler.html Thanks for the links. Regards, Jürgen -- http://mail.python.org/mailman/listinfo/python-list

Re: disassemble, was(How do (not) I distribute my Python progz?)

2005-12-14 Thread Juergen Kareta
Hi Paul, I had looked to the same link and downloaded the package. Maybe I'll give it a try at the christmas holidays - hope so ;-) Thanks Jürgen -- http://mail.python.org/mailman/listinfo/python-list

Re: disassemble, was(How do (not) I distribute my Python progz?)

2005-12-14 Thread Juergen Kareta
Hi Steven, >What makes you think I'm a serious programmer? *wink* Ok, it's not a 'serious' investigation, but maybe it could be, that you (sometimes) quote something usefull ;-) > Python's byte-code is not exactly as easy to understand as native Python, > but it is still understandable. And

Re: How do (not) I distribute my Python progz?

2005-12-14 Thread Juergen Kareta
Hi Steven, > For many purposes, you can just distribute the .pyc compiled byte-code. > That will discourage the casual user from reading the source code, but > of course a serious programmer will be able to disassemble the .pyc code > very easily. very easily ? I tried it with my own code a y

Re: XML GUI

2005-11-08 Thread Juergen Kareta
py schrieb: > how about wxPython? I am interested in something that will look native > on various operating systems (win, mac, *nix). > > any good tutorial on using wxPython with XML? > look at http://wiki.wxpython.org/index.cgi/UsingXmlResources -- http://mail.python.org/mailman/listinfo/pyth