(4) returns a list and Python's list.extend() returns None. Extend
is a in-place operation.
-- timo
--
http://mail.python.org/mailman/listinfo/python-list
ns correct? Do you have ideas for improvements
(especially regarding speed)? I'm restricted to Py2.3+ compatibility.
Thanks,
Timo
--
http://mail.python.org/mailman/listinfo/python-list
tion warning
(just like they should be doing).
My environment: Windows 2000 + SP3.
BR,
Timo
--
http://mail.python.org/mailman/listinfo/python-list
Martin v. Löwis wrote:
> Timo wrote:
> > Does anyone have a clue what is going on?
>
> No. Please make a bug report to sf.net/projects/python.
>
Done:
http://sourceforge.net/tracker/index.php?func=detail&aid=1178484&group_id=5470&atid=105470
BR,
Timo
--
_slots__ = ('bar',)
def func(self):
return 123
x = MyClass()
x.instance_var_not_defined_in_the_class = 456
==>
AttributeError: 'MyClass' object has no attribute
'instance_var_not_defined_in_the_class'
x.func = 789
==>
AttributeError: 'My
there seems to be a strange problem inside distutils. I looked at
that source code but couldn't make any sense out of it. Any idea of
what could cause this and how this could be fixed would be greatly
appreciated
Thanks
Timo
--
http://mail.python.org/mailman/listinfo/python-list
glob import iglob
def ipathnames(pattern):
return (abspath(n) for n in iglob(pattern))
for xmlfile in ipathnames('*.xml'):
-- timo
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 17 Jun 2011 00:57:25 +, Jason Friedman said:
>
> but for various reasons I want a single script. Any alternatives?
you can use a here document like this:
#! /bin/bash
/usr/bin/python2 << EOPYTHON
def hello():
print("Hello, World");
if __name__ == "__main__":
hel
On Fri, 17 Jun 2011 22:15:57 +0200, Hans Mulder said:
> On 17/06/11 19:47:50, Timo Lindemann wrote:
>> On Fri, 17 Jun 2011 00:57:25 +, Jason Friedman said:
>>
>>
>>
>>> but for various reasons I want a single script. Any alternatives?
>>
>> yo
ors and am thinking in completely wrong directions?
Thanks in advance!
Kind regards,
Timo
--
http://mail.python.org/mailman/listinfo/python-list
store it in an
> object and use an instance method as the decorator:
Yes, this is the same idea that Wayne came up with. Thank you as well,
that helped me understand decorators a lot more.
Kind regards,
Timo
--
http://mail.python.org/mailman/listinfo/python-list
er
Brilliant! I didn't realize you could use member functions as
decorators, too! That way, you can easily create closures to self,
solving all the problems I was seeing.
Just one question remains now: What is a "Borg" in this context?
Thank you.
Timo
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 19, 2011 at 08:20:05AM -0600, Ian Kelly wrote:
> On Tue, Apr 19, 2011 at 1:12 AM, Timo Schmiade wrote:
> > Just one question remains now: What is a "Borg" in this context?
>
> http://code.activestate.com/recipes/66531/
> --
> http://mail.python.o
/watch?v=iVBCNZykcrc&ab_channel=MaterialiseMedical
But unfortunately it does not work.
Could you help me out?
Kind regards,
Timo Meijer
0031651634920
Verzonden vanuit Mail<https://go.microsoft.com/fwlink/?LinkId=550986> voor
Windows
--
https://mail.python.org/mailman/listinfo/python-list
+ 3
Cheers, Timo
On Sat, Jun 2, 2018 at 1:12 PM Sharan Basappa
wrote:
> Can anyone please tell me what the following line in a python program does:
>
> line = lambda x: x + 3
>
> I have pasted the entire code below for reference:
>
> from scipy.optimize import fsolve
>
Can you be more specific.
What did you try? In which environment? What was the error message you got?
On Sun, Jun 10, 2018 at 6:32 PM sagar daya wrote:
> Couldn't install any module from pip
> Plz help???
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
[EMAIL PROTECTED] wrote:
Andrew Dalke:
(BTW, it needs to be 1 .. 12 not 1..12 because 1. will be interpreted
as the floating point value "1.0".)<
Uhm, I have to fix my ignorance about parsers.
Cannot a second "." after the first tell that the first "." isn't in
the middle of a floating point number
anything to do with
the tuple. They are just used for disambiguation. It's the commas that define
the tuple.
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
This guy has got to be a troll. No other way to understand.
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
Davor wrote:
Timo Virkkala wrote:
This guy has got to be a troll. No other way to understand.
not really - it was not my intention at all - but it seems people get
upset whenever this OO stuff is mentioned - and what I did not expect at
all at this forum as I believed Python people should not be
reversed(x)
x.reverse()
y = x.reversed()
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
The Flow wrote:
Do you want to be taken seriously?
First, stop posting.
Second, learn perl.
Third, learn python.
No. Second, learn Python. Third, learn Perl (optional). :)
But we do agree on the first.
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
Thanks to those who have made useful comments. They will be
assimilated.
The comments, or those who have made comments?
"Corrections are futile. You will be assimilated."
--Xah Lee
--
Timo Virkkala
--
http://mail.python.org/mailma
is used. Check case. You'll find the problem :)
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
is it possible to write python code without any indentation?
1) Why in the name of Xah Lee would you even want to?
2) If you need to ask questions this simple, are you sure you are the right
person to write tutorials?
3) Do you even read the replies you get?
--
Timo Virkkala
at home. Or after 10 minutes of learning the commands, that is.
And as someone already suggested, TortoiseSVN is a great front-end for SVN. It
integrates with the Windows shell very nicely.
http://subversion.tigris.org/
http://tortoisesvn.tigris.org/
--
Timo Virkkala
--
http://mail.python.org/mai
of
2, 4, 8 etc. as well as other things.
range(2, 100, 4)
How about you fire up the interactive python and try
help(range)
;)
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm having some weird issues with Python 2.4 and PyOpenGL 2.0.2.01 (and
also with older versions).
When I call glutGetModifiers from event handler functions (set using
glutMouseFunc, glutMotionFunc etc...), it just says:
"GLUT: Warning in foo: glutCurrentModifiers: do not call outside core
do it?
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
ou'll probably find your answer at http://www.python.org
Take a look at the Docs -> Language Reference and PEP sections.
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
Simon Wittber wrote:
I guess this changes my question to: Can I convert a function
containing an infinite loop, into a generator which will yield on each
iteration?
Why don't you just use threads? It would probably be easier in the long
run...
--
Timo Virkkala
--
http://mail.python.org/ma
;s unfair! That approach leads to Python every time!
Oh wait, that was the purpose.. :)
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
P makes data
encapsulation so much easier. Writing correct code with minimum effort should be
the first goal, speed issues (at that level) should be brought into the game
later on.
You should ask your co-worker if he also puts all his data in global variables
:)
*wink*
--
Timo Virkkala
--
http
rograms in
Python would have been a LOT nicer. Less challenging, sure, but definitely more fun.
--
Timo Virkkala
--
http://mail.python.org/mailman/listinfo/python-list
on to your problem (the solution would be to use
JavaScript), but if I was a user, I'd rather type in the day number myself than
have to choose from a 31-long dropdown. Why don't you just give the user a text
field and then validate the input.
Just my 2 cents..
--
Timo Virkkala
--
http://
Twain, _Following the Equator_ |
> _o__) |
> Ben Finney
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
*Timo Furrer*
https://github.com/timofurrer
tuxt...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
do-terminal (pipe)
* curses is not able to accept user input from the pseudo-terminal
The question is:
How do I read from stdin first and afterwards allow curses to read user
input?
Thanks in advance and kind regards,
Timo
--
http://mail.python.org/mailman/listinfo/python-list
Hi again,
sorry for replying to my own mail, but is there really no solution? Can
curses really not be used in this situation?
Thanks again,
Timo
On Sun, Aug 11, 2013 at 02:05:11PM +0200, Timo Schmiade wrote:
> Hi all,
>
> I wrote a replacement for urlview to properly extract URLs fr
Claudio Grondi schrieb:
> Looking this thread growing it appears to me, that at least one thing
> becomes evident here:
>
> Xah unwillingness to learn from the bad past experience contaminates
> others (who are still posting to his trolling threads).
This is actually one of the most interesting
John Bokma schrieb:
>
> I have warned this user that excessive offtopic cross-posting is not
> allowed,[...]
>
I just wrote to the abuse department at dreamhost, telling them that
your accusations are highly exaggerated.
Timo
--
http://mail.python.org/mailman/listinfo/python-list
ction about your junk filters.
Timo
--
http://mail.python.org/mailman/listinfo/python-list
ppreciate his
posts.
> but since I've stopped following threads originated by him
That's all you need to do if you are not interested in his posts.
Timo
--
http://mail.python.org/mailman/listinfo/python-list
John Bokma schrieb:
> Timo Stamm <[EMAIL PROTECTED]> wrote:
>
>> Tim N. van der Leeuw schrieb:
> [...]
>>> but since I've stopped following threads originated by him
>> That's all you need to do if you are not interested in his posts.
>
> Yo
Hi,
I'll have to do some scripting in the near future and I was
thinking on using the Python for it. I would like to know which
version of Python to use? Is the Python 3 ready for use or should
I stick with older releases?
Timo
--
http://mail.python.org/mailman/listinfo/python-list
Ok, I think I'll stick with the 2.6 then. I recall it gave
warnings about things that are deprecated in 3.0 so it will make
porting the scripts to 3.0 easier.
I might try 3.0 once I know what kind of scripts are needed.
--
http://mail.python.org/mailman/listinfo/python-list
I might get summer job in doing some 2nd tier support and doing
some scripting besides that in Solaris environment. I gotta see
what kind of scripts are needed but I'd guess the 2.6 would be the
safest option.
Timo
--
http://mail.python.org/mailman/listinfo/python-list
Not too keen on working with Solaris either. Did some small
configuration last time I worked there and it was all a mess. I'm
trying to convince them to switch to OpenBSD :)
Timo
--
http://mail.python.org/mailman/listinfo/python-list
via google groups. Maybe it's the reader which
> is 'non-compliant' ?
Other charsets than US-ASCII are widely accepted in non-english
newsgroups as long as the charset is properly declared.
Xah's posting was properly encoded and will display fine in every decent
newsreader.
Timo
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] schrieb:
> In comp.lang.perl.misc Timo Stamm <[EMAIL PROTECTED]> wrote:
>> Other charsets than US-ASCII are widely accepted in non-english
>> newsgroups as long as the charset is properly declared.
>
>> Xah's posting was properly encoded an
On Apr 1, 12:48 am, Abethebabe wrote:
> I wanted to know if there was a way I could get a Python program to
> run off of my flash drive as soon as the computer (Windows) detected
> the device?
>
> For example I could have a a simple program that would create a text
> document on the computers desk
I'm planning to create a human word program
A human inputs a string
"Give me the weather for London please."
Then I will strip the string.
"weather for london"
Then I get the useful information.
what:"weather" where:"london"
After that I use the info.
I need help with getting the useful informatio
On May 15, 1:02 pm, timo verbeek wrote:
Place starts always with for
--
http://mail.python.org/mailman/listinfo/python-list
What is the easiest way in python to create a addon system?
I found to easy ways:
* using a import system like this:
for striper in stripers:
if striper["enabled"]:
exec("from strip import %s as _x"%striper["striper"])
string = _x.start(string)
* using exec
Is there not an other way to create a fast addon system?
A module or something like that
--
http://mail.python.org/mailman/listinfo/python-list
what is the problem with this code?
_base={"repeat":False,"string":"Progres has failed","works":True}
print _base
class dictreturn(_base):pass
this error
Traceback (most recent call last):
File "", line 244, in run_nodebug
File "C:\Documents and Settings\Owner\Desktop\Python\assistent new
\us
55 matches
Mail list logo