Re: Too much code - slicing

2010-09-23 Thread Andreas Waldenburger
On 23 Sep 2010 03:54:52 GMT Seebs wrote: > On 2010-09-23, Steven D'Aprano > wrote: > [snip] > > I don't see anyone bitching about: > > > for x in seq: > > if x: > > f(x) > > > vs > > > [f(x) for x in seq if x] > > In my case, that's because I only ran into that syntax about an h

Re: Too much code - slicing

2010-09-23 Thread Andreas Waldenburger
On 23 Sep 2010 00:33:28 GMT Steven D'Aprano wrote: > On Tue, 21 Sep 2010 12:26:29 -0400, Andreas Waldenburger wrote: > > > On Sat, 18 Sep 2010 19:09:33 -0700 (PDT) Carl Banks > > wrote: > > > >> On Sep 17, 1:01 pm, Andreas Waldenburger > >> wrot

Re: Too much code - slicing

2010-09-23 Thread Andreas Waldenburger
On Wed, 22 Sep 2010 20:45:55 -0500 John Bokma wrote: > What surprises me is that this is still discussed. It's like argueing > about significant whitespace. :-) Which is evil! /W -- INVALID? DE! -- http://mail.python.org/mailman/listinfo/python-list

Re: Introducing Kids to Programming: 2 or 3?

2010-09-27 Thread Andreas Waldenburger
On Mon, 27 Sep 2010 17:48:06 +0200 Marco Gallotta wrote: > Since these are kids, we feel the nice changes in 3 such as removing > integer division will help in teaching. It will also remove confusion > when they go to download Python and grab the latest version. Since > they're just starting, cha

Re: Reoedering indexes in list of list

