Hi,
I'm pleased to announce CrunchyFrog 0.4.0.
CrunchyFrog is a SQL client mainly (but not solely) for the GNOME desktop.
Skip down for more information.
Download:
Visit the project page http://crunchyfrog.googlecode.com for more
information about requirements and pre-built binaries.
Changes
Greetings!
We are pleased to announce our third Scientific Computing with Python
webinar!
July 17th: Step-by-step Chaco
Next week, on Friday, July 17th, we'll be taking a look at Chaco, an
component of our open-source Enthought Tool Suite.
It seems that this powerful tool impressed
What is cx_Freeze?
cx_Freeze is a set of scripts and modules for freezing Python scripts
into executables in much the same way that py2exe and py2app do. It
requires Python 2.3 or higher since it makes use of the zip import
facility which was introduced in that version.
Where do I get it?
I'm proud to announce release 1.3.2 of Hatta wiki engine.
http://hatta.sheep.art.pl/
What is Hatta?
--
Hatta is a small wiki engine designed to run locally or via WSGI inside
a directory in a Mercurial repository. All the pages are normal text or
binary (for images and such) files,
=== Leipzig Python User Group ===
We will meet on Tuesday, July 14 at 8:00 pm at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).
Stefan Schwarzer will talk about his impressions from EuroPython.
Food and soft drinks are provided.
I'm looking for a tool that could be used in a pre-commit step to check that
only features available in a old python version are used, say python 2.3
for example.
Does any one know of one ?
--
http://mail.python.org/mailman/listinfo/python-list
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes:
In message 87hbxkm7n2@benfinney.id.au, Ben Finney wrote:
For this and other differences introduced in the Python 3.x series, see
URL:http://www.python.org/dev/peps/pep-3100/.
People never thank you for an RTFM response.
Does anyone have PyODE running on Python 2.6.2?
--V
--
http://mail.python.org/mailman/listinfo/python-list
Nikolaus I want to implement a caching data structure in Python that
Nikolaus allows me to:
Nikolaus 1. Quickly look up objects using a key
Nikolaus 2. Keep track of the order in which the objects are accessed
Nikolaus (most recently and least recently accessed one, not
On Jul 12, 2:01 pm, s...@pobox.com wrote:
Nikolaus I want to implement a caching data structure in Python that
Nikolaus allows me to:
Nikolaus 1. Quickly look up objects using a key
Nikolaus 2. Keep track of the order in which the objects are accessed
Nikolaus (most
On Sun, 12 Jul 2009 09:47:32 +0200, Baptiste Lepilleur blep...@free.fr wrote:
I'm looking for a tool that could be used in a pre-commit step to check that
only features available in a old python version are used, say python 2.3
for example.
Does any one know of one ?
Run your test suite with
Stef Mientki stef.mien...@gmail.com (SM) wrote:
SM Stef Mientki wrote:
hello,
when I''m working in a library,
and want to test some of the library functions,
I need to switch to a main application,
(which has a normal main-section)
and run that.
If the library is simply,
I add a
I am trying to convert a piece of code that I am using the thread module with
to the multiprocessing module.
The way that I have it set up is a chunk of code reads a text file and assigns
a dictionary key multiple values from the text file. I am using locks to write
the values to the
SM if __name__ == '__main__':
SMimport db_test
SMnew_globals = {}
SMnew_globals [ '__name__' ] = '__main__'
SMnew_globals [ '__file__' ] = 'not really valuable'
SMexecfile ( 'db_test.py', new_globals )
Why not:
import db_test
db_test.main()
I think that is what Aahz
In article mailman.3032.1247422431.8015.python-l...@python.org,
Stef Mientki stef.mien...@gmail.com wrote:
Stef deleted an attribution:
Why not:
import db_test
db_test.main()
Yes I tried that too, but it gives the following error: module object
not callable
You need to create a main()
On 7/12/2009 11:13 AM Stef Mientki said...
SM if __name__ == '__main__':
SMimport db_test
SMnew_globals = {}
SMnew_globals [ '__name__' ] = '__main__'
SMnew_globals [ '__file__' ] = 'not really valuable'
SMexecfile ( 'db_test.py', new_globals )
Why not:
implied
Hey everyone, I have this small piece of code that simply finds the
factors of a number.
import sys
def factor(n):
primes = (6*i+j for i in xrange(1, n) for j in [1, 5] if (i+j)%5 !
= 0)
factors = []
for i in [2, 3, 5]:
while n % i == 0:
n /= i
Im trying to get aquinted to python on bit more basic level and am
following socket and threading programming tutorials from these 2
addresses :
http://heather.cs.ucdavis.edu/~matloff/Python/PyNet.pdf
http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf
in this PyThreads file he sets up
OVERVIEW:
I am running a script on one machine that connects to a MySQL database
on another machine that is outside of our university's domain.
According to the administrator, network policies do not allow the
compute nodes to access machines outside of our university's domain.
COMPUTERS:
A =
On 7/12/2009 12:18 PM Riley Crane said...
OVERVIEW:
I am running a script on one machine that connects to a MySQL database
on another machine that is outside of our university's domain.
According to the administrator, network policies do not allow the
compute nodes to access machines outside of
On Jul 12, 2:11 pm, Cameron Pulsford cameron.pulsf...@gmail.com
wrote:
Hey everyone, I have this small piece of code that simply finds the
factors of a number.
import sys
def factor(n):
primes = (6*i+j for i in xrange(1, n) for j in [1, 5] if (i+j)%5 !
= 0)
factors = []
2009/7/12 Cameron Pulsford cameron.pulsf...@gmail.com:
My question is, is it possible to combine those two loops? The primes
generator I wrote finds all primes up to n, except for 2, 3 and 5, so I must
check those explicitly. Is there anyway to concatenate the hard coded list
of [2,3,5] and
On Sat, 11 Jul 2009 05:17:18 +0100, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
On Fri, 10 Jul 2009 13:25:49 +0100, Rhodri James
rho...@wildebst.demon.co.uk declaimed the following in
gmane.comp.python.general:
On Thu, 09 Jul 2009 11:52:44 +0100, m.reddy prasad reddy
reddy@gmail.com
Cameron Pulsford cameron.pulsf...@gmail.com (CP) wrote:
CP Hey everyone, I have this small piece of code that simply finds the
CP factors of a number.
Others have already given you advice to add the [2, 3, 5] to the
iterator (of which the primes.extend([2,3,5]) will not work). Please
allow me
En Sun, 12 Jul 2009 16:16:29 -0300, zayatzz alan.kesselm...@gmail.com
escribió:
while 1:
k = self.myclntsock.recv(1)
if k == : break
srvr.vlock.acquire()
srvr.v += k
Hello! I need to stream from a webcam in Linux and I need to be able
to analyze the video feed frame by frame with PIL. Currently my web-
cam (Quickcam Chat) only seems to work with GStreamer so a solution
using pygst would be preferred.
Thanks for your help,
Sam
--
zayatzz alan.kesselm...@gmail.com (z) wrote:
z Im trying to get aquinted to python on bit more basic level and am
z following socket and threading programming tutorials from these 2
z addresses :
z http://heather.cs.ucdavis.edu/~matloff/Python/PyNet.pdf
z
On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote:
Hello! I need to stream from a webcam in Linux and I need to be able
to analyze the video feed frame by frame with PIL. Currently my web-
cam (Quickcam Chat) only seems to work with GStreamer so a solution
using pygst would be preferred.
Dear Sirs And Madams :
it is an Acm programming competition Questions in year 2004-2005 .
could you please solve problems is question ? I Wan't C++ Source Code
program About this questions OR Problems . thank you for your prompt
attention to this matter
your faithfully.
Sparky wrote:
On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote:
Hello! I need to stream from a webcam in Linux and I need to be able
to analyze the video feed frame by frame with PIL. Currently my web-
cam (Quickcam Chat) only seems to work with GStreamer so a solution
using pygst would be
On Jul 12, 5:24 pm, Davood Vahdati davoodvahdati2...@gmail.com
wrote:
Dear Sirs And Madams :
it is an Acm programming competition Questions in year 2004-2005 .
could you please solve problems is question ? I Wan't C++ Source Code
program About this questions OR Problems . thank you for your
En Sun, 12 Jul 2009 19:24:57 -0300, Davood Vahdati
davoodvahdati2...@gmail.com escribió:
it is an Acm programming competition Questions in year 2004-2005 .
could you please solve problems is question ? I Wan't C++ Source Code
program About this questions OR Problems . thank you for your
On Sun, Jul 12, 2009 at 10:16 AM, Bjorn Meyerbjorn.m.me...@gmail.com wrote:
I am trying to convert a piece of code that I am using the thread module with
to the multiprocessing module.
The way that I have it set up is a chunk of code reads a text file and assigns
a dictionary key multiple
On Jul 12, 4:30 pm, David da...@pythontoo.com wrote:
Sparky wrote:
On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote:
Hello! I need to stream from a webcam in Linux and I need to be able
to analyze the video feed frame by frame with PIL. Currently my web-
cam (Quickcam Chat) only
On Jul 10, 5:10 pm, Tim Chase python.l...@tim.thechases.com wrote:
shutil.rmtree(filename)
File /usr/lib64/python2.5/shutil.py, line 178, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File /usr/lib64/python2.5/shutil.py, line 176, in rmtree
os.rmdir(path)
Cameron Pulsford wrote:
When you start a new thread, you should start a new thread and not
piggyback on an existing thread.
--
http://mail.python.org/mailman/listinfo/python-list
itertools.chain() did it, thanks!
As far as the primes generator, it does not generate any non-primes.
All primes (except 2, 3 and 5) are in the form (6*x + 1, 6*x + 5)
where is x is [1, 2, ..., n]. The only time it doesn't generate a
prime is when x + (1 or 5) % 5 == 0. Which is what that
Sparky wrote:
On Jul 12, 4:30 pm, David da...@pythontoo.com wrote:
Sparky wrote:
On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote:
Hello! I need to stream from a webcam in Linux and I need to be able
to analyze the video feed frame by frame with PIL. Currently my web-
cam (Quickcam Chat)
On Jul 13, 11:24 am, Cameron Pulsford cameron.pulsf...@gmail.com
wrote:
As far as the primes generator, it does not generate any non-primes.
All primes (except 2, 3 and 5) are in the form (6*x + 1, 6*x + 5)
where is x is [1, 2, ..., n]. The only time it doesn't generate a
prime is when
On Sun, Jul 12, 2009 at 9:24 PM, Cameron
Pulsfordcameron.pulsf...@gmail.com wrote:
As far as the primes generator, it does not generate any non-primes. All
primes (except 2, 3 and 5) are in the form (6*x + 1, 6*x + 5) where is x is
[1, 2, ..., n]. The only time it doesn't generate a prime is
On Jul 12, 7:38 pm, David da...@pythontoo.com wrote:
Sparky wrote:
On Jul 12, 4:30 pm, David da...@pythontoo.com wrote:
Sparky wrote:
On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote:
Hello! I need to stream from a webcam in Linux and I need to be able
to analyze the video feed
I read it on the haskell site in their sieves/prime wheel section, I
guess I misunderstood something. (east to do over there...) I did
verify it against established list of primes and other generators I've
written that use more normal methods, but I only hand verified it.
It is at least
On Jul 13, 1:17 pm, Cameron Pulsford cameron.pulsf...@gmail.com
wrote:
I read it on the haskell site in their sieves/prime wheel section, I
guess I misunderstood something. (east to do over there...) I did
verify it against established list of primes and other generators I've
written
lst = list()
(lst populated by async twisted deferred callbacks)
while True:
if len(lst) == SOME_NUMBER:
return lst
Q1: is this a common OK practice? I'm worried infinite loops hogs memory.
Q2: operating on list from threads (mostly appends) must be safe,
right
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I think a workable solution to the problem with the compiler
option would be to remove the option from the build_ext,
build_clib and config commands (plus any others, if there are
more) and only allow it on the build command.
The problem
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
resolution: - accepted
title: cygwincompiler regular expressions broken - cygwinccompiler regular
expressions broken
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6438
Abdulmonem dubais...@gmail.com added the comment:
As a user I experienced this bug. With python 3.1, the interpreter
terminate with fatal error:
Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: cp720
I think, this can be replicated by changing the active
New submission from Tarek Ziadé ziade.ta...@gmail.com:
Duplicate code, will create a single get_version() function in
distutils.util and make both commands use it + deprecate
cygwinccompiler.get_version and emxccompiler.get_version
--
assignee: tarek
components: Distutils
messages:
Tarek Ziadé ziade.ta...@gmail.com added the comment:
done in r73975, r73976
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6438
___
New submission from Lucas Prado Melo lucaspradom...@gmail.com:
--
$ cat raw_input_test.py
s = ''
try:
while True:
c = raw_input()
print c
s += c
except EOFError:
pass
$ python raw_input_test.py
test^D^Dtes
^D
$ python --version
Lucas Prado Melo lucaspradom...@gmail.com added the comment:
-1 on this one.
It is not a portable decision (only *nix OSes do have /dev/null).
Also, why would we want it as a default constant? The subprocess module
would need to open /dev/null every time. Despite that, I can't see how
would
Antoine Pitrou pit...@free.fr added the comment:
Once this patch is checked in, should we do an emergency 3.1.1 release?
--
nosy: +benjamin.peterson, pitrou
priority: - critical
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Lucas, Windows has a /dev/null-like device. I think Jean's suggestion is
reasonable, but it should be a special constant instead of creating a
file descriptor unconditionnally (that is, the file should only be open
if needed). Also, a patch should
Mark Dickinson dicki...@gmail.com added the comment:
I'm don't know whether this is really worth a 3.1.1, all by itself.
There's an easy workaround, which is for affected users to set their
locale properly.
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Tomas, your patch is breaking an existing API, which may break existing
uses (I'm not sure which ones, but people are doing lots of things with
Python). That's why I proposed a separate API, which has the additional
benefit of making things
Antoine Pitrou pit...@free.fr added the comment:
Can you include your unit test in your patch rather than as a separate
script? Existing unit tests are in Lib/test.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
New submission from Bosko Vukov bvu...@users.sourceforge.net:
For some reason functions PyDict_GetItem ( and PyDict_GetItemString )
don't try to check for '__missing__' on subclass, but
dict_subscript(dictobject *mp, register PyObject *key) does.
Only in this function a failure to get a value
Benjamin Peterson benja...@python.org added the comment:
Yes, this is intended. PyDict_GetItem already bypasses user __getitem__
methods, so it's logical it would do the same for __missing__.
--
nosy: +benjamin.peterson
resolution: - wont fix
status: open - closed
Benjamin Peterson benja...@python.org added the comment:
Fixed in r73981.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6429
___
Benjamin Peterson benja...@python.org added the comment:
Fixed in r73981.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2412
___
jkg pyt...@slashbot.com added the comment:
Combined patch as requested by pitrou.
(Sorry. This is my first submission.)
--
Added file: http://bugs.python.org/file14486/nlcre_full.patch
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1772794
___
___
New submission from Chris Perkins chrisperkin...@gmail.com:
Proposed feature - function definition expressions, superficially
similar to Ruby blocks.
To be proposed on Python-ideas list.
--
files: blocks.patch
keywords: patch
messages: 90455
nosy: grammati
severity: normal
status: open
Chris Perkins chrisperkin...@gmail.com added the comment:
Forgot to mention - the patch is very much incomplete. It breaks tests,
contains none of the work that would need to be done in the ast package,
etc. This is just a proof-of-concept.
--
___
New submission from Christoph Gohlke cgoh...@uci.edu:
On Windows Vista 64-bit, when running Python 2.6.2 (32 or 64 bit) from a
network share, e.g. \\Server\Share\python26\python.exe,
importing Tkinter fails with WindowsError: [Error 3] The system cannot
find the path specified. See session
New submission from Ezio Melotti ezio.melo...@gmail.com:
In Python 2.6, socket.error was changed to be a child class of IOError
[1]. IOError derives from EnvironmentError [2], and EnvironmentError
accepts a 2-tuple used to set the values of the errno and strerror
attributes respectively [3].
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Instead of using another source of third-party files, I suggest to use the
Windows
functions to generate the mapping.
The attached patch contains a script, genwincodec.py, which uses
MultiByteToWideChar
and generates a codec file.
I
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file14490/genwincodec-py3k.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1616979
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Added more regression tests in revision 73986 and revision 73987
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6267
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
In Py3.x, this fails:
%s.%s.%s-%s-%s % sys.version_info
The reason is that PyUnicode_Format() expects a real tuple, not a tuple
lookalike. The fix is to either have structseq inherit from tuple or to
modify
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
No, it seems that 2.5 has the same problem. The 'socket error' message is
raised in urllib.py. The socket module is innocent to me...
It appears that this file routinely raises IOErrors, passing various
arguments, which are not stored
Antoine Pitrou pit...@free.fr added the comment:
Sorry for giving you a slightly wrong indication. The email tests are
called from Lib/test/test_email.py, but it redirects to
Lib/email/test/*. In any case, there's no point in creating a separate
test script for such a detail, you should add your
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Confirmed here. Added a unit test.
--
assignee: - loewis
keywords: +needs review
nosy: +amaury.forgeotdarc, loewis
stage: - patch review
Added file: http://bugs.python.org/file14491/tk-unc.patch
New submission from Mitchell Model m...@acm.org:
I can't quite sort this out, because it's difficult to see what is
intended. The documentation of xml.etree.ElementTree (19.11 in the
Library doc) uses terms like iterator, tree iterator, iterable,
list in vague and perhaps not quite accurate
Changes by Jerry Chen je...@3rdengine.com:
--
nosy: +effbot
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6472
___
___
Python-bugs-list mailing
Changes by Benjamin Peterson benja...@python.org:
--
assignee: georg.brandl - effbot
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6472
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Yes, it looks to me like urllib is intentionally putting the 'socket
error' or 'url error' into the errno position in the IOError arguments.
Now that socket.error is an IOError, that at least seems wrong.
--
nosy: +r.david.murray
Changes by R. David Murray rdmur...@bitdance.com:
--
title: errno and strerror attributes incorrectly set on socket.error - errno
and strerror attributes incorrectly set on socket errors wrapped by urllib
___
Python tracker rep...@bugs.python.org
New submission from Iain Wade iw...@optusnet.com.au:
Test vectors are in the following draft rfc:
http://tools.ietf.org/html/draft-nystrom-smime-hmac-sha
The problem is that hmac.py has a hard-coded block size of 64, while
SHA-384 and SHA-512 have a 128-byte block size.
Suggested fix is
Martin v. Löwis mar...@v.loewis.de added the comment:
Amaury: your approach sounds fine to me, please apply.
--
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1616979
Martin v. Löwis mar...@v.loewis.de added the comment:
Reconsidering, I'd like to ask for two changes:
- please record the command(s) used to generate tables on Windows
somewhere, in either Tools/unicode/Makefile, or a separate batch file.
- please arrange for the doc string of the generated file
81 matches
Mail list logo