[issue36207] robotsparser deny all with some rules

2021-09-29 Thread Nico
Nico added the comment: Had same problem today for my website (https://www.bonus4casino.fr/), following for a fix -- nosy: +nico.bonefato ___ Python tracker <https://bugs.python.org/issue36

[issue43786] slice(None) is slice(None) is False

2021-04-09 Thread Nico Schlömer
Nico Schlömer added the comment: Thanks very much, Steven, for the feedback and the suggestion. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43786] slice(None) is slice(None) is False

2021-04-09 Thread Nico Schlömer
New submission from Nico Schlömer : I stumbled upon this when dealing with NumPy arrays: ``` slice(None) is slice(None) ``` ``` False ``` This came up when trying to check if a variable `a` equals `slice(None)`. The comparison ``` a = slice(None) a == slice(None) ``` ``` True ``` works

[issue41386] Popen.wait does not account for negative return codes

2020-07-25 Thread Nico
Nico added the comment: Yeah I see the point. To me it does make no sense because even in the windows API they seam to not know whether to use a ulong or a uint nor does this reflect the actual depiction within the program. However it is probably not worth implementing a flag for that nor

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Nico added the comment: We apparently need a flag to ensure compatibility with the windows return codes == FAIL: test_disable_windows_exc_handler (test.test_faulthandler.FaultHandlerTests

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Nico added the comment: I don't know if it should be a good idea to add a flag to turn off the negative conversation? -- ___ Python tracker <https://bugs.python.org/issue41

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Change by Nico : -- versions: -Python 3.8 ___ Python tracker <https://bugs.python.org/issue41386> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Change by Nico : -- components: +Library (Lib) -Windows ___ Python tracker <https://bugs.python.org/issue41386> ___ ___ Python-bugs-list mailing list Unsub

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
Nico added the comment: I suggest implementing a singed conversation into _wait -- keywords: +patch message_count: 1.0 -> 2.0 pull_requests: +20749 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21607 ___

[issue41386] Popen.wait does not account for negative return codes

2020-07-24 Thread Nico
New submission from Nico : Following problem occurred. A C style program can have negative return codes. However this is not correctly implemented in the Windows API. Therefore it is being returned as unsigned long by the API hence it leads to ambiguity while comparing return codes

[issue31415] Add -X option to show import time

2018-07-01 Thread Nico Schlömer
Nico Schlömer added the comment: I just updated tuna [1] to support import time profiles as well. Install with ``` pip install tuna ``` and use with ``` python -X importprofile yourfile.py 2> import.log tuna import.log ``` See screenshot for example output. Cheers, Nico [1] https://github.

Re: cProfile, timed call tree

2018-05-28 Thread Nico Schlömer
Thanks, Dieter, for the concise answer. Cheers, Nico On Sat, May 26, 2018 at 7:42 AM dieter <die...@handshake.de> wrote: > Nico Schlömer <nico.schloe...@gmail.com> writes: > > > From what I understand about the Python profilers, the type of > information >

cProfile, timed call tree

2018-05-25 Thread Nico Schlömer
not construct the call tree with times from Stats. Is this correct? If not, how to get a timed call tree from Stats? Perhaps that's not the right think to work with? Cheers, Nico -- https://mail.python.org/mailman/listinfo/python-list

[issue29282] Fused multiply-add: proposal to add math.fma()

2018-02-21 Thread Nico Schlömer
Nico Schlömer <nico.schloe...@gmail.com> added the comment: Okay, thanks for the info. As a stop-gap measure, I've created pyfma [1, 2]. Install with ``` pip install pyfma ``` and use with ``` pyfma.fma(3.0, 2.0, 1.0) ``` Only works on Unix reliable then, but that's all I care about. :)

[issue29282] Fused multiply-add: proposal to add math.fma()

