e, this is useful as /one/ way to consider python variables.
As long as one is aware that this is just an example, one approach out
of many, then it enhances understanding. If one blindly extrapolates
from one implementation, it enhances misunderstanding.
--
:-- Hans Georg
--
http://mail.python.o
function.
Well, call-by-name is not the same as transmission by name either.
Transmission by name is what most posters here call call by
reference, and transmission by reference is what this thread calls
object sharing or call by object.
No wonder I started off confused :-) It is better now.
--
the better result, but
relying on human input when the work can be automated is ridiculously
expensive.
Now, python is only one level above C in abstraction, but that's a
different matter.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 04 May 2011 20:11:02 -0500, harrismh777
wrote:
: A reference is a pointer (an address).
:
: A value is memory (not an address).
Sure, and pointers (from a hardware or C perspective) are memory,
hence pointers are values.
--
:-- Hans Georg
--
http://mail.python.org/mailman
You cannot reference nor manipulate a
reference in python, and that IMHO makes them more abstract.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
ned by the languagedefined by the
language.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
7;t perfect, is that it creates the illusion
that references are boxes (objects) just like data objects, leading
the reader to think that we could have a reference to a reference.
If they are all boxes, by can't we make reference thereto?
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
text.
Analogies, even imperfect ones, are good when we are clear about the
fact that they are analogies. Using C pointers to illustrate how to
use bound names in python may be useful, but only if we are clear about
the fact that it is an analogy and do not pretend that it explains it in
full.
--
:-- Hans
and
the information could be passed through the return value instead.
Exceptions is a very flexible, but also rather expensive means of
communications. You can, actually, write any program using raise
instead of return. That would be overuse.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinf
don't
have universal meanings.
:-)
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
types (as in
haskell or ada)?
I think there are too many meanings and too few words ...
That's why some languages support overloading.
I am afraid we just need to cope with it, overloading I mean.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
st painful.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
alls may be circular or otherwise convolved
in a way that does not allow consistent sorting of caller before/after
callee.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
and
much more flexible. Just x is as generic as it gets, but depends
on python's convolved rules for duck processing and if you aim at
legibility it is better avoided.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
of an arbitrary object as a boolean
is peculiar for python. An empty list is a real, existing object, and
the supposition that [] be false is counter-intuitive. It can be
learnt, and the shorthand may be powerful when it is, but it will
confuse many readers.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
oping ideas in a large
and complex community, where perfect universal mastery of one language
is not an option, because half the community do not normally use that
language or aren't really programmers at all. The less you assume about
the skill of the reader, the better it is.
--
:-- Hans Geor
amming.
The audience I am concerned about is the ones who are over-educated
into using and having used a score of different meanings of the same
symbols. They will be used to their intuition being wrong when they
move into a new context. Being explicit will help them.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
reader and not the writer.
What could elif mean other than else: if?
if x could, for instance, mean "if x is defined".
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
needs to see your program is a python
programmer, then your approach works as well as mine.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
knows how the computation has to be done
without specialising in talking to the computer.
: This discussion is giving me some insight into some of the crap
: programming I see these days.
I wonder if you would do a better job at programming the software
to crack equations from quantum physics th
ing theory is reading this? I better dumb it down."
That depends on the purpose of that particular paper, but the real
question is, who writes the software to test that string theory
empirically? Please tell.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
ntial, one would simply not be able to keep up with
the application discipline.
If all you do is to write software for computer illiterate users, YMWV.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
ndeed, so why don't we exploit the revolution
and write the programs to be as accessible as possible?
(Although, python is not the most revolutionary in this respect.)
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 11 May 2011 10:31:59 -0600, Ian Kelly
wrote:
: (x + 3 for x in xs if x % 2 == 1)
Interesting. Thanks. That might come in handy some time.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
: I may not have made the point well, but I cannot see any advantage
: for trying to program for the lowest common denominator.
Common to what? I'd try the lowest common denominator of
legibility and effictiveness.
It is just KISS.
--
:-- Hans Georg
--
http://mail.python.org/mailma
tion or is expected to learn enough Python to understand it.
That's fair enough. You know your code, so it is probably true.
It would not be true for the code I am writing.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
t oriented programming is to bestow the
objects with properties reflecting known properties from the
domain being modelled. Lists do not have truth values in the
application domain, and therefore truth values in the
implementation domain is complicated.
--
:-- Hans Georg
--
http://mail.python.o
stitute functional/logical/whatever for imperative.
You would not be completely clueless moving to
ada/fortran/C/pascal/simula. There may be new concepts,
and some concepts which must be adapted to another level of
abstraction, but you do have a clue about the core concepts.
--
:-- Hans Georg
--
On 11 May 2011 21:47:27 GMT, Steven D'Aprano
wrote:
: On Wed, 11 May 2011 20:13:35 +0100, Hans Georg Schaathun wrote:
: > One principle of object oriented programming is to bestow the objects
: > with properties reflecting known properties from the domain being
: > modelled. Lis
On Wed, 11 May 2011 20:16:01 -0700 (PDT), alex23
wrote:
: Hans Georg Schaathun wrote:
: > Revolutionary indeed, so why don't we exploit the revolution
: > and write the programs to be as accessible as possible?
:
: Where do you draw the line, though?
I said that, "as poss
On Thu, 12 May 2011 17:44:07 +1200, Gregory Ewing
wrote:
: Roy Smith wrote:
: > Hans Georg Schaathun wrote:
: >>If both are numbers, they are converted to a common type. Otherwise,
: >>objects of different types always compare unequal
Actually, I did not.
:-- hg
--
http://
without programming skills, polyglot programmers etc.
Only very narrow-purpose applications can be created by one of
these groups on their own, and to collaborate their abilities
must be overlapping.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
eader when you
go down that route.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
typewriters and entertainment theatres does in no way reduce the
need of those who actually need /computers/.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 12 May 2011 16:46:38 +1000, Ben Finney
wrote:
: Hans Georg Schaathun writes:
:
: > On Wed, 11 May 2011 20:31:45 -0700 (PDT), alex23
: >wrote:
: > : On May 12, 7:24 am, harrismh777 wrote:
: > : > We need to move away from 'canned apps' to a new day whe
eeded.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
ing the top floor,
and still much less than the concrete engineer.
And the main difference here, is that the civil engineers have a much
better language to share information. The best programmers have is
the programmming language, and we ought to make that as good as
possible.
--
:-- Hans Georg
attack, it also reduces risk,
and thereby provides some level of security.
Obviously, if your threat sources are dedicated hackers or maybe MI5,
there is no point bothering with obfuscation, but if your threat source
is script kiddies, then it might be quite effective.
--
:-- Hans Georg
--
http://
w Mac OS X has maintained the folder concept of older mac generations,
and Windows has cloned it. They do not want the user to understand
recursive data structures, and therefore, naturally, avoid the word.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
times the
node is visited.
This node requires no stack. The only state space is constant,
regardless of the size of the tree, requiring just the two pointers
to previous and current.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 18 May 2011 09:54:30 -0700, geremy condra
wrote:
: On Wed, May 18, 2011 at 12:36 AM, Hans Georg Schaathun
wrote:
: > But then, nothing is secure in any absolute sense.
:
: If you're talking security and not philosophy, there is such a thing
: as a secure system. As a devel
ent pointers of some description;
but it does demonstrate that tree walks can be done iteratively,
without keeping a stack of any sort.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
call
stack, and not really a significant expense in context.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
aybe it is right to say that the theory and skills do exist, but the
money to gather it all in one project to demonstrate the security of
a single system does not :-)
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
ar operation, possibly. For other tree
: operations, a single parent pointer may not be sufficient.
Que? What tree operations do you have in mind? We have covered
all the standard textbook tree walks by now.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
ildren for each node, one way or another.
The only thing I am assuming is that the children can be inspected in
the same order every time the node is visited.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
saying that, but whenever you try to back the claim, you
keep referring to limited components and not systems at all.
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
out what it takes to do it, before spend the resources
barking up the wrong tree. For each successful attack, there probably
is a number of failed ones.
Thanks for the reference.
BTW. That's not the only attack on MIFARE. I cannot remember the
details of the other.
--
:-- Hans Georg
-
Obviously, if you were implying
that no system passes the lower levels, then of course they won't pass
the higher levels, but then, if that's the case, we would all know that
we cannot even design /seemingly/ secure systems. And nobody has
suggested that so far.
¹ e.g. Dieter Gollmann
methods do not help on that step. It takes
more than a non-idiot to avoid misunderstandings on the interface
betweeen professions.
Either way, the assumption that your system will not be handled by
idiots is only reasonable if you yourself is the only user.
--
:-- Hans Georg
--
http
On Thu, 19 May 2011 23:21:30 +0200, Rikishi42
wrote:
: On 2011-05-18, Hans Georg Schaathun wrote:
: > Now Mac OS X has maintained the folder concept of older mac generations,
: > and Windows has cloned it. They do not want the user to understand
: > recursive data structures, and
timates the
: intelligence of lay people and over-estimates the difficulty of
: understanding recursion.
Could we then say that «recursion is a technical word that should
not /unnecessarily/ be foisted onto lay users»?
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
On 20 May 2011 07:04:27 GMT, Steven D'Aprano
wrote:
: On Fri, 20 May 2011 05:48:50 +0100, Hans Georg Schaathun wrote:
:
: > Either way, the assumption that your system will not be handled by
: > idiots is only reasonable if you yourself is the only user.
:
: Nonsense. How do y
For those of you, who like PyQt{4,5} as much as I do, as well as for those who
don't like it that much, because of the poor integration with setuptools
et.al., here's another piece of software to bridge the gap:
A distutils build extension for PyQt{4,5} applications
that makes handling
Hi,
I'm using $subjects combination successfully in a project for
creating/iterating over huge binary files (> 5GB) with impressive performance,
while resource usage keeps pretty low, all with plain Python3 code. Nice!
Environment: (Python 3.4.5, Linux 4.8.14, openSUSE/x86_64, NFS4 and XFS
fil
Dear Peter,
thanks for taking valuable time to look into my issue.
It might be related to my distinct silliness, but the problem persists with
your code as well. Further comments inlined.
On Dienstag, 27. Dezember 2016 21:39:51 Peter Otten wrote:
> Hans-Peter Jansen wrote:
> >
&g
On Mittwoch, 28. Dezember 2016 13:48:48 Peter Otten wrote:
> Hans-Peter Jansen wrote:
> > Dear Peter,
> >
> > thanks for taking valuable time to look into my issue.
>
> You're welcome!
>
> > It might be related to my distinct silliness, but the pr
On Mittwoch, 28. Dezember 2016 15:17:22 Hans-Peter Jansen wrote:
> On Mittwoch, 28. Dezember 2016 13:48:48 Peter Otten wrote:
> > Hans-Peter Jansen wrote:
> > > Dear Peter,
> > >
> > > thanks for taking valuable time to look into my issue.
> >
> >
On Mittwoch, 28. Dezember 2016 21:58:38 Peter Otten wrote:
> Hans-Peter Jansen wrote:
> > On Mittwoch, 28. Dezember 2016 13:48:48 Peter Otten wrote:
> >> Hans-Peter Jansen wrote:
> > It leaves the question on why is Python2 acting as one would expect
> > related to
On Mittwoch, 28. Dezember 2016 16:53:53 Hans-Peter Jansen wrote:
> On Mittwoch, 28. Dezember 2016 15:17:22 Hans-Peter Jansen wrote:
> > On Mittwoch, 28. Dezember 2016 13:48:48 Peter Otten wrote:
> > > Hans-Peter Jansen wrote:
> > > > Dear Peter,
> > > >
On Donnerstag, 29. Dezember 2016 09:33:59 Peter Otten wrote:
> Hans-Peter Jansen wrote:
> > On Mittwoch, 28. Dezember 2016 16:53:53 Hans-Peter Jansen wrote:
>
> The minimal example is
>
> >>> import weakref, ctypes
> >>> T = ctypes.c_ubyte * 3
> >
Dear Eryk,
thanks for chiming in.
On Donnerstag, 29. Dezember 2016 21:27:56 eryk sun wrote:
> On Thu, Dec 29, 2016 at 12:18 PM, Hans-Peter Jansen wrote:
> >> >>> import weakref, ctypes
> >> >>> T = ctypes.c_ubyte * 3
> >> >>&g
On Montag, 2. Januar 2017 03:38:53 Antonio Caminero Garcia wrote:
> Hello, I am having a hard time deciding what IDE or IDE-like code editor
> should I use. This can be overwhelming.
>
> So far, I have used Vim, Sublime, Atom, Eclipse with PyDev, Pycharm,
> IntelliJ with Python plugin.
Well, sinc
On Montag, 2. Januar 2017 03:38:53 Antonio Caminero Garcia wrote:
> Hello, I am having a hard time deciding what IDE or IDE-like code editor
> should I use. This can be overwhelming.
>
> So far, I have used Vim, Sublime, Atom, Eclipse with PyDev, Pycharm,
> IntelliJ with Python plugin.
Well, since
On Samstag, 7. Januar 2017 19:07:55 Clint Moyer wrote:
> I would lightly advise against, assuming both Pip and your package
> manager are trying to accomplish nearly the same thing. Stick with
> updating through the repo.
>
> If you find that the version your OS provides is out-of-date compared
>
Hi,
I would like to use a interpolated section name, e.g.:
[Section]
secref: %{section}s/whatever
should result in:
>>> config['Section']['secref']
'Section/whatever'
Any idea anybody, how to archive this with minimum fuzz?
Thanks,
Pete
--
https://mail.python.org/mailman/listinfo/python-list
On Mittwoch, 25. Januar 2017 10:01:56 Peter Otten wrote:
> Hans-Peter Jansen wrote:
> > I would like to use a interpolated section name, e.g.:
> >
> > [Section]
> > secref: %{section}s/whatever
> >
> > should result in:
> >>>> config['S
On Mittwoch, 1. Februar 2017 21:54:06 Giampaolo Rodola' wrote:
> Hello all,
> I'm glad to announce the release of psutil 5.1.1:
^
Guess, you meant to say 5.1.0 here, or probably your time machine broke ;)
Cheers,
Pete
--
https://mail.python.org/ma
Hi Paul,
you have a version mismatch in subject and text.
Cheers,
Pete
On Mittwoch, 18. Juli 2018 05:19:27 Paul Kehrer wrote:
> PyCA cryptography 2.2.2 has been released to PyPI. cryptography includes
> both high level recipes and low level interfaces to common cryptographic
> algorithms such as
p):
self.this = _umddevice.new_UMDMResult(tup[0],tup[1],tup[2],tup[3])
self.thisown=1
(self.Z0,self.Eta0,self.t)=[i for i in tup[4:]]
%}
}
regards
Hans Georg Krauthaeuser
--
http://mail.python.org/mailman/listinfo/python-list
eburg, Germany).
If someone is interested: contact me by email, please.
Best regards
Hans Georg Krauthaeuser
--
http://mail.python.org/mailman/listinfo/python-list
malv schrieb:
> Hans Georg Krauthaeuser wrote:
>
>>Dear all,
>>
>>for the measurements in our labs we have developed python scripts that
>>are pretty fine for our needs. Basically, we have classes and call the
>>appropriate methods from the command line (or by
b')
> data1 = cPickle.load(input2)
> input2.close()
>
> My guess is that I need to somehow tell the pickle.load command that it
> is loading datetime instances, but I have no idea how to do this. Any
> help would be much appreciated.
>
> Thanks,
> Ming
How
the title of your mail I would answer
http://rgruet.free.fr/PQR24/PQR2.4.html
But history? Sorry
Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
found this http://my.execpc.com/~geezer/software/kbhit.c C
source that has a kbhit() and a getch() for linux/unix that I can SWIG
to python.
Are there other (more simple, pure python, true platform independent)
possibilities?
Best regards
Hans Georg Krauthaeuser
--
www.uni-magdeburg.de/krauthae
--
Hi Pythonistas,
I need to convert ascii escapes into binary form, e.g.:
\f -> ^L
[EMAIL PROTECTED] -> [EMAIL PROTECTED]@
(rvalues in terminal representation)
Any idea, how to do this most elegantly in python?
Do I really need to do a search n'replace orgy, combined with
regex for this task?
TI
Robert Kern wrote:
> Hans-Peter Jansen wrote:
>> Hi Pythonistas,
>>
>> I need to convert ascii escapes into binary form, e.g.:
>> \f -> ^L
>> [EMAIL PROTECTED] -> [EMAIL PROTECTED]@
>>
>> (rvalues in terminal representation)
>>
>
Hi Robert,
Hans-Peter Jansen wrote:
> Robert Kern wrote:
>
> That did the trick, thanks a lot, Peter. Unfortunately, on the
s/Peter/Robert/g
Sorry, Robert. That's the price to pay for doing multiple replies at
the same time. Mea culpa..
> target system, there's st
ges\pyTTS\__init__.py", line
28, in Create
raise ValueError('"%s" not supported' % api)
ValueError: "SAPI" not supported
...
The TTSFast.py file is missing in the 2.3 distribution. I made a copy
from the 2.4 dist and everything worked fine for me.
Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
Peter wrote:
I released a new version of the Windows installer for Python 2.3 that
includes the missing _TTSFast.pyd file.
Unfortunenately, the file TTSFast.py is missing, not _TTSFast.pyd.
Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I've narrowed down my toolkit selection for my project to wxPython and
> pyQt, and now i'd like to hear any opinions, war stories, peeves, etc,
> about them, particularly from anyone who's used _both_toolkits_. I'm
> only mildly interested in the IDEs and UI designers fo
The Fate Of LAMBDA in PLT Scheme v300
or
Lambda the Ultimate Design Flaw
Why drop LAMBDA?
Why not? Isn't all code eventually anonymous and relocatable?
--
http://mail.python.org/mailman/listinfo/python-list
ed manually). From
Tkinter, passing a PhotoImage as a parameter actually only sends the
str() of the image object to the Tcl side: this is just a string, the
randomly-generated name assigned when the object was created. "No
reference to the image itself" means "no reference counti
Hi,
I'm experiencing strange behavior with attached code, that differs depending
on sys.setdefaultencoding being set or not. If it is set, the code works as
expected, if not - what should be the usual case - the code fails with some
non-sensible traceback.
I tried to boil it down to a comprehe
Hi Chris,
On Mittwoch, 4. Dezember 2013 10:20:31 Chris Angelico wrote:
> On Wed, Dec 4, 2013 at 9:32 AM, Hans-Peter Jansen wrote:
> > I'm experiencing strange behavior with attached code, that differs
> > depending on sys.setdefaultencoding being set or not. If it is set, t
array and check that the colour
channels are equal.
I'll be grateful for any pointers,
TIA
--
:-- Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
...:
254 254
255 255
256 0
257 1
258 2
Is there any possibility to avoid the overflow?
BTW:
Python 2.3.5 (#2, Aug 30 2005, 15:50:26)
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2
scipy_version.scipy_version --> '0.3.2'
Thanks and best regards
Hans Georg Krauthäuser
Hans Georg Krauthaeuser schrieb:
> Hi All,
>
> I was playing with scipy.stats.itemfreq when I observed the following
> overflow:
>
> In [119]:for i in [254,255,256,257,258]:
>.:l=[0]*i
>.:print i, stats.itemfreq(l), l.count(0)
>.:
&
Hans Georg Krauthaeuser schrieb:
> Hans Georg Krauthaeuser schrieb:
>
>> Hi All,
>>
>> I was playing with scipy.stats.itemfreq when I observed the following
>> overflow:
>>
>> In [119]:for i in [254,255,256,257,258]:
>>.:l=[0]*i
>&
m the 80s.
http://www.uni-weimar.de/~mildenbe/spass/vatical/vatical.html
It's in German only and I'm not aware of a English translation.
Please be aware that content of that page is not political correct and
may offend your religious sensibilities.
Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
On 23. of October last year a the follwing was posted to this group:
> htmlSource=urllib.urlopen("http://www.godandscience.org/images/nebula.jpg";)
> # Read from the object, storing the page's contents in 's'.
> s = htmlSource.read()
> htmlSource.close()
> myfile = open("myfile.jpg", "w")
> myfile
[EMAIL PROTECTED] wrote:
>
> Can objects be saved and reloaded by "Pickle" ? I have tried but no
> success.
>
Yes, that's the intended use of pickle/cPickle. There are examples in
the docs:
http://docs.python.org/lib/module-pickle.html
What have you tried and wh
[EMAIL PROTECTED] wrote:
> Hans Georg Krauthaeuser wrote:
>> [EMAIL PROTECTED] wrote:
>>
>>> Can objects be saved and reloaded by "Pickle" ? I have tried but no
>>> success.
>>>
>>>
>> Yes, that's the inten
x27;os': 'linux-gnu', 'svn
rev': '36812', 'system': 'i486, linux-gnu', 'month': '12', 'platform':
'i486-pc-linux-gnu', 'year': '2005', 'arch': 'i486', 'day': '20',
'minor': '2.1'}
Seems to be a problem with your installation...
Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
Hi Pythonistas,
I'm stuck in a maze of new style classes and generators. While I love the
concepts, I obviously didn't grok them throughout.
I'm trying to generate a bunch of similar classes, where some are contained
in list attributes of others, e.g.:
class A:
def __init__(self):
self.i
Hi Diez,
first, thanks for your comprehensive answer.
Diez B. Roggisch wrote:
> Hans-Peter Jansen schrieb:
>>
>> I'm trying to generate a bunch of similar classes, where some are
>> contained in list attributes of others, e.g.:
>
> All your code below shows th
Marc 'BlackJack' Rintsch wrote:
> In <[EMAIL PROTECTED]>, Hans-Peter Jansen wrote:
>
>> class Gen(object):
>> def records(self, cls):
>> for i in range(3):
>> setattr(cls, "id", "%s%s" % (cls.__d
Im Tierfutter sind 41 wichtige Nährstoffe...
In der Babynahrung sind nur 11 der wichtigen Nährstoffe...
Unsere Nahrung im Supermarkt enthält noch weniger lebenswichtige Mineralien und Vitamine...
Erfahren Sie kostenlos die schockierende Wahrheit in Das Geheimniss der 91 essentiellen Nährstoffe
n [9]:del d2
In [10]:pfile=file('test.p','rb')
In [11]:d1=pickle.load(pfile)
In [12]:d1
Out[12]:{'a': 1}
In [13]:d2=pickle.load(pfile)
In [14]:d2
Out[14]:{'b': 2}
If your data is *really* large, have a look to PyTables
(http://www.pytables.org/moin).
Regards,
Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
else:
break
finally:
del frame
del outerframes
del caller
del ccframe
return cmd, sdict
if __name__ == '__main__':
c=CLS()
c.fun(5)
c.fun(5, arg_three=['a', 'b'])
c.fun(5, 'something')
c.fun(5,
'something')
a=c.fun
a(4)
Best Regards
Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
401 - 500 of 541 matches
Mail list logo