2010-09-29 Thread Andreas Waldenburger
On Tue, 28 Sep 2010 11:55:18 -0700 (PDT) Toto wrote: > Hello, > > I have a list of list > assume myList[x][y] is integer > I would like to create an alias to that list which I could call this > way: > alias[y][x] returns myList[x][y] > > how can I do that ? (python 2.6) > > (I have a feeling I

Re: if the else short form

2010-09-29 Thread Andreas Waldenburger
On Wed, 29 Sep 2010 08:53:17 -0400 Philip Semanchuk wrote: > Does Python make any guarantee that int(True) == 1 and int(False) == > 0 will always hold, or are their values an implementation detail? > Bool

Re: install 3.1

2010-09-30 Thread Andreas Waldenburger
On Thu, 30 Sep 2010 09:39:08 -0700 Chris Rebert wrote: > On Thu, Sep 30, 2010 at 2:57 AM, ronald brown > wrote: > print 'Hello, world!' > > SyntaxError: invalid syntax > > > Installed 3 times. Used uninstall in program files and control > > panel. Followed directions on video for 3.1 >

Re: if the else short form

2010-09-30 Thread Andreas Waldenburger
On Thu, 30 Sep 2010 03:42:29 -0700 (PDT) "bruno.desthuilli...@gmail.com" wrote: > On 29 sep, 19:20, Seebs wrote: > > On 2010-09-29, Tracubik wrote: > > > button = gtk.Button(("False,", "True,")[fill==True]) > > > Oh, what a nasty idiom. > > > > Well, it's not very different from dict-based di

ANNOUNCE - NHI1 / PLMK / libmsgque - Work-Package-II

2010-10-01 Thread Andreas Otto
-Intelligence #1 SUMMARY === After six month research workshop with bicycling through the 'Black Forrest', 'Vosges', 'Switzerland' / 'French' and 'Italy' Alps ... I'm back to serve for "Work Package II" of NHI1 Read More At ==

Re: if the else short form

2010-10-03 Thread Andreas Waldenburger
On Fri, 1 Oct 2010 00:42:34 -0700 (PDT) "bruno.desthuilli...@gmail.com" wrote: > On 30 sep, 19:22, Andreas Waldenburger > wrote: > > On Thu, 30 Sep 2010 03:42:29 -0700 (PDT) > > > > "bruno.desthuilli...@gmail.com" > > wrote: > > > On 2

Re: How parametrize classes by class data?

2010-10-04 Thread Andreas Waldenburger
On Mon, 4 Oct 2010 15:59:51 + (UTC) kj wrote: > I want to implement a "class of classes", so that, instead of the > usual: > > spam = MyClass(eggs) > > ...I can write > > spam = MyClass(ham)(eggs) Use a factory function: def MyClass(param): class TemplateClass: # Do stuff wit

Re: if the else short form

2010-10-05 Thread Andreas Waldenburger
On Tue, 05 Oct 2010 18:54:42 +1300 Lawrence D'Oliveiro wrote: > “boolnoob” Bwahahahah! Nice! I'd love to say that I'll add this to my active vocabulary, but I don't think there will be enough opportunities to use it. :-/ /W -- INVALID? DE! -- http://mail.python.org/mailman/listinfo/python-

Re: Many newbie questions regarding python

2010-10-07 Thread Andreas Waldenburger
On Thu, 07 Oct 2010 20:10:14 -0300 Rogério Brito wrote: > I am used to some languages like C, but I am just a complete newbie > with Python and, while writing some small snippets, I had encountered > some problems, with which I would sincerely appreciate any help, > since I appreciate this langua

Re: Many newbie questions regarding python

2010-10-07 Thread Andreas Waldenburger
On Fri, 08 Oct 2010 00:46:41 +0100 MRAB wrote: > In other words, don't try to write a C program in Python! Man, I'm good. :D /W -- To reach me via email, replace INVALID with the country code of my home country. But if you spam me, I'll be one sour kraut. -- http://mail.python.org/mailman

Re: Many newbie questions regarding python

2010-10-08 Thread Andreas Waldenburger
On Thu, 7 Oct 2010 18:34:58 -0700 (PDT) alex23 wrote: > On Oct 8, 10:27 am, Steven D'Aprano cybersource.com.au> wrote: > > >     v = [0 for i in range(20)] > > > > Absolutely not. Such a code snippet is very common, in fact I've > > done it myself, but it is a "hammer solution" -- to a small boy

Re: open file on mac

2010-10-08 Thread Andreas Waldenburger
On Fri, 8 Oct 2010 07:16:13 -0700 (PDT) tinauser wrote: > on mac I get an error if i do not give the full path of initfile.py > (commented out in the code above); > on windows i did not have this problem. > Am I missing anything? open("initfile.py") opens initfile.py in the current working direc

Re: question about a program

2010-10-08 Thread Andreas Waldenburger
On Thu, 7 Oct 2010 17:39:51 -0700 (PDT) Logan Butler wrote: > question about an assignment: > > >>> places("home sweet home is here",' ') > [4, 10, 15, 18] > > this is my code: > > def places(x, y): > return [x.index(y) for v in x if (v == y)] > > so far I'm only getting > [4, 4, 4, 4] >

Re: question about a program

2010-10-08 Thread Andreas Waldenburger
On Fri, 8 Oct 2010 14:34:21 -0700 Chris Rebert wrote: > On Thu, Oct 7, 2010 at 5:39 PM, Logan Butler > wrote: > > question about an assignment: > > > places("home sweet home is here",' ') > > [4, 10, 15, 18] > > > > this is my code: > > > > def places(x, y): > >    return [x.index(y) for v

Re: help!!!

2010-10-11 Thread Andreas Waldenburger
On Mon, 11 Oct 2010 23:51:46 +1300 Lawrence D'Oliveiro wrote: > In message , > Emile van Sebille wrote: > > > Oh come now -- isn't being lazy a primary programmer's attribute? > > I wonder if that’s why more men are good at it than women... You may want to think about whether this really was y

Re: help!!!

2010-10-11 Thread Andreas Waldenburger
ls wrote: > >>>> > >>>> > >>>>On Mon, Oct 11, 2010 at 9:25 AM, Andreas Waldenburger > >>>> wrote: > >>>> > >>>> On Mon, 11 Oct 2010 23:51:46 +1300 Lawrence D'Oliveiro > >>>>w

Re: parse xml

2010-10-15 Thread Andreas Waldenburger
On Fri, 15 Oct 2010 10:49:18 -0700 (PDT) kostia wrote: > I have xml file: > > > 5 > > > I want to get the value of n (= 5) inside my python program, I'm > doing this: > > import xml.dom.minidom > from xml.dom.minidom import Node > doc = xml.dom.minidom.parseString("boolean_wi

Re: Classes in a class: how to access variables from one in another

2010-10-18 Thread Andreas Waldenburger
On Mon, 18 Oct 2010 17:17:52 +0200 Christian Heimes wrote: > [snip] > Don't nest classes. Just don't. This might be a valid and good > approach in some programming languages but it's not Pythonic. Explain! /W -- To reach me via email, replace INVALID with the country code of my home country

Re: Help with paths

2010-10-18 Thread Andreas Waldenburger
On Mon, 18 Oct 2010 14:24:39 -0700 (PDT) Devin M wrote: > Hello, I am using os.path to get the absolute paths of a few > directories that some python files are in. > FIlePath = os.path.dirname(os.path.realpath(__file__)) > which returns a path similar to /home/devinm/project/files > Now I want to

Re: Help with paths

2010-10-18 Thread Andreas Waldenburger
On Mon, 18 Oct 2010 17:29:11 -0400 Andreas Waldenburger wrote: > On Mon, 18 Oct 2010 14:24:39 -0700 (PDT) Devin M > wrote: > [snip] > > Maybe os.relpath("..", FilePath) ? Python > 2.6 only. > Gah! I should learn to copy&paste more. Obviously it's t

Re: Classes in a class: how to access variables from one in another

2010-10-20 Thread Andreas Waldenburger
On 18 Oct 2010 22:29:27 GMT Steven D'Aprano wrote: > On Mon, 18 Oct 2010 09:34:07 -0700, Chris Rebert wrote: > > > Also, Python's scoping rules, particularly for class-level scopes, > > don't work the way programmers from languages where nested classes > > are common would expect: > [snip exampl

Re: functions, list, default parameters

2010-10-21 Thread Andreas Waldenburger
On Thu, 21 Oct 2010 19:53:53 -0700 John Nagle wrote: > On 10/21/2010 2:51 PM, Chris Rebert wrote: > > On Thu, Oct 21, 2010 at 2:36 PM, Sean Choi wrote: > >> I found two similar questions in the mailing list, but I didn't > >> understand the explanations. > >> I ran this code on Ubuntu 10.04 with

ANNOUNCE: NHI1-0.8, PLMK-1.6 und libmsgque-4.6

2010-10-22 Thread Andreas Otto
nly source code and binaries for x86_64 - created Linux. The reason lies in the necessary acceleration of the development. The packages for other operating systems like Windows or BSD / MacOSX only be made at the end of a Work-Package. Ports and specific adjustments can be booked as a consulting se

Re: Why "flat is better than nested"?

2010-10-28 Thread Andreas Waldenburger
On Wed, 27 Oct 2010 22:47:35 -0700 (PDT) alex23 wrote: > On Oct 27, 7:58 pm, Robin Becker wrote: > > >> "I know that that that that that boy said is wrong!". > > > > well they say nested is hard. How about this break down > > > > I know that X that a boy said is wrong. (any boy) > > I know that

Re: Discussion board software?

2010-10-28 Thread Andreas Waldenburger
On Fri, 29 Oct 2010 01:28:12 + brad...@hotmail.com wrote: [fixed top posting] > --Original Message-- > From: Gnarlodious > Sender: python-list-bounces+bradenf=hotmail@python.org > To: Python List > Subject: Discussion board software? > Sent: Oct 28, 2010 9:12 PM > > > Is there such

RE: str(int_var) formatted

2010-10-29 Thread Andreas Tawn
> Hi all, > i've to convert integer x to string, but if x < 10, the string have to > be > '0x' instead of simple 'x' > > for example: > > x = 9 > str(x) --> '09' > > x = 32 > str(x) --> '32' > > x represent hour/minute/second. > > I can easily add '0' with a if then block, but is there a built

Re: [Beginer Question] I heard about python needing somesort of_VariableName_ boiler plate?

2010-11-01 Thread Andreas Waldenburger
On Mon, 1 Nov 2010 18:18:45 + brad...@hotmail.com wrote: > Sorry that is what I mean. What is it for? > Sent wirelessly from my BlackBerry. > >>> andreas.quick_hot_anger = True Braden! Stop Top-Posting already! Please. If your BlackBerry makes this hard, then get another mail client. It get

ANNOUNCE: NHI1-0.9, PLMK-1.7 und libmsgque-4.7

2010-11-11 Thread Andreas Otto
n shows the flexibility and adaptability of NHI1. mfg Andreas Otto (aotto1968) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJM3Ds6AAoJEGTcPijNG3/ATywH/iguN1+96sp2RGzIz6N3I8mx tw4YO6ac8NPT+Ztm

subprocess problem

2017-02-08 Thread Andreas Paeffgen
The Problem with the subprocess code is: Using the sourcecode functioning as normal. The frozen app with cx_freeze on every platform just returns an empty result Here is the code in short: def get_path_pandoc(): settings = QSettings('Pandoc', 'PanConvert') path_pandoc = settings.value

Re: subprocess problem

2017-02-09 Thread Andreas Paeffgen
Maybe i could use another trick to circumvent the problems in the frozen app? The frozen apps can be downloaded here: https://sourceforge.net/projects/panconvert/files/Newest/ @Cameron: 1. I use PyQT5 for a creating a gui app. To run the app on other systems, where no QT5 and PyQT5 is install

Re: subprocess problem

2017-02-09 Thread Andreas Paeffgen
I guess which does not return an error code. If it does not find anything, the return is just blank. If it finds something, the path is returned. So the change of code did not help, because there is just no error message. Could there be a $path problem in the subprocess started inside the binar

Re: subprocess problem

2017-02-10 Thread Andreas Paeffgen
Thanks for all the great advice. I tested all the possibilities. So far no luck. If i start the app from a terminal, the solutions work. But not, if i start the app-bundle (There is no connection to a terminal) 1. Copied the path to p.subprocess 2. Used the def wich: python function 3. Used sh

Re: subprocess problem

2017-02-15 Thread Andreas Paeffgen
On 2017-02-11 02:23:12 +, Cameron Simpson said: def your_function(...): with open('/path/to/your/logfile.txt', 'a') as logfp: print("PATH=".os.environ['PATH'], file=logfp) p=Popen(...) p.communicate(...) print("p.returncode=%r" % (p.returncode)) and any

Installation Python 3.6.x on Windows using command line installer (without GUI)

2017-07-27 Thread Andreas Jung
I need to installed Python 3.6.x on Windows as part of an automated process without user-interaction. Recently Python releases provided MSI files for installation using the "msiexec" utility however there are no more MSI release files available for Python 3.6.X. Are there any alternatives? -aj

Immutable view classes - inherit from dict or from Mapping?

2021-04-12 Thread Andreas R Maier
Hi, I have written some classes that represent immutable views on collections (see "immutable-views" package on Pypi). Currently, these view classes inherit from the abstract collection classes such as Mapping, Sequence, Set. However, they implement the read-only methods of dict, list and set,

Re: Python based unacceptable language filter

2005-10-03 Thread Frithiof Andreas Jensen
"David Pratt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. Is anyone aware of any python based unacceptable language filter > code to scan and detect bad language in text from uploads etc. > > Many thanks. > David Look up Spambayes - if you can filter on terms like "dear fri

Re: Python based unacceptable language filter

2005-10-04 Thread Frithiof Andreas Jensen
"David Pratt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. Thank you for the links. I am looking for something that would > function in a similar way to Yahoo's filter for it's message boards. > Perhaps I should have used the term profanity instead of unacceptable > language.

Re: "no variable or argument declarations are necessary."

2005-10-04 Thread Frithiof Andreas Jensen
"bruno modulix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > James A. Donald wrote: > > I am contemplating getting into Python, which is used by engineers I > > admire - google and Bram Cohen, but was horrified > > "horrified" ??? > > Ok, so I'll give you more reasons to be 'horri

Re: create user message for wxPython

2005-10-24 Thread Frithiof Andreas Jensen
"James Hu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, > There are 2 wxPython application, A and B and need to exchange msg. I do not think that wx even has a mechanism for sending events between applications.? You need some other tool, like a socket, a named pibe, some wind

Re: more than 100 capturing groups in a regex

2005-10-25 Thread Frithiof Andreas Jensen
"Joerg Schuster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, Python regular expressions must not have more than 100 capturing groups. Really ?? I have been waiting a long time now for Python to get rid of this limitation. Ahh - The "dark side" of Open Source: If nobody

Re: more than 100 capturing groups in a regex

2005-10-25 Thread Frithiof Andreas Jensen
"Joerg Schuster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Some people, when confronted with a problem, think "I know, > I'll use regular expressions." Now they have two problems. > --Jamie Zawinski Thanks for the citation. If my goal had been to redesign my program, I would

Re: need some advice on x y plot

2005-10-25 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] If the x-axis is time, gnuplot will plot it correctly but it will connect *all* the datapoints and scale the x-axis so that everything will fit on the graph. Is it the autoscaling or conneting that what you think is wrong? Getting a fix

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
"linuxpld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
"Magnus Lycka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thee are many solutions. An XML-RPC server springs to mind as a > solution. There are several Python XML-RPC servers . Good Idea. Seems that those particular batteries are included with Python 2.2 and up: OP: See h

Re: 3-dimensional plot in Python?

2005-11-15 Thread Frithiof Andreas Jensen
"questions?" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I want to make a 3d plot. x is a vector(discrete), y is also a > vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not > a function, just discrete values for each pair of x,y) > > I want to show them on a