2018-02-20 Thread Nico Schlömer
Nico Schlömer <nico.schloe...@gmail.com> added the comment: > Existing libm implementations don't work, Okay. Is this because of the inf/NaN discrimination hiccups mentioned above or are there any other pitfalls? -- ___ Python tra

[issue29282] Fused multiply-add: proposal to add math.fma()

2018-02-20 Thread Nico Schlömer
Nico Schlömer <nico.schloe...@gmail.com> added the comment: Do I read this thread correctly assuming that this hasn't been implemented yet? If not, I would probably make my own little library for this -- I really need the feature for the precision. -- nosy: +n

Re: GUI user input to function

2017-12-29 Thread Nico Vogeli
Am Donnerstag, 28. Dezember 2017 14:00:14 UTC+1 schrieb Chris Angelico: > On Thu, Dec 28, 2017 at 11:06 PM, Nico Vogeli <nicco.9...@gmail.com> wrote: > > Am Donnerstag, 28. Dezember 2017 12:59:24 UTC+1 schrieb Chris Angelico: > >> On Thu, Dec 28, 2017 at 8:38 PM, Nico Voge

Re: GUI user input to function

2017-12-28 Thread Nico Vogeli
Am Donnerstag, 28. Dezember 2017 12:59:24 UTC+1 schrieb Chris Angelico: > On Thu, Dec 28, 2017 at 8:38 PM, Nico Vogeli <nicco.9...@gmail.com> wrote: > > Withs test, this return a correct value for the two x functions: > > > > from sympy import symbols > > > &g

GUI user input to function

2017-12-28 Thread Nico Vogeli
Hello again I think my question got lost in all the others raised, so here I am again :P So, I tried my best, was looking into the eval and exec function, but still no succsess.. Maybe it helps when I provide the code I want to implement: def newton_verfahren(self): if

Re: user input string to function

2017-12-25 Thread Nico Vogeli
Am Montag, 25. Dezember 2017 16:56:19 UTC+1 schrieb Chris Angelico: > On Tue, Dec 26, 2017 at 2:04 AM, Nico Vogeli <nicco.9...@gmail.com> wrote: > > Am Montag, 25. Dezember 2017 15:58:26 UTC+1 schrieb Chris Angelico: > >> On Tue, Dec 26, 2017 at 1:48 AM, Nico Vogeli <

Re: user input string to function

2017-12-25 Thread Nico Vogeli
Am Montag, 25. Dezember 2017 15:58:26 UTC+1 schrieb Chris Angelico: > On Tue, Dec 26, 2017 at 1:48 AM, Nico Vogeli <nicco.9...@gmail.com> wrote: > > Am Montag, 25. Dezember 2017 14:51:21 UTC+1 schrieb Chris Angelico: > >> On Tue, Dec 26, 2017 at 12:36 AM, Nico Vogeli <

Re: user input string to function

2017-12-25 Thread Nico Vogeli
Am Montag, 25. Dezember 2017 14:51:21 UTC+1 schrieb Chris Angelico: > On Tue, Dec 26, 2017 at 12:36 AM, Nico Vogeli <nicco.9...@gmail.com> wrote: > > Hi everybody. First ad foremost, happy Christmas! > > Same to you! > > > I want to let the use input a function

user input string to function

2017-12-25 Thread Nico Vogeli
Hi everybody. First ad foremost, happy Christmas! I want to let the use input a function (like x**2) and parse it after that through code (for my numeric class) import numpy as np import matplotlib.pyplot as plt import scipy.linalg from sympy.abc import o, h import sympy from sympy import

[issue29522] PyLong_AsDouble Behaviour is Weird

2017-02-10 Thread nico
New submission from nico: I'm using the pre-installed version of Python 2.7.12 on Ubuntu 16.04. Pretty straight forward error the following code: PyObject * intobj = PyInt_FromLong(10); double d1 = (double)PyLong_AsLong(intobj); double d2 = PyLong_AsDouble(intobj); printf("Should be the

