UDP and Python2.7 and 2.7 documentation gives error!

2015-07-25 Thread Nils
rgs) socket.error: [Errno 10049] The requested address is not valid in its context C:\Utveckling\Counter_python> So, please tell me where I am doing wrong, or is doc's wrong?? Nils in Uppsala -- -- https://mail.python.org/mailman/listinfo/python-list

Re: how to iterate over sequence and non-sequence ?

2007-10-19 Thread Nils
On Oct 19, 10:58 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Fri, 19 Oct 2007 01:24:09 +0200, stef mientki wrote: > > hello, > > > I generate dynamically a sequence of values, but this "sequence" could > > also have length 1 or even length 0. > > > So I get some line in the form of: > >

Re: dynamic invoke

2007-10-19 Thread Nils
> Unfortunately I can't find a good solution to do the same thing in > python. Does it have some build-in function to do it? > > Kind Regards, > > Lukasz. Use apply(): http://docs.python.org/lib/non-essential-built-in-funcs.html Nils -- http://mail.python.org/mailman/listinfo/python-list

pre-uninstall script in bdist_wininst

2010-08-05 Thread Nils
orking? btw: With that I am trying to register a com-server on install and de- register on uninstall - so if other ideas are around I'd love to hear them, too... Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-uninstall script in bdist_wininst

2010-08-05 Thread Nils
On 5 Aug., 20:26, Nils wrote: > According to the docs in [1] [...] and with [1] I meant http://docs.python.org/distutils/builtdist.html#the-postinstallation-script Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-uninstall script in bdist_wininst

2010-08-08 Thread Nils
On 6 Aug., 04:02, Mark Hammond wrote: > According to a comment in pywin32's post-install script: > >          elif arg == "-remove": >              # bdist_msi calls us before uninstall, so we can undo what we >              # previously did.  Sadly, bdist_wininst calls us *after*, so >          

use of gtk in a nautilus extension

2010-08-18 Thread Nils
: """A function to debug""" easygui.msgbox(message) and obviously drop import gtk and add import easygui, The dialog does appear. Can someone tell me why this is ?? Yours, Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking for X availability

2005-01-11 Thread Nils Nordman
vironment variable DISPLAY is set (which it is when running under X, and should not be otherwise). Cheers, -- Nils Nordman <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

round() wrong in Python 2.4?

2005-09-13 Thread Nils Grimsmo
ot;print number + EPS" solution, as you would need different EPS for different exponent sizes. In C you could get it by taking integer 1, and &-ing in the right exponent, and then casting to double via void*. This would not be very portable, though. Klem fra Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: round() wrong in Python 2.4?

2005-09-14 Thread Nils Grimsmo
linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ gcc-4.0 --version gcc-4.0 (GCC) 4.0.2 20050725 (prerelease) (Debian 4.0.1-3) Klem fra Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2

