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
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:
> >
> 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
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
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
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
>
:
"""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
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
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
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
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&
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
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
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:
;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
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
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
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
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
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
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
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
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
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
[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
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
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
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
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
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
ent to ...
https://github.com/python/pythondotorg/issues/265
Regards, Nils
--
Nils-Hero Lindemann
--
https://mail.python.org/mailman/listinfo/python-list
f this fails quit
the program.
Regards
Nils
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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]>
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
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
-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
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
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
-
-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
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
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
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
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.
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
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
47 matches
Mail list logo