[issue9720] zipfile writes incorrect local file header for large files in zip64

2013-01-04 Thread Nico Möller
Nico Möller added the comment: I most definitely need a patch for 2.7.3 Would be awesome if you could provide a patch for that version. -- nosy: +Nico.Möller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9720

Re: PIL: The _imaging C module is not installed

2011-05-09 Thread Nico Grubert
/bin/pildriver.py to 755 creating /usr/local/lib/python2.4/site-packages/PIL.pth $ python selftest.py *** The _imaging C module is not installed Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 92, Issue 40

2011-05-06 Thread Nico Grubert
*** LITTLECMS support not available However, running the selftest still fails: $ python selftest.py *** The _imaging C module is not installed Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL: The _imaging C module is not installed

2011-05-06 Thread Nico Grubert
available *** LITTLECMS support not available However, running the selftest still fails: $ python selftest.py *** The _imaging C module is not installed Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

PIL: The _imaging C module is not installed

2011-05-05 Thread Nico Grubert
_imaging ...success imported! Any idea what might be wrong? Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

Build unordered list in HTML from a python list

2010-06-30 Thread Nico Grubert
of the list has 'True' for the 'hassubfolder' key than a new ulli must be created instead of /li after its title. (See Folder 2 node in the HTML code above. My problem is: How do I keep track of the closing tags while iterating over the python list? Any help is much appreciated. Regards Nico

Re: Build unordered list in HTML from a python list

2010-06-30 Thread Nico Grubert
example for me? Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

itertools: problem with nested groupby, list()

2010-05-04 Thread Nico Schlömer
is attached. Hints, anyone? Cheers, Nico #! /usr/bin/env python # -*- coding: utf-8 -*- import operator, itertools my_list = [ { a: 1, b: 1, c: 3 }, { a: 1, b: 1, c: 4 }, { a: 1, b: 11, c: 3 }, { a: 1, b: 11, c: 4 }, { a: 2, b: 1, c: 3

Re: itertools: problem with nested groupby, list()

2010-05-04 Thread Nico Schlömer
. -- I'll look at Uli's comments. Cheers, Nico On Tue, May 4, 2010 at 1:08 PM, Jon Clements jon...@googlemail.com wrote: On 4 May, 11:10, Nico Schlömer nico.schloe...@gmail.com wrote: Hi, I ran into a bit of an unexpected issue here with itertools, and I need to say that I discovered

Re: itertools: problem with nested groupby, list()

2010-05-04 Thread Nico Schlömer
they are called generators) and you should be fine. I'll look into this, thanks for the hint. Cheers, Nico On Tue, May 4, 2010 at 12:46 PM, Ulrich Eckhardt eckha...@satorlaser.com wrote: Nico Schlömer wrote: I ran into a bit of an unexpected issue here with itertools, and I need to say

Re: itertools: problem with nested groupby, list()

2010-05-04 Thread Nico Schlömer
', 'second']: # do something with data Potentially yes, but for now I actually need to do something at print 'New A', a, so I can't just skip this. Anyway, the above suggestion works well for now. Thanks! --Nico On Tue, May 4, 2010 at 1:52 PM, Jon Clements jon...@googlemail.com wrote

[issue8609] itertools: problem with nested groupby, list()

2010-05-04 Thread Nico
New submission from Nico nico.schloe...@gmail.com: Hi, I ran into a bit of an unexpected issue here with itertools. I need to say that I discovered itertools only recently, and that maybe my way of approaching the problem is not what I want to do. If you think this may be the case, please

[issue8609] itertools: problem with nested groupby, list()

2010-05-04 Thread Nico
Nico nico.schloe...@gmail.com added the comment: Okay, thanks for the hint. Closing as invalid. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8609

Sort list of dictionaries by key (case insensitive)

