New submission from Ryan Kelly r...@rfk.id.au:
PyLong_FromString will raise a ValueError if the given string doesn't contain a
null byte after the digits. For example, this will result in a ValueError
char *pend;
PyLong_FromString(1234 extra, pend, 10)
While this will successfully read
this hides the intention of the code and would require additional
documentation or comments:
obj = MyBaseClass() # note: actually returns a subclass!
Just a thought :-)
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au
Changes by Ryan Kelly r...@rfk.id.au:
--
nosy: +rfk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11682
___
___
Python-bugs-list mailing list
Changes by Ryan Kelly r...@rfk.id.au:
--
nosy: +rfk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
___
Python-bugs-list mailing list
/
Internet: GitHub http://github.com/
Thanks also to Linux Australia, who provide the overarching legal and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed
/
Internet: GitHub http://github.com/
Thanks also to Linux Australia, who provide the overarching legal and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed
the stdlib
module, not import hooks the general concept as defined in PEP302.
The former pre-dates the later.
I use custom PEP302 loaders all the time and they work fine in at least
2.6, 2.7 and 3.2.
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r
A huge hit at PyCon-Au last year, Code War is back!
Eight teams, onstage knockout rounds of short programming bouts, loud
crowd...mildly impressive prizes. Any language allowed, no holds
bared. Think of it like cage fighting for coders.
Originally based on an idea from the book PeopleWare,
/
Silver: Bitbucket by Atlassianhttp://bitbucket.org/
Silver: Microsoft http://www.microsoft.com/
Thanks also to Linux Australia, who provide the overarching legal and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
http
/
Silver: Bitbucket by Atlassianhttp://bitbucket.org/
Silver: Microsoft http://www.microsoft.com/
Thanks also to Linux Australia, who provide the overarching legal and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
http
and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
http://mail.python.org/mailman/listinfo/python-list
. (There may even be the start of one in
the bugtracker somewhere, I don't recall...)
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description
Development (Malcolm Tredinnick)
Benchmarking stuff made ridiculously easy (Tennessee Leeuwenburg)
Bytecode: What, Why, and How to Hack it (Ryan Kelly)
Developing Scientific Software in Python (Duncan Gray)
Fun with App Engine 1.5.0 (Greg Darke)
Hosting Python Web Applications
New submission from Ryan Kelly r...@rfk.id.au:
According to the docs here:
http://docs.python.org/c-api/gcsupport.html
Any object that uses PyObject_GC_Track in its constructor must call
PyObject_GC_UnTrack in its deallocator. The CThunkObject in _ctypes does the
former but not the later
://www.wingware.com/
Silver: Superior Recruitment http://superiorrecruitment.com.au/
Thanks also to Linux Australia, who provide the overarching legal and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
http://mail.python.org/mailman/listinfo
://www.wingware.com/
Silver: Superior Recruitment http://superiorrecruitment.com.au/
Thanks also to Linux Australia, who provide the overarching legal and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
http://mail.python.org/mailman/listinfo
of other
sources.
Even if you only ever intend to access local files, I find the API
provided by PyFilesystem much nicer than using the various modules from
the stdlib.
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au
:
Standard Talks:
A Python on the Couch (Mark Rees)
Behaviour Driven Development (Malcolm Tredinnick)
Benchmarking stuff made ridiculously easy (Tennessee Leeuwenburg)
Bytecode: What, Why, and How to Hack it (Ryan Kelly)
Developing Scientific Software in Python (Duncan Gray
:
Standard Talks:
A Python on the Couch (Mark Rees)
Behaviour Driven Development (Malcolm Tredinnick)
Benchmarking stuff made ridiculously easy (Tennessee Leeuwenburg)
Bytecode: What, Why, and How to Hack it (Ryan Kelly)
Developing Scientific Software in Python (Duncan Gray
this, of course...
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
--
http://mail.python.org/mailman/listinfo
about likely to work but if it doesn't, I'd
like to hear about it so I can fix it :-)
`pip install threading2`
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
also to Linux Australia, who provide the overarching legal and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
http://mail.python.org/mailman/listinfo/python-list
of
functionality. Was this ever true, and is it still?
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
, who provide the overarching legal and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
, who provide the overarching legal and
organisational structure for PyCon Australia.
Ryan Kelly
PyCon Australia 2011
--
http://mail.python.org/mailman/listinfo/python-list
= [parse_kwdlist(dct[k]) for k in sorted(dct.keys())
if k.startswith(Keyword)]
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
On Fri, 2011-04-15 at 12:34 +1000, Ryan Kelly wrote:
On Fri, 2011-04-15 at 12:10 +1000, Chris Angelico wrote:
My first draft looks something like this. The input dictionary is
called dct, the output list is lst.
lst=[]
for i in xrange(1,1000): # arbitrary top, don't like
however like all my great brain children this one
has been cast aside like a red headed stepchild.
I can only imagine the hi-jinx that ensure at your yearly great brain
family reunion.
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au
On Thu, 2011-04-14 at 11:46 +1000, Chris Angelico wrote:
On Thu, Apr 14, 2011 at 11:29 AM, Ryan Kelly r...@rfk.id.au wrote:
I weep that your delightful rhetoric is limited to this neglected forum,
where the guardians of python core deign not to tread, and hence denied
its rightful place
On Wed, 2011-04-13 at 19:10 -0700, rantingrick wrote:
On Apr 13, 8:29 pm, Ryan Kelly r...@rfk.id.au wrote:
On Wed, 2011-04-13 at 17:39 -0700, rantingrick wrote:
I would LOVE to improve the doc, however first the student THEN the
teacher. However in this forsaken land the teachers do
On Thu, 2011-04-14 at 03:12 +, Steven D'Aprano wrote:
On Thu, 14 Apr 2011 12:03:15 +1000, Ryan Kelly wrote:
On Thu, 2011-04-14 at 11:46 +1000, Chris Angelico wrote:
On Thu, Apr 14, 2011 at 11:29 AM, Ryan Kelly r...@rfk.id.au wrote:
I weep that your delightful rhetoric is limited
Changes by Ryan Kelly r...@rfk.id.au:
--
nosy: +rfk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10399
___
___
Python-bugs-list mailing list
New submission from Ryan Kelly r...@rfk.id.au:
The docs for HTTPConnection.set_tunnel(host,port) are ambiguous. They simply
say Set the host and the port for HTTP Connect Tunnelling. But should I
specify the address of the server *through* which I want to tunnel, or the
address
Ryan Kelly r...@rfk.id.au added the comment:
Sorry, endpoint is just a noun that seemed to fit for me, I've no idea if
there is a standard term for this. Perhaps origin server if you follow the
terminology from the RFC?
By way of example, suppose I'm running a proxy on localhost:3128 and I
Ryan Kelly r...@rfk.id.au added the comment:
Thanks for the help, I have tracked this down to a bug in PyCrypto. It was
increfing an object once but decrefing it twice.
Sorry for the noise.
--
___
Python tracker rep...@bugs.python.org
http
Ryan Kelly r...@rfk.id.au added the comment:
Not sure if it's caused by the same thing, but I just got a segfault on the
same line in my own program. Running python 2.7.1.
I will try to dig out some more useful info but it's been a long time since I
chased a segfault...
--
nosy
Ryan Kelly r...@rfk.id.au added the comment:
Please remind me how to obtain an appropriate coredump (as I said, it's been a
*long* time...)
Doing print bp shows an out-of-bounds address as for the original submitter.
--
___
Python tracker rep
Ryan Kelly r...@rfk.id.au added the comment:
attaching core dump from a freshly-compiled python 2.7.1 at with -O0 -g in
CFLAGS.
The code that is segfaulting is using pycrypto and sqlite3, so it may be that a
bug in one of these is trampling on something. No idea how to investigate any
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 2011-02-24 at 20:13 +1100, Ryan Kelly wrote:
On Thu, 2011-02-24 at 10:48 +0200, Frank Millman wrote:
Hi all
I know that the use of 'eval' is discouraged because of the dangers of
executing untrusted code.
Here is a variation that seems safe to me, but I could be missing
. You don't need any further justification for
preferring the latter.
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description
shows that in Python 3, while 1 and while
True are indeed identical.
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description
= range(1000)
try:
while True:
alist.pop()
except IndexError:
pass
I get the following times for a thousand iterations (not waiting around
for a million!)
Testing Try
0.224129915237
Testing If
0.300312995911
Cheers,
Ryan
--
Ryan
zero at the moment...
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
--
http://mail.python.org/mailman
Ryan Kelly r...@rfk.id.au added the comment:
I went looking for places to update the documentation but the description of
SpooledTemporaryFile doesn't go into any detail of its methods, so I haven't
added anything. New patch fixes some whitespace issues.
I'd like to argue that this is a bug
Changes by Ryan Kelly r...@rfk.id.au:
Removed file:
http://bugs.python.org/file19027/spooledtemporaryfile_truncate.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9957
New submission from Ryan Kelly r...@rfk.id.au:
Both file.truncate() and StringIO.truncate() accept an optional size
parameter to truncate the file to a specific size. SpooledTemporaryFile should
accept a similar parameter and pass it on.
The only tricky part is that truncate can potentially
['a'].fget.func_closure[0].cell_contents['a'] = 7
c.a
7
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description
On Thu, 2010-09-02 at 12:06 +1000, Ryan Kelly wrote:
On Thu, 2010-09-02 at 11:10 +1000, Rasjid Wilcox wrote:
Hi all,
I am aware the private variables are generally done via convention
(leading underscore), but I came across a technique in Douglas
Crockford's book Javascript: The Good
loading logic for win32, to ensure that we don't
accidentally load older versions of e.g. glib that may be on
the DLL search path.
* Added function get_enchant_version() to retreive the version
string for the underlying enchant library.
--
Ryan Kelly
http://www.rfk.id.au
in general
- it's just one of those things that you have to deal with. But show
me a language where floats don't have this problem.
And we wonder why kids don't want to learn to program.
Yeah, obscure language warts, that must be the reason.
Note to self: DNFTT...
Ryan
--
Ryan Kelly
also does this, which suggests
that it's considered more secure. No idea why, but I trust the authors
of SSH to know their stuff in this regard.
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au
)
...etc...
...etc...
There are many improvements to make, but this should get you started.
For example, you'll need to calculate the total content-length rather
than just calling len(body) to obtain it. That's left as an exercise to
the reader.
Ryan
--
Ryan Kelly
http
New submission from Ryan Kelly r...@rfk.id.au:
zipimporter methods is_package, get_code and get_source have in the their
docstring Raise ZipImportError is the module couldn't be found.
The attached patch fixes the typo to if the module couldn't be found.
--
files
New submission from Ryan Kelly r...@rfk.id.au:
The zipfile module is prominently documented as This module does not currently
handle...ZIP files which have appended comments. But as far as I can tell, it
handles them fine - there's even a comment property on the ZipFile object
that you can
New submission from Ryan Kelly r...@rfk.id.au:
If you open a ZipFile in append mode and modify the comment to be shorter than
what was originally there, the file will become corrupted. Truncated data from
the original comment is left dangling at the end of the zipfile.
A much more trivial
Ryan Kelly r...@rfk.id.au added the comment:
I can't imagine anyone depending on this lack-of-feature, but there's no
arguing with the technicality of it. One more small incentive to make the jump
to Python 3 then.
Anyway, I've revisited the patch to clean up the logic and control flow
Changes by Ryan Kelly r...@rfk.id.au:
Removed file: http://bugs.python.org/file17944/zipimport_with_comments.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5950
Changes by Ryan Kelly r...@rfk.id.au:
--
nosy: +rfk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5950
___
___
Python-bugs-list mailing list
Ryan Kelly r...@rfk.id.au added the comment:
Attached is my attempt at a patch for this functionality, along with some
simple tests. This basically mirrors what's done in zipfile.py, searching
backwards through the file until it finds the end-of-central-directory marker.
It tries
Ryan Kelly r...@rfk.id.au added the comment:
Whoops, forgot to remove the line from the docs about comments not being
supported. Updated the patch accordingly.
--
Added file: http://bugs.python.org/file17944/zipimport_with_comments.patch
___
Python
Changes by Ryan Kelly r...@rfk.id.au:
Removed file: http://bugs.python.org/file17943/zipimport_with_comments.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5950
Ryan Kelly r...@rfk.id.au added the comment:
Was also just bitten by this, trying to muck with PEP-302-style import hooks.
Note that the documented behaviour of zipimporter is also the behaviour
required by PEP 302, i.e. full dotted module name.
--
nosy: +rfk
.
I've tried my hand at implementing the condition/handler/restart
paradigm of common lisp, which is very similar to what you describe.
You might find it useful:
http://pypi.python.org/pypi/withrestart/
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally
and being used; the other will be
discarded and garbage-collected.
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally
reading this should even consider using that
PretendLock class for anything. It's just an example of how to use
setdefault as a test-and-set kind of operator.
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au
= ctypes.c_int.in_dll(ctypes.pythonapi,_Py_Ticker)
ticker.value = 0x7fff
Or does ctypes muck with the GIL in a way that would break this idea?
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg
away with it for purely internal code (heck, even the
standard library uses sys._getframe on occasion!) but I would hesitate
to have a public-facing API that snaffles locals from any function that
happens to call it.
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message
.
* more robust support for the various bundle_files options.
Downloads: http://pypi.python.org/pypi/esky/0.7.0/
Code, bugs, etc: http://github.com/rfk/esky/
Tutorial: http://github.com/rfk/esky/tree/master/tutorial/
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed
the with statement in
javascript (I assume it's similar to Visual Foxpro).
But don't use this in any real code. Seriously, don't even think about
it. You don't want to know the kind of abuses that go on under the
covers to make this kind of syntax hacking work...
Cheers,
Ryan
--
Ryan Kelly
,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
--
http://mail.python.org/mailman/listinfo/python-list
besides possibly throwing an exception (e.g. if the
script didn't have write access to the current directory).
Actually, it will create the file if it doesn't exist, and truncate it
to zero length if it does.
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed
: http://github.com/rfk/esky/
Tutorial: http://github.com/rfk/esky/tree/master/tutorial/
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
--
http://mail.python.org/mailman/listinfo
confident
that I won't have time to do one up anytime soon :-)
Good luck with your project!
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description
'2.4.1'
sqlite3.sqlite_version
'3.6.16'
So this is pysqlite version 2.4.1, which wraps sqlite version 3.6.16.
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
out :-)
When debugging strange transaction behaviour, I find it easiest to
create the connection with isolation_level=None so that are no implicit
transactions being created behind your back. Not sure why, but setting
this makes your example work for me.
Ryan
--
Ryan Kelly
http
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
--
http://mail.python.org/mailman/listinfo/python-list
in Thread2. You'll see that the
delete is immediately committed and the rows cannot be read back by
Thread1. (modified version attached for convenience).
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http
)
Downloads: http://pypi.python.org/pypi/esky/0.4.0/
Code, bugs, etc: http://github.com/rfk/esky/
Tutorial: http://github.com/rfk/esky/tree/master/tutorial/
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings
On Wed, 2010-02-24 at 15:05 -0800, Aahz wrote:
In article mailman.2807.1266614926.28905.python-l...@python.org,
Ryan Kelly r...@rfk.id.au wrote:
Yes. The idea of having a bootstrapping exe is that actual
application code can be swapped out without having to overwrite the
executable file
://github.com/rfk/esky/
Tutorial: http://github.com/rfk/esky/tree/master/tutorial/
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed
on a dual-core linux system:
http://www.rfk.id.au/blog/entry/a-gil-adventure-threading2
Short story: a particular test suite of mine used to run in around 25
seconds, but a bit of ctypes magic to set thread affinity dropped the
running time to under 13 seconds.
Cheers,
Ryan
--
Ryan Kelly
.
--
Ran 1 test in 3.792s
Again, best of five. The variability in times here is much lower - I
never saw it go above 4 seconds. CPU usage is consistently 100%.
Cheers,
Ryan
--
Ryan Kelly
http
,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 2010-02-18 at 20:32 -0800, CM wrote:
On Feb 18, 7:19 pm, Ryan Kelly r...@rfk.id.au wrote:
On Thu, 2010-02-18 at 07:46 -0800, T wrote:
I have a Python app which I converted to an EXE (all files separate;
single EXE didn't work properly) via py2exe - I plan on distributing
On Fri, 2010-02-19 at 11:08 -0800, T wrote:
On Feb 18, 7:19 pm, Ryan Kelly r...@rfk.id.au wrote:
On Thu, 2010-02-18 at 07:46 -0800, T wrote:
I have a Python app which I converted to an EXE (all files separate;
single EXE didn't work properly) via py2exe - I plan on distributing
at the moment, the next release will hopefully
come with a short tutorial (as well as support for cx_freeze and maybe
py2app, depending on how adventurous I'm feeling).
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au
curious now - what little sprinkle of magic
fairy dust has earned JavaScript objects the Xah Lee seal of approval
while Python objects miss out?
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg
):
File C:\Python26\Classes_and_OOP_Programing.py, line 145, in
module
test()
NameError: name 'test' is not defined
Based on the indentation, it looks like you've defined test as a
method on the SpecialFile class. Try dedenting it to begin in the first
column.
Ryan
--
Ryan Kelly
Not having to pass status flags or callback functions through every
layer of your API to properly recover from errors:
tryexcept:impossible :-(
withrestart: priceless :-)
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description: This is a digitally signed message part
--
http://mail.python.org/mailman/listinfo/python-list
))
...
33
By splitting the responsibility for error recovery between Handlers and
Restarts, we can cleanly separate the low-level mechanics of recovering
from an error from the high-level decisions about what sort of recovery
to perform.
--
Ryan Kelly
http://www.rfk.id.au | This message
on in the end?
I'm curious it see if esky could easily switch between different
freezers (although it currently depends on some rather deep details of
the bbfreeze format).
Cheers,
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au
into distribution mechanisms, and I passed over
bbfreeze because I saw no indication that Python 2.6 was supported.
Not sure if it's officially supported, but I do most of my development
on Python 2.6 and bbfreeze hasn't given me any problems as yet.
Cheers,
Ryan
--
Ryan Kelly
http
-ordered sequence of
atomic renames on POSIX, using MoveFileTransacted on Windows Vista or
later, and using the rename-and-pray method on older versions of
Windows. Failed or partial updates are detected and cleaned up
automatically.
Enjoy!
Ryan
--
Ryan Kelly
http://www.rfk.id.au
- although I haven't tried it out, the latest version of
bbfreeze claims to support OSX.
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au| http://www.rfk.id.au/ramblings/gpg/ for details
signature.asc
Description
experiences with it.
The current version is a little on the slow side, but I believe there's
a big new release just around the corner that contains significant
performance improvements.
Ryan
--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
r...@rfk.id.au
this. It's
slightly clearer to use 'if e.errno == errno.ENOENT' in my opinion,
but, whatever.
In some cases it's also more correct. While ENOENT is always 2, some
error codes differ between windows and posix. In general it's better to
use the constants from the errno module.
Ryan
--
Ryan
New submission from Ryan Kelly r...@rfk.id.au:
The win32 implementation of os.listdir() releases the GIL around calls
to FindNextFile, but not around calls to FindFirstFile. Attached is a
simple patch to consistently release the GIL around any such calls.
--
components: None
files
1 - 100 of 116 matches
Mail list logo