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
Nico Schlömer added the comment:
Thanks very much, Steven, for the feedback and the suggestion.
--
___
Python tracker
<https://bugs.python.org/issue43
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
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
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
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
Change by Nico :
--
versions: -Python 3.8
___
Python tracker
<https://bugs.python.org/issue41386>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Nico :
--
components: +Library (Lib) -Windows
___
Python tracker
<https://bugs.python.org/issue41386>
___
___
Python-bugs-list mailing list
Unsub
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
___
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
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.
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
>
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
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. :)
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
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
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
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
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
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 <
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 <
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
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
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
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
/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
*** 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
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
_imaging
...success imported!
Any idea what might be wrong?
Regards
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
example for me?
Regards
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
. -- 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
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
', '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
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
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
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
any keywords
arguments (TypeError: sort() takes no keyword arguments), so is there a
workaround?
Regards
Nico
--
http://mail.python.org/mailman/listinfo/python-list
'},
{'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
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
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
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
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
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.
this in Python?
Thanks in advance
Nico
--
http://mail.python.org/mailman/listinfo/python-list
! ;-)
Regards
Nico
--
http://mail.python.org/mailman/listinfo/python-list
this?
Thanks in advance.
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
hundret strings to check?
Thanks in advance,
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
and
Acquire/ReleaseLock, but so far i had no luck :)
Cheers, Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
-printable'
s = SMTP(host)
s.sendmail(mFrom, [mTo], mainMsg.as_string())
s.close()
#--
Regards,
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
,
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
?
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
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
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
paramter Tags in the content
that I parse.
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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',
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
be
expensive for large strings?
Thanks in advance,
Nico
--
http://mail.python.org/mailman/listinfo/python-list
replace console=[... by windows=[... in your setup.py
Works perfect. Thank you, Rony!
--
http://mail.python.org/mailman/listinfo/python-list
ExternalApplication.exe.
How can I close that black empty window automatically?
Thanks in advance,
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
, 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
: urlopen error unknown url type: https
Any idea, what I did wrong?
Regards,
Nico
--
http://mail.python.org/mailman/listinfo/python-list
.
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
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
', '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
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
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
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
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
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
split a string where 'and', 'or', 'and not' occurs?
Thank you very much in advance,
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
' 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
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
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
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
-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
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
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
'
Nico
--
http://mail.python.org/mailman/listinfo/python-list
')
f.write(test 123)
f.close()
print Done!
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
') replace the first line in the existing file?
Nico
--
http://mail.python.org/mailman/listinfo/python-list
and many thanks in advance,
Nico
--
http://mail.python.org/mailman/listinfo/python-list
work!
Nico
--
http://mail.python.org/mailman/listinfo/python-list
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
--
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
, je me suis trompé de groupe en postant... :(
--
nico
--
http://mail.python.org/mailman/listinfo/python-list
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
, 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
, 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
100 matches
Mail list logo