Morning a!!,
Thanks to an eagle-eyed Davie Wilkins, he noticed that Room 3074 in
the Arts Building has no name, so please ignore Davis Theatre, that
was a typo.
Where:
3074 in the Arts block
( Map : http://www.tcd.ie/Maps/arts_block.html )
I have rectified that in the wiki as well:
Hi all,
Please take a minute to vote for Plone in Packt's Open Source CMS Award:
http://www.packtpub.com/article/best-other-open-source-cms-award-final-plone
You managed to bring Plone to the front page of DIgg.com with your
earlier effort for the release of Plone 3.0, let your Python vote
En Mon, 01 Oct 2007 00:10:05 -0300, Andres Riofrio
[EMAIL PROTECTED] escribi�:
From what I've read, seems that the principal reason for rejecting the
PEP is that there was not much need (enthusiasm)... Well, then I have
a question: Is there a way to make 5/2 return something other than an
Sorry for intruding here,
But one inefficiency of the Windows XP (not NTFS in general) is that
NTFS must generate 8.3 names (for old-DOS/Win31/Win95/Win98/WinME
compatibility).
Generating such a name could slow down the system, as the name must be
unique, and finding such unique name would be
dcleaner a écrit :
hi there...i'm a begginer level user and i've stumbbled upon a problem a
bit beyond my knowledge. i hope that somebody will be able to help me with
my problem...
the problem is: i'm transforming an Access database to XML
otStrange idea IMHO, but anyway.../ot
with some
On Sep 27, 10:40 pm, Chris Mellon [EMAIL PROTECTED] wrote:
On 9/27/07, Hrvoje Niksic [EMAIL PROTECTED] wrote:
Joel [EMAIL PROTECTED] writes:
Note that, unlike the original alarm code, it doesn't really interrupt
the timed-out method, it just returns the control back to the caller,
Ken Tilton [EMAIL PROTECTED] writes:
Oh, I missed that. I just saw something about software should be
shared
of course it should, as otherwise it would be immoral,
and programmers should be content with an hourly wage, not
sales.
only greedy creeps wouldn't be content
Klaus Schilling
--
On Sep 28, 11:13 pm, Heikki Toivonen [EMAIL PROTECTED] wrote:
Johny wrote:
I need to use Python with SSL comunication betweeen servers.
(I use hhtplib but I think urllib2 can also be used )
I think I need to use SSL root certificate and tell a program to
trust this certificate.
You
Hi all,
I'm doing a function which needs return an arrary -- or more specially a
dictionary data type.
I have a sample like this
def AFC():
v[a] = 1
return v
v = AFC()
print v[a]
with error
NameError: global name 'v' is not defined
how do I go about it?
Thanks in advance.
Boris Mok
--
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Sometime it maybe a waste to generate all possible combinations of
i,j first.
It doesn't; read about generator expressions at
http://www.python.org/dev/peps/pep-0289/
George
Thanks, I didn't realize that.
However, I still think labeled
Andres Riofrio a écrit :
zip
Well, then I have
a question: Is there a way to make 5/2 return something other than an
integer?
from __future__ import division
5/2
2.5
--
http://mail.python.org/mailman/listinfo/python-list
Boris Mok [EMAIL PROTECTED] writes:
I'm doing a function which needs return an arrary -- or more specially
a dictionary data type.
Yes. Python doesn't have an array type natively, and it's confusing
to refer to a dict as an array because there *are* arrays in PyNum.
I have a sample like this
Hi,
I am distributing a package with a precompiled collection of modules
and packages useful for Python based medical/biological/astronomical
image analysis and algorithm development. (Codename: Priithon).
For Priithon I put all modules/packages in a simple / single directory
(tree) including one
Boris Mok [EMAIL PROTECTED] wrote:
Hi all,
I'm doing a function which needs return an arrary -- or more specially a
dictionary data type.
I have a sample like this
def AFC():
v[a] = 1
return v
v = AFC()
print v[a]
with error
NameError: global name 'v' is not defined
how
Neither C or Java has call by reference.
C pointers and Java references may work similarly in most cases
but it is still call by value.
so what? the references in c++ are passed by value too, its just a nice
interface to pointers.
At the end those parameters are pushed on the stack .. thats it.
Is there something like HTML unit in Python ? For testing Web applications.
Amal.
--
http://mail.python.org/mailman/listinfo/python-list
I'm using list(l) to copy the list, Tero uses l[:], but the idea is
the same.
Thanks a lot for your response and the hint.
But do you just want all proper partitions of lst? Then this is much
simpler:
lst = [0, 1, 2]
s = [(lst[:i], lst[i:]) for i in range(1, len(lst))]
Ah, thanks a lot
If you're familiar with C or C++, think of s as holding a pointer to x
which in turn holds a pointer to l and r, so when you change l or r, x
(and s indirectly) is still pointing to the same lists which by the
AH - thanks a million -- that makes it crystal clear!
[Python's apparent simplicity
Thanks a lot for your response, too.
Best regards,
Gabriel.
--
__
Life is so constructed that the event does not, cannot,
will not match the expectation. (Charlotte Bronte)
x = (list(l), list(r))
BTW: I prefer this syntax, because it makes the copy explicit, while
l[:] seems to me more implicit ...
Best regards,
Gabriel.
--
__
Life is so constructed that the event does not, cannot,
will not match
Hello!! once again i'm updating my e-books!!
Check this out!!
http://freebooks2007.blogspot.com
thank youu!! have a nice day! ^^
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 1, 4:04 am, [EMAIL PROTECTED] wrote:
Hi,
I am distributing a package with a precompiled collection of modules
and packages useful for Python based medical/biological/astronomical
image analysis and algorithm development. (Codename: Priithon).
For Priithon I put all modules/packages in
On 2007-09-30 23:03, Arne Vajhøj wrote:
Erik Wikström wrote:
their reference (alias) mechanism. And C, Python, and Ruby probably
won't let you do that. What about Java and Perl?
C will let you do it with pointers (it is just a syntactical difference
from references in this case) and
Hi all!
I have many many many python unit test, which are used for testing some
remote web service.
The most important issue here is logging of test execution process and
result. I strongly need following:
1. start/end timestamp for each test case (most important)
2. immediate report about
Hi,
developing a daemon (using python 2.4 and mysqldb 1.2.1_p2) we notes
that mysqldb class write on stderr some warnings and error
asyncronously (uhmmm it's good written? ;P ).
Someone knows how stop write on stderr (and stdout) on mysqldb?
I use warnings filter :
...
On 10 1 , 1 13 , panguohua [EMAIL PROTECTED] wrote:
www.space666.com
a good website for making money with your blog.more information there
support!
!
--
http://mail.python.org/mailman/listinfo/python-list
http://39174107.qzone.qq.com/?url=http://photo.qq.com/tips_jump.htm%23uin%3D39174107%26albumid%3D107725465%26photoid%3D712d4566965649d399799d8c631305d8
--
http://mail.python.org/mailman/listinfo/python-list
From: thebjorn
What's stabledict? I'm assuming that ordereddict is a mapping that
maintains insertion order(?)
Yes, ordereddict is a dict that maintains insertion order. Stabledict
is probably a dict that maintains _an_ order, so that repr() and the
like return the same value when used on
On Sep 30, 6:49 pm, Summercool [EMAIL PROTECTED] wrote:
On Sep 30, 4:18 am, 7stud -- [EMAIL PROTECTED] wrote:
SpringFlowers AutumnMoon wrote:
we have no way
of knowing what we pass in could get changed.
Sure you do. You look at the function's signature. In order to use
someone
Gabriel Genellina [EMAIL PROTECTED] wrote:
And gmpy: http://www.aleax.it/gmpy.html
And a concrete example
from gmpy import mpq
mpq(1,3)+mpq(0.4)
mpq(11,15)
mpq(1,3)+mpq(4,10)
mpq(11,15)
mpq(1,3)+mpq(6,10)
mpq(14,15)
mpq(1,3)+0.6
mpq(14,15)
mpq(5,2)
mpq(5,2)
On Sep 28, 9:57 pm, Chris Pax [EMAIL PROTECTED] wrote:
Hello,
I recently been trying to use the inspect module to inspect the
arguments of gtk objects, such as gtk.Button. I tried like this:
inspect.getargspec(gtk.Button.__init__)
and get the fallowing error:
File stdin, line 1, in
Hamilton, William [EMAIL PROTECTED] wrote:
From: thebjorn
What's stabledict? I'm assuming that ordereddict is a mapping that
maintains insertion order(?)
Yes, ordereddict is a dict that maintains insertion order. Stabledict
is probably a dict that maintains _an_ order, so that repr() and
Are there PyOpenGL 2.0 (I guess 2.0.1.09 is goood) binaries available
for Python 2.5 ? Anywhere ?
Thanks for the reply
-Sebastian Haase
On Oct 1, 11:49 am, Carl Banks [EMAIL PROTECTED] wrote:
On Oct 1, 4:04 am, [EMAIL PROTECTED] wrote:
Hi,
I am distributing a package with a
Hi..
I am using python with postgresql.
And i have a query :
aia.execute(SELECT id, w from list)
links=aia.fetchall()
print links
and result
[(1, 5), (2,5)...] (2 million result)
I want to see this result directly as a dictionary:
{1: 5, 2: 5 .}
How do i select in this format ?
I'm
[EMAIL PROTECTED] wrote:
Hi!
I was surprised when I did a google-groups search for python,
(
http://groups.google.com/groups/search?q=pythonqt_s=Search+Groups
)
it shows these groups:
comp.lang.python with about 11000 users,
and second,
Django users
Discussion group for Django
Vyacheslav Maslov [EMAIL PROTECTED] writes:
I have many many many python unit test, which are used for testing
some remote web service.
Part of your confusion comes from the fact that test a remote
service isn't what a unit test does.
A unit test is one that executes a very *limited* part of
On Sep 28, 1:48 pm, gamename [EMAIL PROTECTED] wrote:
Hi,
Can anyone recommend a good method of using python to generate c
source code? I have tables of test cases to use as input to a
process which would generate the test's source code. The Cheetah tool
looks interesting. Has anyone
Hi!
I was surprised when I did a google-groups search for python,
(
http://groups.google.com/groups/search?q=pythonqt_s=Search+Groups
)
it shows these groups:
comp.lang.python with about 11000 users,
and second,
Django users
Discussion group for Django users. Django is a high-level Python
Web
Besturk.Net Admin a écrit :
Hi..
I am using python with postgresql.
And i have a query :
aia.execute(SELECT id, w from list)
links=aia.fetchall()
print links
and result
[(1, 5), (2,5)...] (2 million result)
I want to see this result directly as a dictionary:
{1: 5, 2: 5
On Mon, Oct 01, 2007 at 06:32:07AM -0700, Besturk.Net Admin wrote regarding
Select as dictionary...:
aia.execute(SELECT id, w from list)
links=aia.fetchall()
print links
and result
[(1, 5), (2,5)...] (2 million result)
I want to see this result directly as a dictionary:
{1: 5,
I'm trying to convert VB code that registers COM+ components to
Python. However, I'm unable to set values on COMAdminCatalogObject
using the Value() method, it seems to think I'm trying to call the get
method.
VB Code:
Dim cat As COMAdminCatalog
Set cat = New COMAdminCatalog
Dim apps As
On 2007-10-01 15:32, Besturk.Net Admin wrote:
Hi..
I am using python with postgresql.
And i have a query :
aia.execute(SELECT id, w from list)
links=aia.fetchall()
print links
and result
[(1, 5), (2,5)...] (2 million result)
I want to see this result directly as a dictionary:
aia.execute(SELECT id, w from list)
links=aia.fetchall()
print links
and result
[(1, 5), (2,5)...] (2 million result)
I want to see this result directly as a dictionary:
{1: 5, 2: 5 .}
Because your fortuitously issued a select in that particular
order (key, value), you can
On Mon, 01 Oct 2007 09:57:46 -0400, J. Clifford Dyer wrote:
On Mon, Oct 01, 2007 at 06:32:07AM -0700, Besturk.Net Admin wrote
regarding Select as dictionary...:
aia.execute(SELECT id, w from list) links=aia.fetchall()
print links
and result
[(1, 5), (2,5)...] (2 million result)
I
J. Clifford Dyer [EMAIL PROTECTED] wrote:
aia.execute(SELECT id, w from list)
links=aia.fetchall()
linkdict = dict()
for k,v in links:
linkdict[k] = v
print linkdict
Wouldn't it be simpler just to do:
aia.execute(SELECT id, w from list)
linkdict=dict(aia.fetchall())
even better
On Mon, 2007-10-01 at 09:57 -0400, J. Clifford Dyer wrote:
On Mon, Oct 01, 2007 at 06:32:07AM -0700, Besturk.Net Admin wrote regarding
Select as dictionary...:
aia.execute(SELECT id, w from list)
links=aia.fetchall()
print links
and result
[(1, 5), (2,5)...] (2 million
On Mon, Oct 01, 2007 at 03:50:59PM +0200, Bruno Desthuilliers wrote regarding
Re: Select as dictionary...:
IIRC, postgres' db-api connector (well, at least one of them - I don't
know which one you're using) has a DictCursor. You should find all you
want to know in the relevant doc.
On Mon, 2007-10-01 at 15:50 +0200, Bruno Desthuilliers wrote:
Besturk.Net Admin a écrit :
I want to see this result directly as a dictionary:
{1: 5, 2: 5 .}
How do i select in this format ?
IIRC, postgres' db-api connector (well, at least one of them - I don't
know which one
On Sun, 30 Sep 2007 20:10:05 -0700, Andres Riofrio wrote:
[snip]
From what I've read, seems that the principal reason for rejecting the
PEP is that there was not much need (enthusiasm)... Well, then I have a
question: Is there a way to make 5/2 return something other than an
integer? I can do:
linkdict = dict(iter(aia.fetchone,None))
And by the way, that line can be shortened to linkdict=dict(aia) if
the cursor object supports the iterator protocol, but that's not a
mandatory feature in DB-API v2. The longer form is guaranteed to work
with any DB-API v2 compliant implementation.
--
Johny [EMAIL PROTECTED] writes:
By using my Python program I am attempting to trust a certificate
signed by a certification authority that Python doesn't trust and that
causes the error.
No, as Martin points out, Python trusts EVERY certificate, which of
course misses the whole point of
On Mon, Oct 01, 2007 at 10:12:04AM -0400, Carsten Haese wrote regarding Re:
Select as dictionary...:
On Mon, 2007-10-01 at 09:57 -0400, J. Clifford Dyer wrote:
Try this:
aia.execute(SELECT id, w from list)
links=aia.fetchall()
linkdict = dict()
for k,v in links:
I recently been trying to use the inspect module
to inspect the arguments of gtk objects, such as gtk.Button.
does anybody have any idea?
Chris
You might try the following newsgroup on the Gmane server
for Python / Gtk questions
gmane.comp.gnome.gtk+.python
[EMAIL PROTECTED] wrote:
Hi!
I was surprised when I did a google-groups search for python,
(
http://groups.google.com/groups/search?q=pythonqt_s=Search+Groups
)
it shows these groups:
comp.lang.python with about 11000 users,
and second,
Django users
Discussion group for Django users.
On Oct 1, 4:31 pm, Paul Rubin http://[EMAIL PROTECTED] wrote:
Johny [EMAIL PROTECTED] writes:
By using my Python program I am attempting to trust a certificate
signed by a certification authority that Python doesn't trust and that
causes the error.
No, as Martin points out, Python trusts
QOTW: Does 'this non-Python related twaddle is boring the shit out of me'
mean anything to you both? - Steve Holden
http://groups.google.com/group/comp.lang.python/msg/78b9262de1aeaecd
... if you're programming on Win32 and expecting the application to scale
well, you already have problems
Diez B. Roggisch a écrit :
[EMAIL PROTECTED] wrote:
Hi!
I was surprised when I did a google-groups search for python,
(
http://groups.google.com/groups/search?q=pythonqt_s=Search+Groups
)
it shows these groups:
comp.lang.python with about 11000 users,
and second,
Django users
J. Clifford Dyer a écrit :
On Mon, Oct 01, 2007 at 03:50:59PM +0200, Bruno Desthuilliers wrote regarding
Re: Select as dictionary...:
IIRC, postgres' db-api connector (well, at least one of them - I don't
know which one you're using) has a DictCursor. You should find all you
want to know
Hi,
We're happy to announce the release of Wing IDE 3.0, an advanced
development environment for the Python programming language.
It is available from:
http://wingware.com/
Wing IDE provides powerful debugging, editing, code intelligence,
testing, and search capabilities that reduce development
Hi,
I have a function developed in C that is being used as a Python
extension. The function is being passed a variable from the Python
program. Is it possible to change the value of this variable from
within the C function?
Thanks,
-MD
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 1, 2:35 am, andresj [EMAIL PROTECTED] wrote:
[snip Rational numbers in Python]
I would like to get some feedback on this idea. Has this been posted
before? If so, was it rejected? and for what?
Also, I would like to know if you have improvements on the initial
design, and if it would
On Mon, 2007-10-01 at 09:08 -0700, MD wrote:
Hi,
I have a function developed in C that is being used as a Python
extension. The function is being passed a variable from the Python
program. Is it possible to change the value of this variable from
within the C function?
That question is
No, as Martin points out, Python trusts EVERY certificate, which of
course misses the whole point of certificates. Whatever is making
your program fail is something different.
Paul, are you sure for 100%. It is hard to belive.
Not sure how many confirmations you want, but I can add another
Hi Carsten,
Thanks for your reply. I am a newbie on Python so your help is
much appreciated. My program structure is basically like this .
(rough representation)
test.py
var1 =
rc = func1 (var1)
test.c
func1(*v1) {
strcpy(v1, Hello World);
}
So basically I want to modify
On Sat, Sep 29, 2007 at 12:05:26PM -0700, thebjorn wrote:
Ok, if you want a single RE... How about:
...
r = re.compile(r'''
(?:href=['][^#]+[#]([^']+)['])
| (?:name=[']?([^']+))
''', re.IGNORECASE | re.MULTILINE | re.DOTALL | re.VERBOSE)
maybe a little bit easier to read with
On 9/29/07, Chris Pax [EMAIL PROTECTED] wrote:
Hello,
I recently been trying to use the inspect module to inspect the
arguments of gtk objects, such as gtk.Button. I tried like this:
inspect.getargspec(gtk.Button.__init__)
and get the fallowing error:
File stdin, line 1, in module
On Mon, 2007-10-01 at 09:42 -0700, MD wrote:
Hi Carsten,
Thanks for your reply. I am a newbie on Python so your help is
much appreciated. My program structure is basically like this .
(rough representation)
test.py
var1 =
rc = func1 (var1)
test.c
func1(*v1) {
On Oct 1, 12:53 pm, BJörn Lindqvist [EMAIL PROTECTED] wrote:
On 9/29/07, Chris Pax [EMAIL PROTECTED] wrote:
Hello,
I recently been trying to use the inspect module to inspect the
arguments of gtk objects, such as gtk.Button. I tried like this:
inspect.getargspec(gtk.Button.__init__)
On 1 Ekim, 18:13, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
J. Clifford Dyer a écrit :
On Mon, Oct 01, 2007 at 03:50:59PM +0200, Bruno Desthuilliers wrote
regarding Re: Select as dictionary...:
IIRC, postgres' db-api connector (well, at least one of them - I don't
know which
Also if i need a list id what can i do ?
aia.execute(SELECT id, w from list)
links=aia.fetchall()
I want to..
idlist=[1, 2, 3] ( I don't want to use FOR and APPEND because the
query have 2 million result and i want to speed)
--
http://mail.python.org/mailman/listinfo/python-list
Abandoned wrote:
Also if i need a list id what can i do ?
aia.execute(SELECT id, w from list)
links=aia.fetchall()
I want to..
idlist=[1, 2, 3] ( I don't want to use FOR and APPEND because the
query have 2 million result and i want to speed)
It will always return a list of tuples, so
Martin v. Löwis wrote:
No, as Martin points out, Python trusts EVERY certificate, which of
course misses the whole point of certificates. Whatever is making
your program fail is something different.
Paul, are you sure for 100%. It is hard to belive.
Not sure how many confirmations you
On Mon, 2007-10-01 at 10:13 -0700, Abandoned wrote:
Also if i need a list id what can i do ?
aia.execute(SELECT id, w from list)
links=aia.fetchall()
I want to..
idlist=[1, 2, 3] ( I don't want to use FOR and APPEND because the
query have 2 million result and i want to speed)
The
I am trying to locate all lines in a suite of files with quoted strings of
particular lengths. A search pattern like r'.{15}' finds 15-character
strings very nicely. But I have some very long ones, and a pattern like
r'.{272}' fails miserably, even though I know I have at least one
Hi..
dict1={1: 4, 3: 5}... and 2 millions element
dict2={3: 3, 8: 6}... and 3 millions element
I want to combine dict1 and dict2 and i don't want to use FOR because
i need to performance.
I'm sorry my bed english.
King regards..
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 26, 1:07 am, Vinay Sajip [EMAIL PROTECTED] wrote:
On Sep 25, 9:15 pm, Kenneth Love [EMAIL PROTECTED] wrote:
I have a Pythonloggingconfig file that contains a RotatingFileHandler
handler. In the args key, I have hard-coded the log filename.
Everything
works great.
However, I find
On 2007-10-01, Arnaud Delobelle [EMAIL PROTECTED] wrote:
Finally, arithmetic would become very confusing if there were
three distinct numeric types; it already causes enough
confusion with two!
Scheme says: It's not that bad.
--
Neil Cerutti
I am free of all prejudices. I hate everyone
Summercool [EMAIL PROTECTED] writes:
I wonder which language allows you to change an argument's value?
[...]
What about Java and Perl?
Perl will let you change the value of a passed-in object directly.
Others have already answered about Java.
is there any way to prevent a function from
On Mon, 01 Oct 2007 10:24:39 -0700, Abandoned wrote:
Hi..
dict1={1: 4, 3: 5}... and 2 millions element dict2={3: 3, 8: 6}... and
3 millions element
I want to combine dict1 and dict2 and i don't want to use FOR because i
need to performance.
I'm sorry my bed english.
King regards..
dict1={1: 4, 3: 5}... and 2 millions element
dict2={3: 3, 8: 6}... and 3 millions element
I want to combine dict1 and dict2 and i don't want to use FOR because
i need to performance.
If you combine your dict1 and dict2 to become result_dict, what
should the result of result_dict[3] be?
On Mon, 2007-10-01 at 10:24 -0700, Abandoned wrote:
Hi..
dict1={1: 4, 3: 5}... and 2 millions element
dict2={3: 3, 8: 6}... and 3 millions element
I want to combine dict1 and dict2 and i don't want to use FOR because
i need to performance.
You'll have to be a bit more precise here about
Hi,
I need to help to install these two packages on debian. I want to know what
packages do I need to? I have installed fftw3,fftww2, sfftw2, atlas. Did I miss
anything? In what way I can install an optimized numpy and scipy, since my
project is very big and speed is important.
Thanks
On Oct 1, 10:24 am, Abandoned [EMAIL PROTECTED] wrote:
Hi..
dict1={1: 4, 3: 5}... and 2 millions element
dict2={3: 3, 8: 6}... and 3 millions element
I want to combine dict1 and dict2 and i don't want to use FOR because
i need to performance.
The dict.update approach is the fastest way to
On 1 Ekim, 20:41, Carsten Haese [EMAIL PROTECTED] wrote:
On Mon, 2007-10-01 at 10:24 -0700, Abandoned wrote:
Hi..
dict1={1: 4, 3: 5}... and 2 millions element
dict2={3: 3, 8: 6}... and 3 millions element
I want to combine dict1 and dict2 and i don't want to use FOR because
i need to
hi
I want understanding pictures colorfull
for examle colorfull or black-white
image.google.com there are understand it .Can I understand it
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Abandoned a écrit :
I'm sorry my bed english.
Time to go to bad, then !-)
(sorry, couldn't resist)
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Oct 01, 2007 at 11:16:49AM -0600, Daryl Lee wrote:
... But I have some very long ones, and a pattern like
r'.{272}' fails miserably, even though I know I have at least one
272-character string.
~python
Python 2.4.4 (#2, Apr 26 2007, 00:02:45)
[GCC 4.1.2 20061115 (prerelease) (Debian
Abandoned wrote:
On 1 Ekim, 20:41, Carsten Haese [EMAIL PROTECTED] wrote:
On Mon, 2007-10-01 at 10:24 -0700, Abandoned wrote:
Hi..
dict1={1: 4, 3: 5}... and 2 millions element
dict2={3: 3, 8: 6}... and 3 millions element
I want to combine dict1 and dict2 and i don't want to use FOR because
Daryl Lee [EMAIL PROTECTED] writes:
I am trying to locate all lines in a suite of files with quoted
strings of particular lengths. A search pattern like r'.{15}'
finds 15-character strings very nicely. But I have some very long
ones, and a pattern like r'.{272}' fails miserably, even though
On Mon, Oct 01, 2007 at 08:33:28PM +0200, Florian Schmidt wrote:
could you post your searchPattern?
sorry. now i see you already posted your search pattern!:)
r.{272}
--
Florian Schmidt // www.fastflo.de
--
http://mail.python.org/mailman/listinfo/python-list
bvukov at yahoo.com writes:
Looks like ( from PyThreadStage_Get error ) that you lost the GIL. You
probably
entered some C++ code and encapsulated you're work in the
Py_BEGIN_ALLOW_THREADS
code
Py_END_ALLOW_THREADS
but you're code is calling back the Python function, and you forgot
I want to total score..
For example
dict1={1: 4, 3: 5}... and 2 millions element
dict2={3: 3, 8: 6}... and 3 millions element
result should be dict3={1:4, 3:8, 8:6}
Well not sure how this will work with 5+ million elements, but here's
one stab at it:
dict1={1: 4, 3: 5}
wang frank wrote:
Hi,
I need to help to install these two packages on debian. I want to know
what packages do I need to? I have installed fftw3,fftww2, sfftw2,
atlas. Did I miss anything? In what way I can install an optimized numpy
and scipy, since my project is very big and speed is
Brad Johnson [EMAIL PROTECTED] writes:
I have a place where I execute a Python command that calls into C++
code which then in turn calls back into Python using the same
interpreter. I get a fatal error which is PyThreadStage_Get: no
current thread.
Does the C++ code call into the interpreter
On Mon, Oct 01, 2007 at 11:21:09AM -0700, [EMAIL PROTECTED] wrote:
hi
I want understanding pictures colorfull
for examle colorfull or black-white
image.google.com there are understand it.
i'm not sure if i understand your question. assuming you want to decide if
an image has only grayscale or
Since you are getting the regular expression pattern via an argument I
would first check that searchPattern is what you expect. Shells can do
funny things with arguments containing special characters. Also, is
it possible that the quoted strings in the files contain escapes? For
example if a
Python has a number of quoting 'options' to help with
times when one way may be more convenient than another.
In the world of shell scripting, I use a technique that I call minimal
quoting. It works like this:
foo=bar # No quotes needed
echo $foo # Also none needed
Steven W. Orr a écrit :
Python has a number of quoting 'options' to help with
times when one way may be more convenient than another.
In the world of shell scripting, I use a technique that I call minimal
quoting. It works like this:
foo=bar# No quotes needed
echo $foo
Ken Tilton a écrit :
Matthias Benkard wrote:
So this has nothing to
do with freedom in /any/ sense of the word, it has to do with a
political agenda opposed to the idea of private property.
Freedom is inherently political, you know. You're condemning the FSF
for being political,
Is this the correct way to slice the last 4 items from a list?
x = [1,2,3,4,5,6,7,8,9]
print x[-4:]
It works, but is it Pythonic?
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 158 matches
Mail list logo