2010-01-13 Thread Nico Grubert
by the dictioary's 'title' key? The result should be this list: [{'title':'the bible', 'id':3}, {'title':'the Fog', 'id':1}, {'title':'The Storm', 'id':2}, {'title':'The thunder', 'id':4} ] I am using Python 2.4. Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Sort list of dictionaries by key (case insensitive)

2010-01-13 Thread Nico Grubert
any keywords arguments (TypeError: sort() takes no keyword arguments), so is there a workaround? Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Sort list of dictionaries by key (case insensitive)

2010-01-13 Thread Nico Grubert
'}, {'id': 3, 'title': 'the bible'}, {'id': 1, 'title': 'the \xc4hnlich'}] The entry with the umlaut is the last item in but according to german umlaut rules it should be the first item in the result. Do I have to set anything with the locale module? Regards Nico -- http://mail.python.org

Re: Sort list of dictionaries by key (case insensitive)

2010-01-13 Thread Nico Grubert
http://wiki.python.org/moin/HowTo/Sorting#Topicstobecovered Works fine. Thanks a lot for your help, Stefan. Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: ftplib timeout in Python 2.4

2009-12-18 Thread Nico Grubert
Try the timelimited function from this recipe http://code.activestate.com/recipes/576780/ Works perfect! Thanks a lot, Jean! -- http://mail.python.org/mailman/listinfo/python-list

ftplib timeout in Python 2.4

2009-12-17 Thread Nico Grubert
Hi there, The ftplib has a timeout parameter in Python 2.6 and above. Is there a way to set a timeout in Python 2.4? Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: ftplib timeout in Python 2.4

2009-12-17 Thread Nico Grubert
I don't know of one so you may need a workaround. What platforms do you need to support? Suse Linux Enterprise 10, 64 Bit with Python 2.4.4. I need the Python 2.4.4 for a running application Server (Zope). -- http://mail.python.org/mailman/listinfo/python-list

Re: List of paths

2009-04-08 Thread Nico Grubert
Here's a tricky case that doesn't show up in your example: In each case above, the directory names are distinct. how about: ['/desk', '/desk/ethanallen', '/desk/ikea', '/desktop', /desktop/pc', '/desktop/mac'] Should the answer be ['/desk'] or ['/desk', '/desktop'] ? Hi Scott good point.

List of paths

2009-04-01 Thread Nico Grubert
this in Python? Thanks in advance Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: List of paths

2009-04-01 Thread Nico Grubert
! ;-) Regards Nico -- http://mail.python.org/mailman/listinfo/python-list

Rebuild list of objects with redundancies on objects' attribute

2008-01-10 Thread Nico Grubert
this? Thanks in advance. Nico -- http://mail.python.org/mailman/listinfo/python-list

Unicode string formating

2007-11-30 Thread nico
Hi, I need to do a lot of string formating, and I have strings and/or unicode strings and when I do the following: %s %s % (u'Salut', 'H\xe4llo'), I get an exception : UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal not in range(128) How can I insure I don't get an

Find Replace hyperlinks in a string

2007-11-26 Thread Nico Grubert
hundret strings to check? Thanks in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

How can I have one element list or tuple?

2007-11-01 Thread nico
The following example returns a string type, but I need a tuple... var = (Hello) print type(var) type 'str' I need that for a method parameter. Thx -- http://mail.python.org/mailman/listinfo/python-list

Problems with threading in embedded Python

2007-08-17 Thread Nico Blodow
and Acquire/ReleaseLock, but so far i had no luck :) Cheers, Nico -- http://mail.python.org/mailman/listinfo/python-list

How to use unix_md5_crypt from Perl in Python?

2007-03-22 Thread Nico Grubert
PROTECTED]' password = 'root' import crypt crypt.crypt(username, password) 'roowueH.vq6VM' This creates 'roowueH.vq6VM' but not 'roK20XGbWEsSM'. :-( Thanks in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

Python's email module - problem with umlauts in some email clients