Re: 3-dimensional plot in Python?

2005-11-15 Thread Frithiof Andreas Jensen
"Robert Kern" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Those interfaces are long since deprecated. Please use matplotlib instead. > > http://matplotlib.sf.net "Long since" being When? I recently installed SciPy and it did not say anything about "deprecated"! -- http

Re: how to bypass firewall

2005-11-16 Thread Frithiof Andreas Jensen
"Parth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello everyone, > I need some help regrading byassing firewalls.My college has internet > aces but it prevents us from dowloading music(*.mp3,*.mid,etc.)from the > net. Then Don't - The firewall, being lame as those things are,

Re: Data Transmission Crash Course Required

2005-11-16 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > exchange. I am looking for a quick-n-dirty approach, upon which I can > certainly expand by further reading Python documentation. Also, if > anyone can recommend an online resource for learning more about TCP/IP > and the like (a prog

Re: Accessing a database from a multithreaded application

2005-11-23 Thread Frithiof Andreas Jensen
"Alan Kemp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Can someone suggest a better (ie, valid) strategy for this? Pass the connection to the thread as a parameter and use it to create a cursor local to the thread. You may have to create a connection per thread also - in

Re: Using Cron to run a python program

2005-11-24 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > permissions just to be safe. What would cause the logging to work at a > command prompt but fail in cron? Because the environment is different; "man cron" might tell *how* it is different (I cannot because it varies with platf

Re: python speed

2005-11-30 Thread Frithiof Andreas Jensen
"Krystian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > are there any future perspectives for Python to be as fast as java? Sure, if/when Python becomes as water-logged with obtruse OO-layers as Java is now. Python is faster than Java. Because Python per design generally i

Re: SNMPV3

2005-12-07 Thread Frithiof Andreas Jensen
"Jacek Pop³awski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do you have any experience with Python in SNMPv3 area? SNMP suck per design and SNMPv3 suck even more by adding complexity to that design IMO. SNMPv2 sort of works well within the limits of the design of SNMP, so tha

Re: Using printf in a C Extension

2005-12-09 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > > I am extending python with C and trying to debug with printf. The code > below succssfully returns the string "hello" when compiled and called, > but the "can print from in here phrase" does not reach python stdout. It shou

ready-made file format for "file pibes"?

2005-09-20 Thread Frithiof Andreas Jensen
I am writing an application that does a lot of filtering of much data through a sequence of filters. After some thinking and wasting a lot of time with an object oriented design with GUI and all, I decided that the Real Way to do this is to create the filters as independent programs that take inpu

Re: Do thread die?

2005-09-20 Thread Frithiof Andreas Jensen
"Maurice LING" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I do have another dumb question which is OT here. Say aFunc method > instantiates a SOAP server that serves forever, will it prevent bFunc > from running as a separate thread? If the SOAP server thread never sleeps or b

Re: Help! Python either hangs or core dumps when calling C malloc

2005-09-20 Thread Frithiof Andreas Jensen
"Lil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I already double checked my C code. It runs perfectly fine in C without > any errors. Errr - It runs perfectly fine without *announcing* any errors (while gleefully urinating all over its memory space). The programming model for

Re: Help! Python either hangs or core dumps when calling C malloc

2005-09-20 Thread Frithiof Andreas Jensen
"Christian Stapfer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Check your program for _uninitialized_variables_. good point. > (Just a guess: but what other side-effect than > changing the values of uninitialized variables > - and the program's timing, of course - might > the

Re: python open source charting solutions ?

2005-03-10 Thread Frithiof Andreas Jensen
"ionel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i need some pointers. > so far i've tryed matplotlib ... What For, exactly? For time series, RRD-Tools (Round-Robin Database) works very well. -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a very specific type of embedded GUI kit

2005-04-13 Thread Frithiof Andreas Jensen
"Sizer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > So the question is: what non-X gui toolkit can we use that has Python > bindings and will let us use a custom display driver at the lowest level? There is a discussion of Embedded X's here: http://www.linuxdevices.com/files/e

Probem with fbconsole

2015-01-04 Thread Ole Andreas Gløersen
I want to enter text msg and upload picture (so all friends can see and some private pictures) to my Facebook acount. I'm working with fbconsole (it's important that it is text based command line) for setting up cron job on a Raspberry Pi. My code: import fbconsole redirect_uri = "https://lo

Re: debian and python--any potential pitfalls?

2005-12-20 Thread Frithiof Andreas Jensen
"Brian van den Broek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The only area of computing in which I am interested and with which > he's unfamiliar is Python. He suggested I try to find out if there are > any potential issues with Debian stable and Python. Only that Python i

Re: Application architecture (long post - sorry)

2006-01-02 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > It would give me great satisfaction though to roll my own solution to > this Ahh - a bright young employee ready to meet the realities of corporate life, much like a bike rider meets the concrete he drives on ;-) > and then at

