Chris Monsanto added the comment:
This issue has been open for 4 years, last update was 2 months ago.
Lack of transactional DDL is a big deal for Python programs that use SQLite
heavily.
We have a patch for Python 3 that applies cleanly and as far as I can tell
works fine. I've been using
Chris Monsanto added the comment:
Unfortunately, I don't have backwards-compatible proposal to fix this. Trying
to account for a bit more syntax will help in the short term but not fix the
underlying issue.
aaugustin -- the patch by torsen made 3 years ago is backwards compatible. It
adds
New submission from Chris Monsanto ch...@monsan.to:
I have a function whose closure contains a local variable that shadows a global
variable (lets call it x). If I create a class as follows:
class Test(object): x = x
Test.x will contain the value of the global x, not the local x. This ONLY
Chris Monsanto ch...@monsan.to added the comment:
A friend confirmed that this was the case on 3.1.2 as well.
--
versions: +3rd party -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9226
Changes by Chris Monsanto ch...@monsan.to:
--
versions: +Python 2.6, Python 3.1 -3rd party
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9226
On Oct 30, 7:58 pm, bambam [EMAIL PROTECTED] wrote:
Are function variables thread safe?
def f(a):
# whatever
return float(a)
Is that OK?
def f(a):
#whatever
b=a:
#whatever:
return float(b)
Is that OK?
Steve.
Huh?
--
On Oct 21, 6:22 pm, Panagiotis Atmatzidis [EMAIL PROTECTED]
wrote:
Hello,
I want to create a script in python that search for .html files in the
predefined directory and subdirectories. Then it checks if a specific
snippet of code exists in the .html file, if not it injects/adds the
code
On Oct 13, 4:32 pm, James Abley [EMAIL PROTECTED] wrote:
Hi,
I'm trying to understand how CPython implements unicodedata, with a view to
providing an implementation for Jython. This is a background, low priority
thing for me, since I last posted to this list about it in February!
Python
On Oct 10, 5:03 pm, Larry Bates [EMAIL PROTECTED] wrote:
Shawn Minisall wrote:
I just learned about if, then elif statements and wrote this program.
The problem is, it's displaying all of the possibilities even after you
enter a 0, or if the fat grams are more then the total number of
On Oct 7, 11:54 am, Wildemar Wildenburger
[EMAIL PROTECTED] wrote:
Kay Schluehr wrote:
On Oct 7, 8:05 am, Dick Moores [EMAIL PROTECTED] wrote:
http://www.redcanary.ca/view/top-programming
Dick Moores
Despite my doubts that Ajax and .NET will be programming languages in
2013 a more
On Oct 5, 10:27 am, Abandoned [EMAIL PROTECTED] wrote:
Hi..
I have a problem..
list1=[11, 223, 334, 4223...] 1 million element
list2=[22,223,4223,2355...] 500.000 element
I want to difference list1 to list2 but order very importent..
My result must be:
list3=[11,334,...]
I do this use
On Oct 5, 10:22 am, Paul Rudin [EMAIL PROTECTED] wrote:
István [EMAIL PROTECTED] writes:
Could somebody suggest me a novice Python list, please?
Here you go:
['novice']
(Sorry, couldn't resist.)
No no... I think he meant a simple list. Like, you know, a list
novices can handle.
I
On Sep 26, 2:26 pm, Joe Goldthwaite [EMAIL PROTECTED] wrote:
Hi everyone,
I'm a developer who's been using python for a couple of years. I wrote a
fairly large application using it but I was learning the language at the
same time so it most of the code kind of sucks.
I've learned a lot
On Sep 25, 1:35 pm, thebjorn [EMAIL PROTECTED]
wrote:
On Sep 25, 10:53 am, Mark Summerfield [EMAIL PROTECTED]
wrote:
Hi,
Below is a PEP proposal for a sorteddict. It arises out of a
discussion on this list that began a few weeks ago with the subject of
An ordered dictionary for the
On Sep 21, 2:44 pm, David [EMAIL PROTECTED] wrote:
data = asdfasgSTARTpruyerfghdfjENDhfawrgbqfgsfgsdfg
x = re.compile('START.END', re.DOTALL)
This should work:
x = re.compile('START(.*)END', re.DOTALL)
You'll want to use a non-greedy match:
x = re.compile(rSTART(.*?)END, re.DOTALL)
On Sep 21, 3:32 pm, [EMAIL PROTECTED] wrote:
You'll want to use a non-greedy match:
x = re.compile(rSTART(.*?)END, re.DOTALL)
Otherwise the . will match END as well.
On Sep 21, 3:23 pm, Steve Holden [EMAIL PROTECTED] wrote:
Only if there's a later END in the string, in which case the
On Sep 21, 4:09 pm, Thomas Jollans [EMAIL PROTECTED] wrote:
On Friday 21 September 2007, [EMAIL PROTECTED] wrote:
Not specific to Python, but it will be implemented in it... how do I
compile a RE to catch everything between two know values? Here's what
I've tried (but failed) to
On Sep 21, 5:04 pm, crybaby [EMAIL PROTECTED] wrote:
import re
s1 ='nbsp;25000nbsp;'
s2 = 'nbsp;5.5910nbsp;'
mypat = re.compile('[0-9]*(\.[0-9]*|$)')
rate= mypat.search(s1)
print rate.group()
rate=mypat.search(s2)
print rate.group()
rate = mypat.search(s1)
price = float(rate.group())
On Sep 21, 5:37 pm, Cristian [EMAIL PROTECTED] wrote:
A friend of mine is an engineer and he's been needing to do more and
more programming as he goes on with is career. I convinced him to
learn Python instead of Perl and he's really started to like it. He
usually comes to me when he can't
On Sep 21, 6:07 pm, Cristian [EMAIL PROTECTED] wrote:
On Sep 21, 2:48 pm, [EMAIL PROTECTED] wrote:
There are already anonymous functions in Python.
lambda x, y, z: x + y + z
is the same as:
def _(x, y, z): return x + y + z
As for the method stuff, check out staticmethod(). If you
On Sep 21, 7:15 pm, Ricardo Aráoz [EMAIL PROTECTED] wrote:
Hi, I know I'm being dumb but, why does it not work?
class MyList(list):
... def __init__(self):
... self.calls = 0
... def __getattr__(self, name):
... self.calls += 1
... return
On Sep 20, 1:21 pm, Tor Erik Sønvisen [EMAIL PROTECTED] wrote:
Hi,
Does anyone know how to interrupt the lookup of an integer value? I
know I need to subclass int, since builtin types can't be altered
directly...
Below is how far I've come... What I want is to tap into the access of
Recently I've had to move my site to a new dedicated server running
FreeBSD 6.1. After installing apache 2.0.59, python 2.4.4 and
mod_python 3.3.1, I decided to bench a script in PHP vs one in Python.
I found out that for some reason, my mod_python was performing
extremely slow - magnitudes slower
23 matches
Mail list logo