2006-12-08 Thread Nico Grubert
-printable' s = SMTP(host) s.sendmail(mFrom, [mTo], mainMsg.as_string()) s.close() #-- Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

ldapsearch example in python-ldap?

2006-11-23 Thread Nico Grubert
Hi there, on a linux machine I am running this ldapsearch from the command line: ldapsearch -x -h myldaphost.mydomain.com \ -D CN=ldapuser,CN=Users,DC=mydomain,DC=com -w secret \ -b CN=ANYCOMPUTER,CN=Computers,DC=mydomain,DC=com How can I do this with python-ldap? Regards, Nico

PIL on Python 2.4 - ImportError: No module named _imagingft

2006-10-31 Thread Nico Grubert
, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL on Python 2.4 - ImportError: No module named _imagingft [Solved]

2006-10-31 Thread Nico Grubert
If I try import _imagingft I get this error: ImportError: No module named _imagingft Did I miss something? Yes, I did. Somehow, there was no _imagingft.so in the PIL directory. -- http://mail.python.org/mailman/listinfo/python-list

Convert binary image to JPEG with 72 dpi

2006-10-20 Thread Nico Grubert
pixels. I'd like to use PIL for this job. Any tips how to do it?Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python on a 64-Bit OS

2006-09-21 Thread Nico Grubert
Python 2.4.3. and I am trying to get it running. Thanks for the tips. Nico -- http://mail.python.org/mailman/listinfo/python-list

Installing Python on a 64-Bit OS

2006-09-19 Thread Nico Grubert
? Is there anything special I have to care about or is installing Python on a 64 Bit OS just as easy as installing it on a 32-Bit OS? Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching a string and extract all occurancies of a substring

2006-09-01 Thread Nico Grubert
is this XML, or just something that looks a little like XML ? Unfortunately, something that looks a little XML so I can't use a XML parser. But the HTML parser does the job. -- http://mail.python.org/mailman/listinfo/python-list

Searching a string and extract all occurancies of a substring

2006-08-31 Thread Nico Grubert
with this: [/www/mydoc1, /foo/bar/doc] What's the best way to do this? I'll need to use Python: 2.3.5 Thanks in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching a string and extract all occurancies of a substring

2006-08-31 Thread Nico Grubert
paramter Tags in the content that I parse. Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching a string and extract all occurancies of a substring