Re: Cross Compile Mips / Linux

2006-01-11 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Everyone, > Should I try using a Linux based machine for the build, would that > help?? YES - The problem is that the Linux build tools generally assume that they are sitting in the target environment and therefore tries to use f

Re: Remote Function Call

2006-01-13 Thread Frithiof Andreas Jensen
"Mike" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have two machines. A python program on machine 1 needs to make a > python call to a method in machine 2. What is the most efficient / fast Some Custom Mechanism: Pyro or SPREAD f.ex. > / programmer friendly way to do

Re: ConfigParser: writes a list but reads a string?

2006-01-16 Thread Frithiof Andreas Jensen
"Terry Carroll" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It looks like ConfigParser will accept a list to be writing to the > *.ini file; but when reading it back in, it treats it as a string. ConfigParser is nasty because it does not really support type conversions but still

Re: Is there a maximum length of a regular expression in python?

2006-01-19 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > I have a regular expression that is approximately 100k bytes. (It is > basically a list of all known norwegian postal numbers and the > corresponding place with | in between. I know this is not the intended > use for regular expre

Re: Sending Dictionary via Network

2006-10-25 Thread Frithiof Andreas Jensen
> "mumebuhi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The simplejson module is really cool and simple to use. This is great! JUST what I need for some configuration files!! Thanks for the link (die, configparse, dieee). -- http://mail.python.org/mailman/listinfo/python-lis

Re: Sending Dictionary via Network

2006-10-26 Thread Frithiof Andreas Jensen
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Frithiof Andreas Jensen wrote: > >> "mumebuhi" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> The simplejson module is really cool and

Re: Ricerca Programmatore Python

2006-05-31 Thread Frithiof Andreas Jensen
Have you considered Graphwiz with Python bindings? http://www.graphviz.org/ http://yapgvb.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: creating a new database with mysqldb

2006-06-01 Thread Frithiof Andreas Jensen
"John Salerno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Since the connect method of mysqldb requires a database name, it seems > like you can't use it without having a database already created. The web hotel I use create *one* database together with the account. I.O.W: I ca

OT: wxPython GUI designer

2006-06-21 Thread Frithiof Andreas Jensen
"Don Taylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I find it easy to use sizers in > wxGlade. Just gave is a spin yesterday: How does on fix the size of layout; I can only manage to get sizers to distribute space evently amongst the fields, which is *not* what I want. -

Re: wxPython and Linux dependencies

2006-07-07 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Error message "cannot find wx" > > infact I have wxpython in /usr/lib/ > > I installed it using the rpms given on the wxPython website. Do I need > to set some path or something. I vaguely remember that wxWindows changed name to wxWidg

Re: Python Expert

2006-08-24 Thread Frithiof Andreas Jensen
"Perseo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > > we are looking for a python developer for a European project. This > project is multilangual and free it is called EuroCv and it need a > module for exporting data in PDF. A brute-force approach could be to sidest

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Frithiof Andreas Jensen
"Ingo Linkweiler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bjoern Schliessmann schrieb: > > Ingo Linkweiler wrote: > > > >> b) verify an existing mailserver or DNS/MX records > > > > "Or"? That's two different things. > > > > If you don't know already: Even if you test all thi

Re: What is the best way to "get" a web page?

2006-09-25 Thread Frithiof Andreas Jensen
something like: os.popen("wget -r3 http://juicypornpics.com";) wget understands the peculiarities of web pages so you do have to. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a maximum length of a regular expression in python?

2006-01-24 Thread Frithiof Andreas Jensen
"Bryan Olson" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Roy Smith wrote: > Does no one care about an internal error in the regular expression > engine? Yes, but - given the example - In about the same way that I care about an internal error in my car engine after dropp

Re: writing large files quickly

2006-01-27 Thread Erik Andreas Brandstadmoen
Grant Edwards wrote: > Because the filesystem code keeps track of where you are in > that 400MB stream, and returns 0x00 anytime you're reading from > a "hole". The "cp" program and the "md5sum" just open the file > and start read()ing. The filesystem code returns 0x00 bytes > for all of the read

Re: critique my code, please

2006-02-08 Thread Frithiof Andreas Jensen
"Brian Blais" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I am including at the end of this document (is it better as an attachment?) some code > for a small gui dialog. Since I am quite new to this, if anyone has any suggestions > for improvements to the code, bad co

Re: Another try at Python's selfishness

2006-02-08 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Having read previous discussions on python-dev I think I'm not the only > Python programmer who doesn't particularly like python's "self" > parameter: Ok, there might be five programmers and one imam. The imam does not like anything mo

OT: Another try at Python's selfishness

2006-02-09 Thread Frithiof Andreas Jensen
"DH" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Frithiof Andreas Jensen wrote: > > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> Having read previous discussions on python-dev I think I'm not the only &

Re: setting up scipy in windows

2005-05-18 Thread Frithiof Andreas Jensen
"hawkesed" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Scipy looks like just the thing I want, if anyone has got it running on > a Windows box I would like to hear how you did it. With STANDARD Python 2.3 it installs from the Python 2.3 win 32 installers and runs. The

Re: SQL Query via python

2005-05-24 Thread Frithiof Andreas Jensen
"Jeff Elkins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just as an fyi: > > In one weekend I have gone from knowing zip about SQL/Python to implementing > code on my personal server that emails info to family about birthdays and > such. Actually - http://www.pythonweb.org/ wil

Re: Using python for a CAD program

2006-05-17 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Cool. thanks for the links. I've already looked around quite a bit, > and am very hesitant to just write more shit on top of other shit. All software suck. If you think that yours will not then: a) you are a narcissist b) you are the

Re: Adding more warnings

2008-02-22 Thread Frithiof Andreas Jensen
"Thomas Dybdahl Ahle" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Is it possible to make python warn me about those at "compile time"? No. The compiler only "knows" about it once the broken code is run. I use the standard module "unittest" to run through every single bit

Re: Linux/Python Issues

2008-02-22 Thread Frithiof Andreas Jensen
"Bruno Desthuilliers" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > [EMAIL PROTECTED] a écrit : > So, here's the basic scheme: > > - download the source tarball, preferably in /usr/local/src > - unpack it > - cd into the unpacked source directory > - *carefully* read the REA

Re: Learning different languages

2006-03-09 Thread Frithiof Andreas Jensen
"Terry Hancock" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 07 March 2006 04:44 pm, Rich wrote: > I've been trying to get my kids to learn a little Python for some > time, but it hasn't been too easy for them yet. Then, out of the > blue, they want to learn Lua. > >

Re: comparing huge files

2006-03-17 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > thanks for the reply, > I have used another method to solve my problem. ie > 1) get the total count of the first file > 2) write this total count to basecnt eg basecnt > 3) get another file, get the total count of this file. eg filecnt

RE: TKinter in Python - advanced notions

2023-06-23 Thread Andreas Heckel via Python-list
, which I certainly still am, but also show enough complexity to see the concept in action. Any hints / links to github or similar highly welcome. If the list is not the appropriate place, I am happy if you email me directly. Cheers, Andreas > -Original Message- > From: Python-list

<    2   3   4   5   6   7