Hi,
A new version of the Karrigell web framework for Python 3.2+ has just
been released on http://code.google.com/p/karrigell/
One of the oldest Python web frameworks (the first version was
released back in 2002), it now has 2 main versions, one for Python 2
and another one for Python 3. The
Hello I have recently started work on a new project called pickleDB. It is
a lightweight key-value database engine (inspired by redis).
Check it out at http://packages.python.org/pickleDB
--
Harrison Erd
--
http://mail.python.org/mailman/listinfo/python-list
Hi guys,
Here is the sample code
http://stackoverflow.com/questions/6389841/efficiently-find-binary-strings-with-low-hamming-distance-in-large-set/6390606#6390606
static inline int distance(unsigned x, unsigned y)
{
return __builtin_popcount(x^y);
}
Is it possible to rewrite the above gcc
Am 31.10.2011 04:13, schrieb est:
Is it possible to rewrite the above gcc code in python using ctypes
(preferably Win/*nix compatible)?
No; the (gcc-injected) functions starting with __builtin_* are not
real functions in the sense that they can be called by calling into a
library, but rather
patx wrote:
Hello I have recently started work on a new project called pickleDB. It is
a lightweight key-value database engine (inspired by redis).
Check it out at http://packages.python.org/pickleDB
import json as pickle # ;)
def load(location):
global db
try:
db =
hi
http://www.tkdocs.com/tutorial/index.html
remember that you have to import line
from tkinter import ttk
(at from tkinter import * ttk in not included)
--
http://mail.python.org/mailman/listinfo/python-list
hi
http://www.tkdocs.com/tutorial/index.html
remember that you have to import like
from tkinter import ttk
(at from tkinter import * ttk in not included)
--
http://mail.python.org/mailman/listinfo/python-list
hi
http://www.tkdocs.com/tutorial/index.html
remember that you have to import like
from tkinter import ttk
(at from tkinter import * ttk in not included)
--
http://mail.python.org/mailman/listinfo/python-list
hi
http://www.tkdocs.com/tutorial/index.html
remember that you have to import like
from tkinter import ttk
(at from tkinter import * ttk in not included)
--
http://mail.python.org/mailman/listinfo/python-list
hi
http://www.tkdocs.com/tutorial/index.html
remember that you have to import like
from tkinter import ttk
(at from tkinter import * ttk in not included)
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for all of the responses; everyone was exactly correct, and
obeying the binding rules for special methods did work in the example
above. Unfortunately, I only have read-only access to the class
itself (it was a VTK class wrapped with SWIG), so I had to find
another way to accomplish what
Suppose that I have a project which (should be)/is multiplatform in python,
which, however, uses some executables as black-boxes.
These executables are platform-dependent and at the moment they're just
thrown inside the same egg, and using pkg_resources to get the path.
I would like to rewrite
On 10/31/11 12:37 AM, Ric@rdo wrote:
What would be an equivalent widget in ttk like a Listbox and if
possible a small example? I tried to look here
http://docs.python.org/library/ttk.html but did not see anything.
Maybe I did not look in the right place?
tia
The listbox isn't part of the
On 10/31/2011 02:00 PM, Andrea Crotti wrote:
Suppose that I have a project which (should be)/is multiplatform in
python,
which, however, uses some executables as black-boxes.
These executables are platform-dependent and at the moment they're just
thrown inside the same egg, and using
Hi,
A new version of the Karrigell web framework for Python 3.2+ has just
been released on http://code.google.com/p/karrigell/
One of the oldest Python web frameworks around (the first version was
released back in 2002), it now has 2 main versions, one for Python 2
and another one for Python 3.
On Oct 31, 10:00 am, Andrea Crotti andrea.crott...@gmail.com wrote:
Suppose that I have a project which (should be)/is multiplatform in python,
which, however, uses some executables as black-boxes.
These executables are platform-dependent and at the moment they're just
thrown inside the same
When visitors visit your site to post their code; often such posts ask
for username and email address; consider adding additional fields to
generate some Python documenting feature like Sphinx or epydoc.
and let your site inject the docstring (module string) into the
snippet; primarily, author,
Hi i'm trying to fetch realtime data from twitter using tweepy.Stream().
So I have tried the following...
After successfully authenticate using oauth:
auth = tweepy.OAuthHandler(...) (it works fine, i have my access_token.key
and secret)
i did:
streaming_api = tweepy.streaming.Stream(auth,
I am currently rewritting a class using the Python C API to improve
performance of it, however I have not been able to find any
documentation about how to make a context manager using the C API.
The code I am working to produce is the following (its a method of a class):
On Mon, 31 Oct 2011 10:00:22 -0400, Kevin Walzer k...@codebykevin.com
wrote:
On 10/31/11 12:37 AM, Ric@rdo wrote:
What would be an equivalent widget in ttk like a Listbox and if
possible a small example? I tried to look here
http://docs.python.org/library/ttk.html but did not see anything.
On Mon, 31 Oct 2011 10:00:22 -0400, Kevin Walzer k...@codebykevin.com
wrote:
On 10/31/11 12:37 AM, Ric@rdo wrote:
What would be an equivalent widget in ttk like a Listbox and if
possible a small example? I tried to look here
http://docs.python.org/library/ttk.html but did not see anything.
On Mon, Oct 31, 2011 at 13:34, Chris Kaynor ckay...@zindagigames.com wrote:
I am currently rewritting a class using the Python C API to improve
performance of it, however I have not been able to find any
documentation about how to make a context manager using the C API.
The code I am working
On Mon, Oct 31, 2011 at 12:15 PM, Brian Curtin brian.cur...@gmail.com wrote:
You'd just add __enter__ and __exit__ in the PyMethodDef. If you
have the CPython source, we do it in there in a few places. Off the
top of my head, PC\winreg.c contains at least one class that works as
a context
Looking for feedback from anyone who has tried or is using
ActiveState Stackato, PiCloud or other Python orientated
SaaS/PaaS offerings?
Pros, cons, advice, lessons learned?
Thank you,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Wondering if there's a fast/efficient built-in way to determine
if a string has non-ASCII chars outside the range ASCII 32-127,
CR, LF, or Tab?
I know I can look at the chars of a string individually and
compare them against a set of legal chars using standard Python
code (and this works fine),
I'm trying to write a simple Python script to print out network
interfaces (as found in the ifconfig -a command) and their speed
(ethtool interface). The idea is to loop for each interface and
print out its speed. os.popen seems to be the right solution for the
ifconfig command, but it doesn't
On Mon, Oct 31, 2011 at 2:16 PM, extraspecialbitter
pauldavidm...@gmail.com wrote:
cmd = 'ethtool %interface'
That is not Python syntax for string interpolation. Try:
cmd = 'ethtool %s' % interface
On a side note, os.popen is deprecated. You should look into using
the higher-level
On Mon, Oct 31, 2011 at 16:16, extraspecialbitter
pauldavidm...@gmail.com wrote:
if line[10:20] == Link encap:
interface=line[:9]
cmd = 'ethtool %interface'
print cmd
gp = os.popen(cmd)
because you're saying that cmd is 'ethtool %interface' as you pointed
out later on...
On Mon, 31 Oct 2011 13:16:25 -0700, extraspecialbitter wrote:
cmd = 'ethtool %interface'
Do you perhaps mean:
cmd = 'ethtool %s' % (interface, )
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Oct 31, 2011 at 1:16 PM, extraspecialbitter
pauldavidm...@gmail.com wrote:
I'm trying to write a simple Python script to print out network
interfaces (as found in the ifconfig -a command) and their speed
(ethtool interface). The idea is to loop for each interface and
print out its
This was exactly what I was looking for. Thanks!
On Mon, Oct 31, 2011 at 4:48 PM, Chris Rebert c...@rebertia.com wrote:
On Mon, Oct 31, 2011 at 1:16 PM, extraspecialbitter
pauldavidm...@gmail.com wrote:
I'm trying to write a simple Python script to print out network
interfaces (as found
On 10/31/2011 12:18 PM, Ricardo Mansilla wrote:
Hi i'm trying to fetch realtime data from twitter using tweepy.Stream().
A reference to your source for tweepy would help.
The link below gives https://github.com/tweepy/tweepy
for the current source.
http://pypi.python.org/pypi/tweepy/1.7.1
has
On 10/31/2011 03:54 PM, pyt...@bdurham.com wrote:
Wondering if there's a fast/efficient built-in way to determine
if a string has non-ASCII chars outside the range ASCII 32-127,
CR, LF, or Tab?
I know I can look at the chars of a string individually and
compare them against a set of legal chars
On 10/31/2011 05:47 PM, Dave Angel wrote:
On 10/31/2011 03:54 PM, pyt...@bdurham.com wrote:
Wondering if there's a fast/efficient built-in way to determine
if a string has non-ASCII chars outside the range ASCII 32-127,
CR, LF, or Tab?
I know I can look at the chars of a string individually
On Mon, Oct 31, 2011 at 4:08 PM, Dave Angel d...@davea.name wrote:
I was wrong once again. But a simple combination of translate() and
split() methods might do it. Here I'm suggesting that the table replace all
valid characters with space, so the split() can use its default behavior.
That
On Mon, 31 Oct 2011 17:47:06 -0400, Dave Angel wrote:
On 10/31/2011 03:54 PM, pyt...@bdurham.com wrote:
Wondering if there's a fast/efficient built-in way to determine if a
string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or
Tab?
I know I can look at the chars of a string
On 10/31/2011 3:54 PM, pyt...@bdurham.com wrote:
Wondering if there's a fast/efficient built-in way to determine if a
string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or Tab?
I presume you also want to disallow the other ascii control chars?
I know I can look at the chars
On 10/31/11 18:02, Steven D'Aprano wrote:
# Define legal characters:
LEGAL = ''.join(chr(n) for n in range(32, 128)) + '\n\r\t\f'
# everybody forgets about formfeed... \f
# and are you sure you want to include chr(127) as a text char?
def is_ascii_text(text):
for c in text:
On 10/31/11 4:03 PM, Ric@rdo wrote:
On Mon, 31 Oct 2011 10:00:22 -0400, Kevin Walzerk...@codebykevin.com
wrote:
On 10/31/11 12:37 AM, Ric@rdo wrote:
What would be an equivalent widget in ttk like a Listbox and if
possible a small example? I tried to look here
On Mon, Oct 31, 2011 at 4:08 PM, Dave Angel d...@davea.name wrote:
Yes. Actually, you don't even need the split() -- you can pass an
optional deletechars parameter to translate().
On Oct 31, 5:52 pm, Ian Kelly ian.g.ke...@gmail.com wrote:
That sounds overly complicated and error-prone.
Not
On 10/31/2011 7:02 PM, Steven D'Aprano wrote:
On Mon, 31 Oct 2011 17:47:06 -0400, Dave Angel wrote:
On 10/31/2011 03:54 PM, pyt...@bdurham.com wrote:
Wondering if there's a fast/efficient built-in way to determine if a
string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or
Tab?
On 10/31/2011 08:32 PM, Patrick Maupin wrote:
On Mon, Oct 31, 2011 at 4:08 PM, Dave Angeld...@davea.name wrote:
Yes. Actually, you don't even need the split() -- you can pass an
optional deletechars parameter to translate().
On Oct 31, 5:52 pm, Ian Kellyian.g.ke...@gmail.com wrote:
That
Thanks a lot for your answer. I'm using python 2.7.2 and tweetpy 1.7
help(tweepy)
Help on package tweepy:
NAME
tweepy - Tweepy Twitter API library
(...)
VERSION
1.7.1
and probably that is the problem, the link that you gave me refers to the
1.2 version page...
Anyway, i already
On Oct 31, 9:12 pm, Dave Angel d...@davea.name wrote:
I would claim that a well-written (in C) translate function, without
using the delete option, should be much quicker than any python loop,
even if it does copy the data.
Are you arguing with me? I was agreeing with you, I thought, that
On Oct 28, 3:06 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Thu, 27 Oct 2011 20:05:13 -0700, Fletcher Johnson wrote:
If I create a newUnicodeobject u'\x82\xb1\x82\xea\x82\xcd' how does
this creation process interpret the bytes in the byte string?
It doesn't, because
Hey Guys
I shud mention I am relative new to the language. Could you please let me
know based on your experience which module could help me with farm out jobs
to our existing clusters(we use SGE here) using python.
Ideally I would like to do the following.
1. Submit #N jobs to cluster
2.
Ned Deily n...@acm.org added the comment:
I can fairly easily reproduce the hang on a current OS X system and the latest
patch appears to solve the problem. Looks good to me.
--
nosy: +ned.deily
stage: needs patch - patch review
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 80a7ab9ac29f by Martin v. Löwis in branch 'default':
Drop Py_UCS4_ functions. Closes #13246.
http://hg.python.org/cpython/rev/80a7ab9ac29f
--
nosy: +python-dev
resolution: - fixed
stage: -
New submission from David Jean Louis izimo...@gmail.com:
Hi,
I'm the author of the polib python module, incidentally (after a bug report in
polib:
https://bitbucket.org/izi/polib/issue/27/polib-doesnt-check-unescaped-quote)
I've found that the eval() in Tools/i18n/msgfmt.py allows arbitrary
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13298
___
___
Python-bugs-list
Ezio Melotti ezio.melo...@gmail.com added the comment:
If it's added it should be a versionchanged, not a versionadded.
I'm also not entirely sure this should be considered a new feature and don't
see the point of having a strict mode. IMHO robotparser should honor what the
robots.txt files
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +barry, benjamin.peterson, ezio.melotti, georg.brandl
stage: - patch review
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker rep...@bugs.python.org
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13301
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
This should be fixed; the patch doesn't seem correct though, it doesn't handle
escapes like eval() would.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13301
David Jean Louis izimo...@gmail.com added the comment:
I'm adding an updated patch that also handles unescaped double quote at the
beginning of the string.
--
versions: +Python 2.6, Python 3.1, Python 3.4
Added file: http://bugs.python.org/file23567/msgfmt.py.diff.update1.diff
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello,
we recently received a this message on docs@ :
http://mail.python.org/pipermail/docs/2011-October/006121.html that's actually
related to this issue: how can we move it forward?
--
nosy: +sandro.tosi
versions: +Python 3.3
David Jean Louis izimo...@gmail.com added the comment:
Hmm, I missed your previous message, indeed, unescaping is not handled by this
patch, sorry about that. Here's how it is handled in polib:
https://bitbucket.org/izi/polib/src/dbafdc621bf4/polib.py#cl-206
--
David Townshend aquavita...@gmail.com added the comment:
I see this has been marked as a duplicate of http://bugs.python.org/issue12797.
Please explain how this is, since that proposal does not appear to provide the
functionality discussed here.
--
john doe tnagy1...@gmail.com added the comment:
The following piece of code does not seem to be thread-safe:
gc.disable()
try:
os.fork()
except:
...
If calling subprocess.Popen() is supposed to work from threads without any
particular protection, then a lock is needed in
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
issue12797 would allow things like:
def create_exclusive_file(filename):
return open(filename, w,
opener=lambda path, mode: os.open(path,
mode|os.O_CREAT|os.O_EXCL))
--
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1336
___
___
New submission from Sandro Tosi sandro.t...@gmail.com:
Hello,
given I can't fully comprehend the user request (sent on docs@ as of
http://mail.python.org/pipermail/docs/2011-September/005791.html), I'm just
echoing it :
recently I embedded Python into one of my applications, which included
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 05e2bdc00c0c by Victor Stinner in branch 'default':
Issue #13226: Update sys.setdlopenflags() docstring
http://hg.python.org/cpython/rev/05e2bdc00c0c
--
___
Python
Charles-François Natali neolo...@free.fr added the comment:
2096158376e5 broke test_xmlrpc:
==
ERROR: test_datetime_before_1900 (test.test_xmlrpc.XMLRPCTestCase)
Martin v. Löwis mar...@v.loewis.de added the comment:
ita1024: please don't post to closed issues; your message here will be ignored.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1336
New submission from STINNER Victor victor.stin...@haypocalc.com:
Traceback (most recent call last):
File
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/regrtest.py,
line 1186, in runtest_inner
indirect_test()
File
Charles-François Natali neolo...@free.fr added the comment:
There's a race in _write_atomic():
# On POSIX-like platforms, renaming is atomic
path_tmp = path + '.tmp'
try:
fd = _os.open(path_tmp, _os.O_EXCL | _os.O_CREAT | _os.O_WRONLY)
with
Charles-François Natali neolo...@free.fr added the comment:
Patch attached.
--
keywords: +patch
Added file: http://bugs.python.org/file23568/import_atomic_race.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13303
Nick Coghlan ncogh...@gmail.com added the comment:
Bitbucket repo and attached patch updated relative to current tip.
--
Added file:
http://bugs.python.org/file23569/issue11816_get_opinfo_branch_20111031.diff
___
Python tracker
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file:
http://bugs.python.org/file23197/issue11816_get_opinfo_branch_20110920.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file:
http://bugs.python.org/file23095/issue11816_get_opinfo_branch_20110904.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file:
http://bugs.python.org/file23019/issue11816_get_opinfo_branch_20110824.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file21599/dis.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Nick Coghlan ncogh...@gmail.com added the comment:
Bitbucket repo and attached patch updated relative to latest get_opinfo branch
(which in turn was updated to apply cleanly against current CPython tip).
(I still need to incorporate the doc updates and look into adding keyword
argument
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file22616/pep380-missing-docs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11682
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file:
http://bugs.python.org/file23096/issue11682_pep380_branch_20110904.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11682
___
Antoine Pitrou pit...@free.fr added the comment:
This looks good to me. I'm slightly worried about what happens when there's a
stale tmp file (for example if the Python process crashed before renaming it).
--
___
Python tracker
karl karl+pythonb...@la-grange.net added the comment:
Ezio, Martin,
HTML 3.2, HTML 4.01 are not outdated. They have stable specifications. That
said their doctypes have not influence at all in browsers. The html5 doctype
!DOCTYPE html has been chosen because it was the minimal string of
Jesús Cea Avión j...@jcea.es added the comment:
2.7 is a long term maintenance branch, and this patch is trivial enough. I
think it is risk free :)
--
assignee: - jcea
nosy: +jcea
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
Then we won't write the bytecode any more.
But it will be consistent.
The solution would be to create a random temporary file (with e.g. mkstemp()):
in case of crash, we'll let dangling temporary files, but we'll be able to
update the
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 0694ebb5db99 by Jesus Cea in branch '2.7':
Closes #13283: removal of two unused variable in locale.py
http://hg.python.org/cpython/rev/0694ebb5db99
New changeset a479aad0231e by Jesus Cea in branch '3.2':
Closes
Ezio Melotti ezio.melo...@gmail.com added the comment:
My point is that the HTML5 doctype doesn't bring us anything (except maybe a
shorter string), so I don't see the point of changing it.
When the HTML5 spec is stable we can switch to it, but even then the update
won't change anything.
Lucas Sinclair blastoc...@mac.com added the comment:
Sure, I can have a try at it and address the issues you pointed out.
The URL to the guidelines you provided gives a 404. In what form exactly would
you like the patch to be ?
I wouldn't mind either adding to the test suite, but I'm not sure
karl karl+pythonb...@la-grange.net added the comment:
Yup. I doesn't bring anything except putting the output in line with the
reality of browsers implementations. You may close it. I don't mind.
--
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: - ezio.melotti
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13295
___
Éric Araujo mer...@netwok.org added the comment:
I’d rather fix the page (look at the diff to find one violation: the first
heading is an h2 instead of h1) and use an HTML5 doctype, as it’s just HTML
4.01 + pragmatism.
--
___
Python tracker
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13301
___
Éric Araujo mer...@netwok.org added the comment:
I’m not sure my question was well phrased.
If I have these files:
spam.py
ham.py
foo bar.py
will a pattern of '*.py' match all of them with your functions, even the one
with an embedded space?
--
Éric Araujo mer...@netwok.org added the comment:
Here's a test for the bug.
Thanks! Some comments are strange, but the patch is a good start.
One way to fix the symptom (maybe not the correct way) would be to edit
tarfile._Stream._init_write_gz
I’d rather change distutils, not tarfile. I
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13288
___
___
Python-bugs-list mailing list
Jesús Cea Avión j...@jcea.es added the comment:
Any progress on this?. I still see frequent OpenIndiana Buildbots failures
because of this. Is anybody activelly working on this?. Should I get involved?
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Here's the error message:
error: File not found:
/tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyc
Thanks. Some rpm tool is looking for byte-compiled files in the old
Éric Araujo mer...@netwok.org added the comment:
-def set_cdata_mode(self):
+def set_cdata_mode(self, elem):
Looks like an incompatible behavior change. Is it only an internal method that
will never affect users’ code (even subclasses)?
--
Éric Araujo mer...@netwok.org added the comment:
Sure, I can have a try at it and address the issues you pointed out.
Nice!
The URL to the guidelines you provided gives a 404.
They’ve moved to http://docs.python.org/devguide meanwhile.
I wouldn't mind either adding to the test suite, but
Charles-François Natali neolo...@free.fr added the comment:
Here's a patch using pseudo-random filenames.
I used id(path) to generate a random name: it's faster than getpid(), and
doesn't pollute strace's output (I'm one of strace's biggest fan :-).
--
Added file:
Antoine Pitrou pit...@free.fr added the comment:
Here's a patch using pseudo-random filenames.
I used id(path) to generate a random name: it's faster than getpid(),
and doesn't pollute strace's output (I'm one of strace's biggest
fan :-).
If you go that way, you should also modify
Charles-François Natali neolo...@free.fr added the comment:
Is anybody activelly working on this?.
I don't think so.
Should I get involved?
Sure, if you have access to a machine on which you can reliably reproduce the
problem, it'll be much easier. I would bet on a deficient name
Antoine Pitrou pit...@free.fr added the comment:
Updated patch:
* checks for long overflow
* raises original exception if opener returns null
* makes it explicit that opener must return an open file descriptor.
This looks good to me. You just need to add a versionchanged attribute
in the
Martin v. Löwis mar...@v.loewis.de added the comment:
I declare the original issue closed - there is no reason to switch to HTML 5 in
this code.
There are side issues, such as the HTML 3.2 perhaps being incorrect; people who
want to commit patches in that respect can just go ahead.
Charles-François Natali neolo...@free.fr added the comment:
(it does sound a bit overkill to me :-))
Well, it depends on what we want:
- if having a stale bytecode file indefinitely is acceptable, then the '.tmp'
suffix approach is OK
- if not, then we should use pseudo-random files
If you
1 - 100 of 147 matches
Mail list logo