2006-08-31 Thread Nico Grubert
This works as long as there are no other paramter Tags in the content that I parse. Got it. I forgot to handle the 'attrs' parameter in handle_starttag(). Changed it to: def handle_starttag(self, tag, attrs): if tag == 'parameter': if attrs == [('key',

How to change the path for python binary?

2006-08-10 Thread Nico Grubert
calls the Python 2.4.3 interpreter. My question now is: What do I have to do in order to get the Python 2.3.5 interpreter each time I enter python in the shell? Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Search substring in a string and get index of all occurances

2006-06-21 Thread Nico Grubert
be expensive for large strings? Thanks in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: os.popen3() - how to close cmd window automatically?

2006-06-01 Thread Nico Grubert
replace console=[... by windows=[... in your setup.py Works perfect. Thank you, Rony! -- http://mail.python.org/mailman/listinfo/python-list

os.popen3() - how to close cmd window automatically?

2006-05-31 Thread Nico Grubert
ExternalApplication.exe. How can I close that black empty window automatically? Thanks in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: How to open https Site and pass request?

2006-05-24 Thread Nico Grubert
and installed the package python-openssl which allows me to import the module OpenSSL (import OpenSSL) but I think installing this package has nothing to do with the SSL support of my python installation. Is that true? Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find out a date/time difference

2006-05-24 Thread Nico Grubert
, 16, 1, 26) b = datetime.datetime(2006, 5, 20, 12, 1, 26) a-b datetime.timedelta(4) # 4 days b = datetime.datetime(2006, 5, 20, 12, 1, 26) x = a-b x datetime.timedelta(4, 14400) str(x) '4 days, 4:00:00' Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

How to open https Site and pass request?

2006-05-23 Thread Nico Grubert
: urlopen error unknown url type: https Any idea, what I did wrong? Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: How to open https Site and pass request?

2006-05-23 Thread Nico Grubert
. However, I am wondering how I can additionally enable SSL support for my python installation ? Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope Guru...

2006-05-04 Thread Nico Grubert
including workflow is Plone. http://www.plone.org If you plan to start using Zope 3, you might want to take a look at http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Workflow Regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Sorting a list of dictionaries by dictionary key

2006-05-03 Thread Nico Grubert
', 'from_datetime': DateTime('2006/04/25 12:45:00 GMT+2')}] Any idea how I can sort this list? Thank you very much in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: Sorting a list of dictionaries by dictionary key

2006-05-03 Thread Nico Grubert
assuming that DateTime returns something that compares correctly, you can do something like: def sortkey(item): return item.get(from_datetime) data.sort(key=sortkey) (assuming Python 2.4 or later) Thank you very much, Frederik. Unfortunately, I can only use Python

Problem with spawning an external process

2006-04-12 Thread Nico Kruger
import time import select import threading # Change these to suit your system PATH = '/home/nico/j2sdk1.4.2/bin/java' #PATH = '/home/nico/j2sdk1.4.2/bin/java -invalid_arg' def get_ret(status): signal = status 0xff if signal == 0: retcode = status 8 else

Re: Problem with spawning an external process

2006-04-12 Thread Nico Kruger
Apologies, this is on a Fedora Core 2 system. On Wed, 2006-04-12 at 11:27, Nico Kruger wrote: I want to execute a command (in this case, and it seems to be significant, a Java program) in a thread in Python. When I execute the java binary in the main python thread, everything runs correctly

Re: Problem with spawning an external process

2006-04-12 Thread Nico Kruger
Daniel, you are correct, it is not that good news for me :) But anyway, thanks to your responses, I installed Python 2.4.3 and it is working on my machine now as well. We were overdue for an upgrade to our Python environment anyways, so I think this is the final incentive to upgrade. Although, I

Re: Problem with spawning an external process

2006-04-12 Thread Nico Kruger
Not working with Python 2.3.5 here on Fedora Core 2 :(. Oh well, at least it's working on 2.4. Must be specific to something in the combination of Fedora Core 2 and Python 2.3.x, that is all I can think of. On Wed, 2006-04-12 at 12:55, Nico Kruger wrote: Daniel, you are correct

Splitting a string

2006-02-13 Thread Nico Grubert
split a string where 'and', 'or', 'and not' occurs? Thank you very much in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: python-soappy

2006-01-11 Thread Nico Grubert
can anybody point me to a tutorial, howto or example code of python-soappy...? google did not have really useful results about... This might be helpful: http://www-128.ibm.com/developerworks/library/ws-pyth5/ http://users.skynet.be/pascalbotte/rcx-ws-doc/python.htm Nico -- http

String question - find all possible versions of a person's firstname

2006-01-10 Thread Nico Grubert
' as parameter to it: 'Michele' 'Michelè' 'Michelé' 'Michelê' 'Michêle' 'Michêlè' 'Michêlé' 'Michêlê' 'Michèle' 'Michèlè' 'Michèlé' 'Michèlê' 'Michéle' 'Michélè' 'Michélé' 'Michélê' Thanks in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: String question - find all possible versions of a person's firstname

2006-01-10 Thread Nico Grubert
This sounds like a homework problem. You might try splitting the name at the e's, check the length of the resulting list and do that many nested loops. This was my idea too but I am wondering if there are any scripts for tasks like this. Nico -- http://mail.python.org/mailman/listinfo

How to ping in Python?

2005-12-05 Thread Nico Grubert
Hi there, I could not find any ping Class or Handler in python (2.3.5) to ping a machine. I just need to ping a machine to see if its answering. What's the best way to do it? Kind regards, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: ftplib question - ftp.dir() returns something and ftp.nlst() does not

2005-11-25 Thread Nico Grubert
connection.\r\n' *resp* '150 About to open data connection.' *retr* '' *get* '226 Transfer complete.\r\n' *resp* '226 Transfer complete.' [] Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: ftplib question - ftp.dir() returns something and ftp.nlst() does not

2005-11-25 Thread Nico Grubert
-r--r--r-- 1 ownergroup 115 Nov 24 15:53 status.dat -r--r--r-- 1 ownergroup 339 Nov 24 15:53 debug.txt Nico -- http://mail.python.org/mailman/listinfo/python-list

ftplib question - ftp.dir() returns something and ftp.nlst() does not

2005-11-24 Thread Nico Grubert
Transfer complete.' ftp.nlst() [] I thought ftp.nlst() would return the list ['member.dat', 'status.dat', 'debug.txt']. Any idea, what is going wrong here? Nico -- http://mail.python.org/mailman/listinfo/python-list

Question about parsing a string

2005-10-10 Thread Nico Grubert
to generate this string: 'a href=http://www.whatever.org;My link/a' Any idea how I can do this? Maybe with regular expressions? Thanks in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

How to use a timer in Python?

2005-09-23 Thread Nico Grubert
' Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use a timer in Python?

2005-09-23 Thread Nico Grubert
') f.write(test 123) f.close() print Done! Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use a timer in Python?

2005-09-23 Thread Nico Grubert
to check if there is a lock file. How would you modify my short program to avoid the situation Ie someone can get in there after you read the directory but before you create the file.? Nico -- http://mail.python.org/mailman/listinfo/python-list

How to use writelines to append new lines to an existing file

2005-09-22 Thread Nico Grubert
') replace the first line in the existing file? Nico -- http://mail.python.org/mailman/listinfo/python-list

How to copy a file from one machine to another machine

2005-09-21 Thread Nico Grubert
and many thanks in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

Re: How to copy a file from one machine to another machine

2005-09-21 Thread Nico Grubert
work! Nico -- http://mail.python.org/mailman/listinfo/python-list

Embedded python

2005-08-04 Thread nico
Hi, Does anyone have embedded a python interpreter on a proprietary hardware ? I have a home made hardware running a home made OS. C is used as programming language. I'd like to add a python interpreter to my system. Any guidelines ? Nicolas --

OT: Survey facing design patterns and communication

2005-06-06 Thread Nico
Hello everybody! We are a group of students at Freie Universitaet Berlin. As part of our computer science studies we are going to do a survey facing the use of design patterns in communication. Examples of design patterns are Abstract Factory, Singleton, Composite, Iterator and Listener. If

Re: lambda a plusieurs arguments

2005-05-28 Thread nico
, je me suis trompé de groupe en postant... :( -- nico -- http://mail.python.org/mailman/listinfo/python-list

Re: lambda a plusieurs arguments

2005-05-28 Thread nico
Jp Calderone wrote: On Fri, 27 May 2005 19:38:33 +0200, nico [EMAIL PROTECTED] wrote: Bonjour, Comment faire une fonction lambda a plusieurs arguments ? (lambda a:a+1)(2) 3 f=(lambda (a,b):a+b) f(5,6) Traceback (most recent call last): File stdin, line 1, in ? TypeError: lambda() takes

lambda a plusieurs arguments

2005-05-27 Thread nico
, line 1, in ? File stdin, line 1, in lambda TypeError: unpack non-sequence pourquoi ca ne marche pas ? je ne comprends pas le message d'erreur ! Merci. -- nico -- http://mail.python.org/mailman/listinfo/python-list

Remove HTML tags (except anchor tag) from a string using regular expressions

2005-02-01 Thread Nico Grubert
, how to modify this to remove all html tags except a ...xxx/a? Thanks in advance, Nico -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >