=== Leipzig Python User Group ===
We will meet on Tuesday, June 12 at 8:00 p.m. at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).
Everybody who uses Python, plans to do so or is interested in
learning more about the language is
PyCon Finland 2012 Call For Proposals
PyCon Finland will take place October 22-23 in Espoo. The first day
will feature presentations and the second is reserved for sprints and
hands-on.
We are currently accepting proposals for both talks and sprints. If
you would like to give a presentation,
Greetings,
I have a class that implements the iterator protocol, and tokenises a
string into a series of tokens. As well as the token, it keeps track of
some information such as line number, source file, etc.
for tokens in Tokeniser():
do_stuff(token)
What I want is to be able to wrap the
Am 08.06.2012 18:02, schrieb Steve:
Well, I guess I was confused by the terminology. I thought there were
leaked objects _after_ a garbage collection had been run (as it said
collecting generation 2). Also, unreachable actually appears to mean
unreferenced. You live n learn...
Actually I
Yesterday Paid於 2012年6月10日星期日UTC+8上午6時44分44秒寫道:
I'm planning to learn one more language with my python.
Someone recommended to do Lisp or Clojure, but I don't think it's a
good idea(do you?)
So, I consider C# with ironpython or Java with Jython.
It's a hard choice...I like Visual
What GUI designer would come the closest to the way that Cocoa's
Interface Builder works? I.e. is there any one (cross-platform) that
allows to actually connect the GUI created directly to the code
and make it available live in an IDE?
This whole cycle of design GUI-generate code-add
What GUI designer would come the closest to the way that Cocoa's
Interface Builder works? I.e. is there any one (cross-platform) that
allows to actually connect the GUI created directly to the code
and make it available live in an IDE?
If you're developing on the Mac, PyObjC allows you
On 6/11/12 8:01 AM, Wolfgang Keller wrote:
Tkinter is imho honestly the very best argument if you want to make
potential new users turn their backs away from Python for good. Just
show them one GUI implemented with it and, hey, wait, where are you
running to...
Yes, Tkinter GUI's are very
On 11/06/2012 13:47, Kevin Walzer wrote:
Yes, Tkinter GUI's are very ugly.
http://www.codebykevin.com/phynchronicity-running.png
http://www.codebykevin.com/quickwho-main.png
At last we're getting to the crux of the matter. Provided that the GUI
is pretty who cares about picking
On 11 June 2012 08:51, Tom Harris celephi...@gmail.com wrote:
Greetings,
I have a class that implements the iterator protocol, and tokenises a
string into a series of tokens. As well as the token, it keeps track of
some information such as line number, source file, etc.
for tokens in
Dietmar Schwertberger n...@schwertberger.de wrote:
But the fact that Tkinter is still the standard GUI toolkit tells a lot
about the situation...
...
Sure, I know how to code GUIs. But the learning curve is too steep
for new users wanting to implement simple GUIs.
As is obvious to
Wolfgang Keller felip...@gmx.net writes:
This whole cycle of design GUI-generate code-add own code to
generated code-run application with GUI has always seemed very
un-pythonic to me. A dynamic, interpreted language should allow to work
in a more lively, direct way to build a GUI.
What about
Hi,
How to append the list of data in individual column of XL file, every
time from python script .
--
http://mail.python.org/mailman/listinfo/python-list
Le 11/06/2012 16:12, chebrian a écrit :
Hi,
How to append the list of data in individual column of XL file, every
time from python script .
In standard lib = module csv (ascii comma separated values)
In non standard = binary xl = module xlrd for reading and module xlwt
for writing
On Mon, Jun 11, 2012 at 1:51 AM, Tom Harris celephi...@gmail.com wrote:
Greetings,
I have a class that implements the iterator protocol, and tokenises a string
into a series of tokens. As well as the token, it keeps track of some
information such as line number, source file, etc.
So each
I'm very happy to announce
==
Stackless Python has a New Website
==
Due to a great effort of the Nagare people:
http://www.nagare.org/
and namely by the tremendous work of Alain Pourier,
Stackless Python has now a new
On 10.06.2012 23:27, Paul Rubin wrote:
Here is an exercise from the book that you might like to try in Python:
http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-24.html#%_idx_3894
It's not easy ;-)
I liked this exercize. At first I wrote my own merger.
def merge(*iterables):
I'm programming a project which will use a file to save parameters
needed by the program. There are already two previous file formats,
each of which can only be run by the version of the program which
created them. I'm trying to avoid that problem in the future. To do
that, I intend to use a
This is really up to your programming style, but I'm of the opinion that
defining all of the default values in one place keeps maintenance easier.
Of course, if it's done differently elsewhere in your code base, I would aim
for consistency instead.
Thanks,
Nick Cash
-Original Message-
On Sat, 9 Jun 2012, Yesterday Paid wrote:
I'm planning to learn one more language with my python.
Someone recommended to do Lisp or Clojure, but I don't think it's a
good idea(do you?)
So, I consider C# with ironpython or Java with Jython.
It's a hard choice...I like Visual studio(because my
On Mon, 11 Jun 2012, Tomasz Rola wrote:
If you want to delve into Java world, well, I consider Java an unbearably
ugly hog. When I was younger and fearless I programmed a bit in Java, but
nowadays, the only way I myself could swallow this would be to use some
other language on top of it
WHAT IS IT:
The Sybase module provides a Python interface to the Sybase relational
database system. It supports all of the Python Database API, version
2.0 with extensions.
The module is available here:
http://downloads.sourceforge.net/python-sybase/python-sybase-0.40.tar.gz
The module home
On 06/11/2012 02:37 PM, Dennis Carachiola wrote:
I'm programming a project which will use a file to save parameters
needed by the program. There are already two previous file formats,
each of which can only be run by the version of the program which
created them. I'm trying to avoid that
On 11/06/12 06:20, rusi wrote:
Hi Matěj! If this question is politically incorrect please forgive me.
Do you speak only one (natural) language -- English?
And if this set is plural is your power of expression identical in
each language?
I have written about that later ... no, I am a native
Am 11.06.2012 06:05, schrieb rusi:
If python is really a language maven's language then it does not do
very well:
- its not as object-oriented as Ruby (or other arcana like Eiffel)
- its not as functional as Haskell
- its not as integrable as Lua
- its not as close-to-bare-metal as C
- etc
Am 11.06.2012 14:01, schrieb Wolfgang Keller:
* Domain experts in fact who would need to implement loads of
software to help them get their work done but can't. And since there's
no budget for external developers, nothing get's ever done about this.
Well, typically or at least very often sooner
Am 11.06.2012 16:14, schrieb Anssi Saari:
Wolfgang Kellerfelip...@gmx.net writes:
This whole cycle of design GUI-generate code-add own code to
generated code-run application with GUI has always seemed very
un-pythonic to me. A dynamic, interpreted language should allow to work
in a more
Am 11.06.2012 16:09, schrieb Mark Roseman:
On the Tkinter front, I just want to reiterate two important points that
are not nearly as well known as they should be.
First, it is possible and in fact easy to do decent looking GUI's in
Tkinter, with the caveat that you do in fact have to do
Am 11.06.2012 01:15, schrieb Chris Angelico:
If you're a complete non-programmer, then of course that's an opaque
block of text. But to a programmer, it ought to be fairly readable -
Well, I can read the code.
But still I would not be able (or interested) to write C++/GTK code.
With my rusty
On Jun 10, 11:05 pm, rusi rustompm...@gmail.com wrote:
If python is really a language maven's language then it does not do
very well:
- its not as object-oriented as Ruby (or other arcana like Eiffel)
if it were object-oreiented as Ruby, then why not use Ruby?
- its not as functional as
On Jun 11, 9:09 am, Mark Roseman m...@markroseman.com wrote:
Second, there does exist at least one fairly good source of
documentation for new users wishing to do exactly this (according to
many, many comments I have received), though that documentation is
admittedly buried in a sea of
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I'm not sure about the __del__: if pypy's deferred garbage collection is not
enough to close self._file, how can a __del__ method help?
--
nosy: +amaury.forgeotdarc
___
Python tracker
Petr Kubat killm...@gmail.com added the comment:
I see. So calling help('help') should produce the documentation on the help()
function and typing help at the help prompt should print the help for the
prompt.
Tricky indeed. I think I'll look at it during the day after tomorrow and post
some
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - ncoghlan
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13857
___
Changes by Gökçen Eraslan gok...@pardus.org.tr:
--
nosy: +Gökçen.Eraslan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7300
___
___
Hynek Schlawack h...@ox.cx added the comment:
Fair enough, I'm not going to question your obviously superior judgement here.
:)
However, your patch currently breaks the test suite on any platform that uses
the fallback rmtree: You forgot the ignore_errors=False in the _rmtree_unsafe
New submission from Nick Coghlan ncogh...@gmail.com:
Running test_gdb on Fedora 17 produces a litany of the following error:
- warning: File /home/ncoghlan/devel/py3k/python-gdb.py auto-loading has been
declined by your `auto-load safe-path' set to
Nick Coghlan ncogh...@gmail.com added the comment:
In addition, we should probably report this as a test skip rather than as a
litany of test failures.
--
components: +Tests
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15043
New submission from Nick Coghlan ncogh...@gmail.com:
After upgrading from Fedora 16 - 17, my previously working trunk build is
getting the following error:
Building '_dbm' extension
gcc -pthread -fPIC -Wno-unused-result -g -O0 -Wall -Wstrict-prototypes
-DHAVE_NDBM_H -IInclude -I. -I./Include
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6f7afe25d681 by Nick Coghlan in branch 'default':
Close #13857: Added textwrap.indent() function (initial patch by Ezra
http://hg.python.org/cpython/rev/6f7afe25d681
--
nosy: +python-dev
resolution: - fixed
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
This has been fixed with the proper 2010 support
--
resolution: - fixed
status: open - closed
superseder: - Support Visual Studio 2010
___
Python tracker rep...@bugs.python.org
Nick Coghlan ncogh...@gmail.com added the comment:
Ezra (and anyone interested) may want to take a look at the checked in version
to see some of the changes I made while preparing the patch for commit.
- name changes and slight restructure as discussed on the review
- splitlines() invocation
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Brian, reopening this since the original issue isn't addressed: The path and
module attributes aren't part of the error repr
--
status: closed - open
___
Python tracker
New submission from Nick Coghlan ncogh...@gmail.com:
In working on #13857, I noticed that the current regex based implementation of
textwrap.dedent() is limited specifically to ASCII whitespace (tabs and spaces)
with Unix line endings (a line containing solely a Windows \r\n line ending
will
Changes by Nick Coghlan ncogh...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13857
___
Changes by Samuel John pyt...@samueljohn.de:
--
nosy: +samueljohn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11445
___
___
Python-bugs-list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 60a7b704de5c by Richard Oudkerk in branch '2.7':
Issue #10133: Make multiprocessing deallocate buffer if socket read fails.
http://hg.python.org/cpython/rev/60a7b704de5c
New changeset 5643697070c0 by Richard Oudkerk
Jason Tishler ja...@tishler.net added the comment:
I offer the attached patch for consideration. AFAICT, only the Makefile.pre.in
and build_ext.py changes are required. I included the makesetup change for
completeness and to be consistent with the other changes.
--
keywords: +patch
New submission from Marco den Otter marco.den.ot...@nspyre.nl:
In the file socket_connection.c on line 139 a cast to Py_ssize_t is missing for
the return value.
Is:
return res 0 ? res : ulength;
Should be
return res 0 ? (Py_ssize_t)res : (Py_ssize_t)ulength;
Now it can be possible that
Brett Cannon br...@python.org added the comment:
If you look at line 127 in importlib/_bootstrap.py you will see that it is an
os.open() call to open the bytecode file for exclusive writing. I'm willing to
bet the buildbot didn't have the directory writable or something and that
triggered the
Richard Oudkerk shibt...@gmail.com added the comment:
Thanks for the patch, I have applied it. (I don't think there was a problem
with the promotion rules because res was a never converted to UINT32.)
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
Richard Oudkerk shibt...@gmail.com added the comment:
The docs were patched in changeset 9fa52478b32b, so I will close.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Richard Oudkerk shibt...@gmail.com:
--
resolution: - later
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10037
___
Richard Oudkerk shibt...@gmail.com added the comment:
I don't think there is any problem here since you have control over which
arguments you pass to __init__.
Without a reason why that is not a solution I will eventually close the issue
as rejected.
--
resolution: - rejected
stage:
Richard Oudkerk shibt...@gmail.com added the comment:
Unless you have a reason why imap() does not solve the problem I will
eventually close the issue as rejected.
--
resolution: - rejected
stage: - committed/rejected
status: open - pending
___
Changes by Samuel John pyt...@samueljohn.de:
--
nosy: +samueljohn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14499
___
___
Python-bugs-list
andrew cooke and...@acooke.org added the comment:
hi - i'm the original author (may be using a different account). as far as i
remember, i raised this because it seemed relevant given the link i gave. if
you've looked at the issue and think your approach would work, or that this
should be
Ram Rachum r...@rachum.com added the comment:
I opened this issue 2 years ago, and I don't remember it being easily solvable
back then. But I've long forgotten what the problems were, and I've lost
personal interest in it, so I guess we'll just let it go.
--
status: pending - open
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset c2910971eb86 by Richard Oudkerk in branch 'default':
Issue #3518: Remove references to non-existent BaseManager.from_address()
http://hg.python.org/cpython/rev/c2910971eb86
--
nosy: +python-dev
Richard Oudkerk shibt...@gmail.com added the comment:
OK, I'll close.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8289
___
Richard Oudkerk shibt...@gmail.com added the comment:
I'll close then.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12897
___
Changes by Richard Oudkerk shibt...@gmail.com:
--
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3518
___
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
This was originally posted on python-dev, but I hope reposting it here will
make this issue easier to navigate.
With addition of fixed offset timezone class and the timezone.utc
instance [0], it is easy to get UTC time as
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This was fixed 3 hours ago, with issue10133 :)
--
nosy: +amaury.forgeotdarc
resolution: - out of date
status: open - closed
superseder: - multiprocessing: conn_recv_string() broken error handling
Éric Araujo mer...@netwok.org added the comment:
Just recommend the astimezone use in the docs
and recommend creating tz-aware instances in the first time (i.e. calling
now(utc) instead of utcnow()), +1.
--
nosy: +eric.araujo
___
Python tracker
New submission from Jason Tishler ja...@tishler.net:
The Cygwin build is failing during make install -- specifically, during the
regen step:
[snip]
mkdir
/home/jt/src/cygwin/cygwin-packages/1.7/python3-test/python-3.2.3-1/src/Python-3.2.3/Lib/plat-cygwin
cp
mattip matti.pi...@gmail.com added the comment:
Revised patch: changes to mailbox.py were not needed for pypy. Someone did a
good job with mailbox.py in stdlib 2.7.3
Now the patch only changes tests. The tests in 3.3 are very different, it seems
to me there is little that can be reused there.
R. David Murray rdmur...@bitdance.com added the comment:
Ah, good. I thought we'd fixed the open/close issues, but I could easily
believe we had missed something (especially in Python2).
Since the fp stuff is gone in 3, I'd be OK with just applying this.
--
versions: -Python 3.2,
Michael Driscoll m...@pythonlibrary.org added the comment:
Do I need to do anything else to those patches I submitted?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14446
___
Michael Driscoll m...@pythonlibrary.org added the comment:
I added the extra information to the docstring for the shuffle method and
attached a patch.
--
keywords: +patch
nosy: +michael.driscoll
Added file: http://bugs.python.org/file25938/shuffle.patch
Christopher Smith smi...@users.sourceforge.net added the comment:
On Tue, Jun 12, 2012 at 1:34 AM, Michael Driscoll
rep...@bugs.python.org wrote:
Michael Driscoll m...@pythonlibrary.org added the comment:
I added the extra information to the docstring for the shuffle method and
attached a
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
It could be a number of things which are keeping the file open, e.g.
* Windows indexing the volume for search
* Child process keeping files open (e.g. while copying log files - I can't tell
what you're actually copying)
You may need to
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
Hi Jason,
if you look in default rule you will see the same, so this relict specific
else case could be removed. Also in Lib/packaging/command/build_ext.py.
--
nosy: +rpetrov
___
Python
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
There is one long standing issue with length of the build path ...
--
nosy: +rpetrov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14599
Michael Driscoll m...@pythonlibrary.org added the comment:
I don't see the error, TimeoutExpired, documented either. At least the doc page
mentions CalledProcessError a couple times. Do we want to use the docstring for
CalledProcessError for the documentation page? Where on the page would it
Michael Driscoll m...@pythonlibrary.org added the comment:
I thought the ebook, Modern Tkinter for Busy Python Developers by Mark
Roseman was pretty good too:
http://www.amazon.com/Modern-Tkinter-Python-Developers-ebook/dp/B0071QDNLO/ref=sr_1_1?ie=UTF8qid=1339446684sr=8-1
--
nosy:
Roger Serwy roger.se...@gmail.com added the comment:
@Ramchandra: __name__ does not exist for many objects.
This issue with the sys.stdout.write encompasses a lot of other issues
involving the shortcomings of the RPCProxy object. The following code prevents
another prompt from appearing:
Brett Cannon br...@python.org added the comment:
Roumen, what issue is that? Do you have an issue # you can share?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14599
___
Andrew Svetlov andrew.svet...@gmail.com added the comment:
Michael Driscoll, thank you for patch.
Let's go on after Python 3.3 release — those patches should be applied for 3.4.
For now we need to wait.
--
___
Python tracker rep...@bugs.python.org
New submission from James Kyle b...@jameskyle.org:
This behavior is present on OS X 10.7 and framework builds.
In this case, the /Library/Python/version paths are included in every
install.
I would consider this behavior non-standard as in most manual python installs
only that installations
Ronald Oussoren ronaldousso...@mac.com added the comment:
This is intentional behavior, you can install packages you want to share
between python installations in /Library/Python instead of the regular
site-packages directory.
Macports could always patch their site.py file to avoid this.
Ronald Oussoren ronaldousso...@mac.com added the comment:
This was added in issue4865.
(The same behavior is present in 3.2 and 3.3)
--
resolution: - rejected
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15048
___
___
James Kyle b...@jameskyle.org added the comment:
Am I missing something or were the problems delineated in issue #4865 solvable
by simply sys.path.append(/Library/Python/2.7/site-packages)?
What would the process be for reopening this issue for discussion?
I'm not sure this is the right way
Ronald Oussoren ronaldousso...@mac.com added the comment:
Python installation are already not isolated: there is a per-user site-packages
directory on all platforms that is shared between all installations of a
particular python release. This directory is located in a subdirectory of
~/.local
James Kyle b...@jameskyle.org added the comment:
Fair enough. Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15048
___
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Brett, I reopened this because you said earlier that the test_reprlib
failure is due to a race condition where an invalidate_caches()
call is needed.
You're quite right of course that the new occurrence could be caused
by something
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
Reopening. given the uncertainty with #9527, this issue may result in getting
the TZ-aware local time support in stdlib sooner.
--
resolution: duplicate -
stage: committed/rejected - patch review
status: closed -
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14927
___
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
priority: normal - low
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14927
___
___
New submission from R. David Murray rdmur...@bitdance.com:
rdmurray@hey:~/python/p32cat bad.py
This line is just ascii
A second line for good measure.
This comment contains undecodable stuff: � or \\xe9 in pass� cannot
be decoded.
The last line above is in latin-1, with an é
Ned Deily n...@acm.org added the comment:
I have to admit that I'm not keen on this feature for the reasons James cited.
And I think the example of the shared user site directory is not a good
analogy. In that case, you, as a user, have more control over the presence and
contents of the
Alexander Belopolsky alexander.belopol...@gmail.com added the comment:
Two objections have been raised to the proposed datetime.localtime() function:
1. It offers the third subtly different way to obtain current time in datetime
module. The first two being provided by datetime.now() and
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
Added file: http://bugs.python.org/file25940/testtz.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9527
___
Ned Deily n...@acm.org added the comment:
A few more thoughts. The original impetus for this feature was Issue4865. The
use case there seem to be from users of Google App Engine back when it was
released using Python 2.5. It seems to me that the use of dmg installers for
Python packages has
James Henstridge ja...@jamesh.id.au added the comment:
One problem I can see with using a fixed offset tzinfo for localtime is that it
might confuse people when doing date arithmetic. For example:
d = datetime.localtime() + timedelta(days=7)
While it will give a correct answer as a
Eric Snow ericsnowcurren...@gmail.com added the comment:
Is this documented in whatsnew?
I'm not sure what has been (none of my patches have done so).
Also, I remember a discussion about making it public or not, but
don’t recall a decision.
Amaury brought it up in msg162127. His point was
97 matches
Mail list logo