2013-09-25 Thread Nils Bunger
o a multi-part MIME message without the encoding issue... any help would be greatly appreciate! Nils - import io from email.mime.application import MIMEApplication from email.generator import BytesGenerator from email.encoders import encode_noop app = MIMEApplication(b'Q\x0dQ&

Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2

2013-09-26 Thread Nils Bunger
to roll my own to create a multipart msg with a binary file? I was hoping to avoid that. Nils ps. You probably know this, but in case anyone else reads this thread, HTTP requires all headers to have CRLF, not native line endings. The python MIME modules can do that properly as of python 3.2 (f

Re: Newline interpretation issue with MIMEApplication with binary data, Python 3.3.2

2013-09-26 Thread Nils Bunger
anks, your suggestions helped me think of this. Nils On Wednesday, September 25, 2013 9:38:17 AM UTC-7, Nils Bunger wrote: > Hi, > > > > I'm having trouble encoding a MIME message with a binary file. Newline > characters are being interpreted even though the content is

Re: multiprocessing problems

2010-01-20 Thread Nils Ruettershoff
pend(thread) # start feeding for file in all_files: feeder_q.put(file) # inform processes that all work has been ordered queue_filled.set() # wait until queue is empty feeder_q.join() # wait until all processed have finished their jobs for process in process_list:

Re: multiprocessing problems

2010-01-20 Thread Nils Ruettershoff
;cause of the x.join(). This will block the parent process until all processes have been terminated. So as soon as the current set of processes have finished their job, a new set will be spawned. Cheers, Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: source install of python2.7 and rpm install of cx_Oracle collision

2010-07-22 Thread Nils Ruettershoff
il, you need to the "configure" script, that you like to have shared libraries. So you need to add --enable-shared to your configure call: ./configure --prefix=/opt/Python2.7a --enable-shared Now you got the shared libraries in the lib folder. Cheers, Nils -- http://mail.python.or

Re: source install of python2.7 and rpm install of cx_Oracle collision

2010-07-22 Thread Nils Ruettershoff
g" Now you OS knows the new library location. But this is not clean. As Daniel mention, you should try to get a rpm. Otherwise you may get in trouble, if you install a newer Python2.7 version and forget to maintain you library paths. Cheers, Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: seeking thru a file

2009-06-26 Thread Nils Rüttershoff
if line: my_buffer.append(my_file.readline()) counter += 1 else: data_present = False break if len(my_buffer) > 0: do_something(my_buffer) counter = 0 my_buffer = [] Kind Regards, Nils -- http://mail.python.org/mailman/listinfo/python-list

performance problem with time.strptime()

2009-07-02 Thread Nils Rüttershoff
roupdict() date_tuple = (result["year"], Shortmonth[result["month"]], result["day"], result["hour"], result["min"], result["sec"], -1, -1, -1) date_tuple = map(int,date_tuple) return time.mktime(date_tuple) with

Re: performance problem with time.strptime()

2009-07-02 Thread Nils Rüttershoff
Hi Casey Casey Webster wrote: > On Jul 2, 7:30 am, Nils Rüttershoff wrote: > > >> Rec = >> re.compile(r"^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\s-\s\d+\s\[(\d{2}/\w+/\d{4}:\d{2}:\d{2}:\d{2})\s\+\d{4}\].*") >> Line = '1.2.3.4 - 4459 [02/Jul/20

Re: Spam? Re: whizBase vs. Python

2009-07-02 Thread Nils Rüttershoff
se.blogspot.com/ There is a second contributer Faik Djikic and Whizbase is from a company called "Djikic Software Development".. What's the Topic of your study? Whizbase compared to other languages? Why Whizbase? Is your study public and if so were we could read it? ;) Regards, Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeding the rand() Generator

2009-08-06 Thread Nils Ruettershoff
tp://jan.kneschke.de/projects/mysql/order-by-rand/ if you want to know more please check this article too: http://jan.kneschke.de/2007/2/22/analyzing-complex-queries regards, Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: Standardizing RPython - it's time.

2010-10-12 Thread Nils Ruettershoff
for me it looks like the development itself has finished and the merging has started... Does anyone has more details? Regrads, Nils [1] http://www.python.org/dev/peps/pep-3146/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Standardizing RPython - it's time.

2010-10-12 Thread Nils Ruettershoff
On 10/12/2010 05:18 PM, Nils Ruettershoff wrote: Hi, On 10/12/2010 07:41 AM, John Nagle wrote: [...] With Unladen Swallow looking like a failed IT project, a year behind schedule and not delivering anything like the promised performance, Google management may pull the plug on funding

Keyboard problems with Python shell over SSH

2005-01-23 Thread Nils Emil P.Larsen
[D. How do I get my arrow buttons to work? Sorry if this is offtopic. Nils Emil P. Larsen -- My reply-address is valid. www.bios-flash.dk Min svar-adresse er gyldig. Redning af døde BIOS'er -- http://mail.python.org/mailman/listinfo/python-list

Re: Keyboard problems with Python shell over SSH

2005-01-24 Thread Nils Emil P.Larsen
ine" generated an error. I downloaded, compiled and installed GNU readline. Then I downloaded Python 2.4 source and configured it with ./configure --with-readline make make install This did the trick! Thank you! Nils Emil P. Larsen -- My reply-address is valid. www.bios-flash.dk Min svar

Comm. between Python and PHP

2005-02-22 Thread Nils Emil P.Larsen
a Internet browser. What is the easiest way to make my threaded Python daemon communicate with a PHP-script running from Apache2 on localhost? Thank you so far! Nils Emil P. Larsen -- My reply-address is valid. www.bios-flash.dk Min svar-adresse er gyldig. Redning af døde BIOS&#

Re: Comm. between Python and PHP

2005-02-23 Thread Nils Emil P.Larsen
Hello >Python is perfectly capable of generating HTML. You don't have to demean >yourself by working in PHP. Thanks for the tip about using Python instead of PHP to generate web pages. I may follow it. Nils Emil -- My reply-address is valid. www.bios-flash.dk Min svar

Re: Comm. between Python and PHP

2005-02-23 Thread Nils Emil P.Larsen
s everybody! Nils Emil P. Larsen -- My reply-address is valid. www.bios-flash.dk Min svar-adresse er gyldig. Redning af døde BIOS'er -- http://mail.python.org/mailman/listinfo/python-list

Critic: New Python Front Page

2014-03-08 Thread Nils-Hero Lindemann
HackTheWeb (https://addons.mozilla.org/de/firefox/addon/hack-the-web/). Please compare with e.g. Wikipedia, it is easy there to isolate the main content. http://www.python.org/community/ That picture is scary. Regards, Nils -- Nils-Hero Lindemann -- https://mail.python.org/mailman/listinfo/python-list

Re: Critic: New Python Front Page

2014-03-08 Thread Nils-Hero Lindemann
ent to ... https://github.com/python/pythondotorg/issues/265 Regards, Nils -- Nils-Hero Lindemann -- https://mail.python.org/mailman/listinfo/python-list

Re: Letting a Python application phone home

2006-07-15 Thread Nils Oliver Kröger
f this fails quit the program. Regards Nils -- http://mail.python.org/mailman/listinfo/python-list

Google code search (Was: Names changed to protect the guilty)

2006-10-08 Thread Nils R Grotnes
Google has a cool new service. http://www.google.com/codesearch You can use regular expressions! (I found at least 13 distinct utilities that used the idiom.) Nils -- http://mail.python.org/mailman/listinfo/python-list

Re: The Nature of the “Unix Philosophy”

2006-06-08 Thread Nils O. Selåsdal
Xah Lee wrote: > The Nature of the “Unix Philosophy” > > Xah Lee, 2006-05 > > In the computing industry, especially among unix community, we often > hear that there's a “Unix Philosophy”. In this essay, i dissect the > nature and characterization of such “unix philosophy”, as have been > describe

Re: calling a class instance of function

2006-12-21 Thread Nils Oliver Kröger
ine a class test which inherits pid. I'm not really sure what the following lines do ... this would usually be the place to introduce class variables. Hope that Helps! Greetings Nils Original-Nachricht Datum: 21 Dec 2006 11:09:32 +1100 Von: Pyenos <[EMAIL PROTECTED]>

Re: what is wrong with my code?

2006-12-21 Thread Nils Oliver Kröger
ble that pid is anything else but "len(progress_table)", you should use for example -1 as the default value and calculate the length inside your functions if the parameter is not different. Otherwise dump this parameter. Hope that helps! Greetings Nils Original-Nachric

Re: Python is removing my quotes!

2007-08-21 Thread Nils Oliver Kröger
the bash treats quotes as special characters, so does afaik the sh and a couple of other shells in the Unixverse. You will also need to escape blanks and depending on the shell a number of other special characters (like for example the pipe). Greetings Nils -BEGIN PGP SIGNATURE- Versi

Re: How to optimise this code?

2007-08-21 Thread Nils Oliver Kröger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David N Montgomery schrieb: > class testCase: > def __init__(self, tc): > if tc == 1:self.testCase1() > if tc == 2:self.testCase2() > if tc == 3:self.testCase3() > if tc == 4:self.testCase4() > if tc == 5:sel

Re: Threads and racing conditions

2007-08-22 Thread Nils Oliver Kröger
ht or might not work, but once your class gets more complex you will most likely run into serious problems. Greetings Nils -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGzHsizvGJy8WEGTcRAgN1AJ42cM1P/NW7Ei3

Re: Class destruction

2007-08-22 Thread Nils Oliver Kröger
file.close() print "File closed" Hope that helps ... Nils -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGzISBzvGJy8WEGTcRAiOwAJ94fJza4/GVQsFmbXwsP8kdvQjV5wCfQktw F/zPJAw0ayjYe5MGxPR1YqI= =4Hl6 -

Re: pdf to text

2007-01-25 Thread Nils Oliver Kröger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 have a look at the pdflib (www.pdflib.com). Their Text Extraction Toolkit might be what you are looking for, though I'm not sure whether you can use it detached from the pdflib itself. hth Nils tubby schrieb: > I know this question comes

Interpreter window

2007-02-02 Thread Nils Overas Bergen
I have created a Python application in Windows XP which uses WxWidgets. When I start the application from the Python interpreter I get one empty interpreter window in addition to the application window. Is there a way to close the interpreter window without closing the application? Or, can I start

Re: Interpreter window

2007-02-02 Thread Nils Overas Bergen
On 2 Feb, 13:07, "skyofdreams" <[EMAIL PROTECTED]> wrote: > "Nils Overas Bergen" <[EMAIL PROTECTED]> > [EMAIL PROTECTED] > > >I have created a Python application in Windows XP which uses > > WxWidgets. When I start the application from the Pyth

Re: Cant run application as ./myapp.py

2008-03-03 Thread Nils Oliver Kröger
g like #!/usr/bin/python If none of this is the problem please post the error message you (hopefully) get. hth Nils Robert Rawlins schrieb: > Hello Guys, > > > > I’ve got an application here which for some reason won’t start using the > following syntax from the comm

Re: Exception or not

2008-03-03 Thread Nils Oliver Kröger
lfill its task. For example lost connection to user database or things like that. A function should never propagate an expected result as an exception. Greetings Nils Monica Leko schrieb: | Suppose you have some HTML forms which you would like to validate. | Every field can have different errors.

Re: Python Query: Related to locking a resource in a multithreaded environment

2008-08-19 Thread Nils Oliver Kröger
ur methods for accessing as instance methods to this class and get the same instance of this class in each thread by calling Singleton.getInstance(). Hope that helps Regards Nils tarun schrieb: > I think I need something called global interpreter lock which is > accessible to all the thre

Python 3.5.0 Feedback

2015-10-17 Thread Nils-Hero Lindemann via Python-list
r ersten Stelle bei der Suche (welches Sie zwischendurch mal waren, glaube ich). === Bugs === * Python 3.5 verträgt a=input('\n') nicht. Gruß, Nils -- Nils-Hero Lindemann -- https://mail.python.org/mailman/listinfo/python-list