[issue11075] Turtle crash with IDLE on Mac OS X 10.6

2011-02-01 Thread Alex McNerney

Alex McNerney amcnerne...@yahoo.com added the comment:

Sorry to keep bothering, but running Python 2.7.1:88286 (maintenance) on 
ActiveState Tcl/Tk 8.5.9 causes the idle to hang when a simple script like:

x = raw_input(x: )
print x

is run. Is this a bug in Tcl/Tk? Looking in the logs I see several instances of 
setCanCycle: is deprecated.  Please use setCollectionBehavior instead Does 
this have any relevancy?

Relating to this, I don't know if it is proper to ask here, but is it possible 
to link Python to a specific Tcl/Tk when compiling from the source?

Note: When running Python 2.7.1 (32-bit from installer) with Tcl/Tk 8.4, the 
above problem is not there.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4735] An error occurred during the installation of assembly

2011-02-01 Thread Mads Darø Kristensen

Mads Darø Kristensen mad...@gmail.com added the comment:

I have this problem using Python 2.7.1 on a 32-bit Windows 7 PC.

--
nosy: +madsdk
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4735
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11084] Serialization of decimal.Decimal to XML-RPC

2011-02-01 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11084
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11085] expose _abcoll as collections.abc

2011-02-01 Thread Daniel Urban

Changes by Daniel Urban urban.dani...@gmail.com:


--
nosy: +durban

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11085
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8998] add crypto routines to stdlib

2011-02-01 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
nosy: +ncoghlan

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8998
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Now that I looked at the documentation 
(http://docs.python.org/library/turtle.html), I see that it is clear that 
Turtle is designed to work from IDLE *but*, as is noted, when using the module 
from within IDLE run with the -n switch, which means run IDLE without a 
subprocess.  What may not be so obvious is how to do that on Mac OS X.  
Double-clicking on IDLE.app launches it with default values including a 
subprocess and there is no straightforward to override those.  From a terminal 
shell, it is easy to start bin/idle:

   $ idle2.7 -n

although that has a few cosmetic disadvantages with bin/idle over IDLE.app (for 
example, the application name displayed is Python not IDLE).  It has aways 
been possible to launch an OS X GUI app from a shell command line using the 
open(1) command; as of OS X 10.6 it is now also possible to pass regular 
command line arguments to the application.  So the following would work in 10.6 
and probably be preferable:

   $ open -a /Applications/Python 2.7/IDLE.app --args -n

If you want to have a double-clickable application, a simple approach is to 
create a launcher application with AppleScript:

   $ osacompile -o 'IDLE-n.app' EOF
do shell script open -a '/Applications/Python 2.7/IDLE.app' --args -n
EOF

As someone not used to using Turtle and given the intended user base for 
Turtle, I wonder whether the current Turtle module documentation is sufficient 
on this point.  Two possible actions I could see are: (1) expanding the 
documentation to include a suggestion like the above to allow for an OS X 
clickable app; and/or (2) actually supplying such a simple no-subprocess app 
with the standard python.org installer distribution (or some other solution).  
How is this issue handled on Windows?  Is there a need to expand the 
documentation in general?
(adding Raymond to the nosy list)

--
nosy: +rhettinger
title: Turtle crash with IDLE on Mac OS X 10.6 - Using Turtle with IDLE on Mac 
OS X
versions: +Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7330] PyUnicode_FromFormat segfault

2011-02-01 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

I opened other tickets related to PyUnicode_FromFormatV:

 * #10833 :Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 
bytes is outdated
 * #10831: PyUnicode_FromFormatV() doesn't support %li, %lli, %zi
 * #10830: PyUnicode_FromFormatV(%c) doesn't support non-BMP characters on 
narrow build
 * #10829: PyUnicode_FromFormatV() bugs with % and %% format strings

(see also #10832: Add support of bytes objects in PyBytes_FromFormatV())

PyUnicode_FromFormatV() has now tests in test_unicode: issue_7330.diff should 
add new tests, at least to check that %20R doesn't crash.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7330
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11088] IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input

2011-02-01 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

As reported by Alex McNerney in Issue11075 msg127687:

... running Python 2.7.1:88286 (maintenance) [built from source] on 
ActiveState Tcl/Tk 8.5.9 causes the idle to hang when a simple script like:

x = raw_input(x: )
print x

is run. Is this a bug in Tcl/Tk? Looking in the logs I see several instances of 
setCanCycle: is deprecated.  Please use setCollectionBehavior instead Does 
this have any relevancy?

I can reproduce the problem using input with Cocoa Tk 8.5 and Python 3.2rc2 or 
raw_input with Python 2.7.1+.  It does not seem to happen with Carbon Tk 8.4.  
This may be related to Issue10940.  Investigating further for impact on 3.2.

--
assignee: ned.deily
components: IDLE, Macintosh
messages: 127691
nosy: amcnerney13, ned.deily
priority: critical
severity: normal
status: open
title: IDLE on OS X with Cocoa Tk 8.5 can hang waiting on input / raw_input
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11088
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

[Please don't add new topics to the same tracker issue.  As David mentioned, it 
would be better to ask for help on one of the user lists to be sure before 
opening an issue.  Besides the general python-list, there is an active OS X 
users list (pythonmac-sig) where you will find users of IDLE;  see 
http://www.python.org/community/sigs/

That said, to address your most recent message, that appears to indeed be a 
problem.  I've opened Issue11088 for it.  The setCanCycle: is deprecated 
messages are a harmless artifact; they should disappear in an upcoming 
maintenance release of ActiveState Tcl 8.5.]

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11022] locale.setlocale() doesn't change I/O codec, os.environ does

2011-02-01 Thread Steffen Daode Nurpmeso

Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:

Most of this is much too loud for a newbie who is about to read PEP 7 anyway.  
And if this community has chosen to try (?!?) not to break compatibility with 
code which does not have a notion of a locale setting (i.e. naively uses other 
code in that spirit), you know, then this is simply the way it is.  Thus: 
you're right.  I do agree with what you say, we here have a (8-bit) C++ library 
which does this in it's setup():

// Initialize those Locale variables we're responsible for
Locale::_ctype_cclass = Locale::_posix_cclass;
Locale::_ctype_ccase = Locale::_posix_ccase;

(Like i said: we here went completely grazy and avoid system libraries whenever 
possible and at least directly, doing the stuff ourselfs and only with 
syscalls.)

Besides that i would agree with me that unthreaded init, optional embeddor 
locale argument, cleanup of .getprefer...() and other drops of setlocale() 
are/would be good design decisions.  And of course: keeping the thing simple 
and understandable is a thing to keep in mind in respect to a normal user.

After the end (i have to excuse myself once again for a book):
I, f.e., opened an issue 11059 on saturday because the HG repo was (2.7 may 
still be) not cloneable, and i did so at selenic, too.  Notes on that:
- pitrou closed it because this tracker is of course for Python bugs.   (I 
asked him to decide - thanks.)
- The selenic people told me that i added my trace to a completely wrong issue. 
 (Just searched - that's more than shown in trace dump.)
- I've found out that many, *many* issues seem to have been created due to this 
repo failure at python.org (at selenic), and i've added a note that they 
possibly should include a prominent notice that people should look for most 
recent call last before creating a new one.  (I guess that most of these 
people are programmers - who else uses HG?)
- Conclusion: maybe even os.environ[]= == locale.setlocale() is not simple 
minded enough.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11022
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11079] Make OS X entry in Applications like that in Windows

2011-02-01 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

I agree that adding a link to the installed documentation set would be an 
improvement.  Currently, the only easy way to find it is within IDLE:  Help - 
Python Docs (or F1).  I'll propose an installer patch for that for 3.2.

-0.5 for removing the Extras directory.  Prior to Python 3.2, it contained the 
contents of the Demo directory.  For 3.2, the Demo directory was pruned and 
relocated to Tools, which had not previously been installed anywhere by OS X 
installers.  Also, there has been at least one request to make some of the 
contents of Tools available on OS X, i.e. unittestgui.  For those reasons, I 
added Tools under Extras for 3.2.  I agree that much of the contents is not 
particularly useful from, say, IDLE.  But the Python Launcher will run them 
under a command line and users can easily drag/drop any of onto a python 
command line in a terminal shell or just cd there and can also use the Finder's 
Get Info to change the application associated with them.  That said, the 
launching of Python scripts in OS X is currently is currently somewhat fragile 
and unintuitive (in the presence of multiple Python versions) and in need of 
some work post-3.2; see, for instance, Issue5262.  Due to OS X's multipl
 e personalities and interaction styles (Classic Mac, command line UNIX, 
X-based apps, etc), it's also difficult to assess exactly how the python.org 
installed Pythons are being used on OS X. My guess, though, is that a majority 
of our users these days primarily or exclusively use Python from a command line 
so it would be good to not neglect their needs.

The issue of uninstalling has come up before, most recently (IIRC) in 
Issue7107.  Unfortunately, the Mac/README file updated there is not installed.  
I would be +0.5 at looking into it further as time permits while recognizing 
that there would need to be caveats like potentially wiping out installed 
system-wide site-packages.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11079
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10227] Improve performance of MemoryView slicing

2011-02-01 Thread Stefan Behnel

Stefan Behnel sco...@users.sourceforge.net added the comment:

I've extracted and fixed the part of this patch that implements the slice 
object cache. In particular, PySlice_Fini() was incorrectly implemented. This 
patch applies cleanly for me against the latest py3k branch.

--
Added file: http://bugs.python.org/file20639/slice-object-cache.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10227
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Ned: I read the bits in the turtle docs about -n as meaning *if* you use -n 
*then* you should set this profile option (but if you don't, things should 
work).  I didn't go over the docs in detail, though, so maybe I'm misreading.  
Since you and I clearly don't know what we are talking about in detail, I'm 
adding Gregor and Alexander (the latter since he's clearly been using it) to 
nosy.

--
assignee: ned.deily - 
nosy: +belopolsky, gregorlingl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

It's clear from testing it and from some searches that -n is, in fact, required.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11079] Make OS X entry in Applications like that in Windows

2011-02-01 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I'm -0 on removing extras. Having extra's at this location makes it easier to 
discover them.

Adding a link to the documention is a good idea, it makes the documentation 
easier to use without starting IDLE.

Adding an uninstall option would be nice, but that requires significant work 
and is not something to be added before 3.2.   Adding an installer requires us 
to write a script that does the work because while OSX has an installer it 
doesn't have the corresponding uninstaller. Such a script should only be added 
after carefully testing it, there is a significant risk that bugs in the script 
could erase too much content.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11079
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Vasilis

New submission from Vasilis vasilis.vlachou...@cern.ch:

The ConfigParser class in 2.7 is almost 50 times slower than in the 2.6 which 
for large files it renders it almost unusable. Actually the speed decrease 
depends on the amount of the stored data

Results from test program:
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
on 3.5GHz Fedora14 64bit machine
ConfigParser 166.307140827
RawConfigParser 0.1887819767 

Python 2.6.4 (r264:75706, Jun  4 2010, 18:20:31)
on 3.0GHz Fedora13 64bit machine
ConfigParser 4.24494099617
RawConfigParser 0.172905921936

--
components: Extension Modules
files: ConfigParserTest.py
messages: 127699
nosy: vlachoudis
priority: normal
severity: normal
status: open
title: ConfigParser 50x slower in 2.7
type: performance
versions: Python 2.7
Added file: http://bugs.python.org/file20640/ConfigParserTest.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11089
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Ah, in that case I think the docs could be improved on that point.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10214] Misc/python-mode.el is out of date.

2011-02-01 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

Please ignore, testing roundup.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

I saw this post by Gregor: 
http://thread.gmane.org/gmane.comp.python.general/334881/focus=334996

I don't know applicable it still is on Windows.  But it does seem to be still 
true on OS X.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
assignee:  - lukasz.langa
nosy: +lukasz.langa

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11089
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Skip Montanaro

Changes by Skip Montanaro s...@pobox.com:


--
nosy: +skip.montanaro

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11089
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11090] Doc errors for unittest in Python 3.1

2011-02-01 Thread Michael Foord

New submission from Michael Foord mich...@voidspace.org.uk:

Looks like some unittest doc changes got incorrectly backported to Python 3.1.

For example the command line features using -m are new in 3.2 and don't work 
with 3.1:

http://docs.python.org/py3k/library/unittest.html#command-line-interface

--
assignee: michael.foord
components: Documentation
messages: 127703
nosy: michael.foord
priority: normal
severity: normal
status: open
title: Doc errors for unittest in Python 3.1
versions: Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11071] What's New review comments

2011-02-01 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11071
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11049] add tests for test.support

2011-02-01 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11049
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11091] Bug with reimport in pkg_resources

2011-02-01 Thread Сергей Чупраков

New submission from Сергей Чупраков sergey...@gmail.com:

import pkg_resources change path of already imported module
this break google appengine because It use google.__file__ to determine sdk 
directory.

Ubuntu 10.10
~/lib/google_appengine$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
 from appcfg import fix_sys_path
 fix_sys_path()
 import google
 google
module 'google' from 
'/home/schuprakov/lib/google_appengine/google/__init__.pyc'
 import pkg_resources
 google
module 'google' from '/usr/lib/pymodules/python2.6/google/__init__.pyc'
 


ls /usr/lib/pymodules/python2.6/google/
__init__.py  __init__.pyc  protobuf

--
messages: 127704
nosy: Сергей.Чупраков
priority: normal
severity: normal
status: open
title: Bug with reimport in pkg_resources
type: resource usage

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11091
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11091] Bug with reimport in pkg_resources

2011-02-01 Thread Сергей Чупраков

Changes by Сергей Чупраков sergey...@gmail.com:


--
components: +Build
versions: +Python 2.5, Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11091
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11091] Bug with reimport in pkg_resources

2011-02-01 Thread Сергей Чупраков

Changes by Сергей Чупраков sergey...@gmail.com:


--
components:  -Build

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11091
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11091] Bug with reimport in pkg_resources

2011-02-01 Thread Сергей Чупраков

Changes by Сергей Чупраков sergey...@gmail.com:


--
components: +Library (Lib)

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11091
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11092] Setup.cfg isn't packaged when running sdist

2011-02-01 Thread Julien Miotte

New submission from Julien Miotte miotte.jul...@gmail.com:

Operating System: Ubuntu Maverick
Version of Python: 2.6.6
Version of Distutils2: d355f123ac79

How to reproduce: Create a project bato with a setup.cfg, like this: 
[metadata]
name = bato
version = 1.0

Run:
$ python -m distutils2.run sdist
$ tar tf dist/bato-1.0.tar.gz

What happens: The archive doesn't contain the setup.cfg file.

--
assignee: tarek
components: Distutils2
messages: 127705
nosy: Julien.Miotte, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: Setup.cfg isn't packaged when running sdist
versions: 3rd party

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4833] Explicit directories for zipfiles

2011-02-01 Thread Thijs Triemstra

Changes by Thijs Triemstra li...@collab.nl:


--
nosy: +thijs

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4833
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11093] test_future - rename not-unittest files to redure regrtest.NOTTESTS an empty set

2011-02-01 Thread Sandro Tosi

New submission from Sandro Tosi sandro.t...@gmail.com:

Hi,
following up with issue10848, here's another preparatory step:

- renamed test_future[12].py to future_test[12].py, to clearly identify the as 
not unittest files (and so facilitate the autodiscovery introduction)
- adapted test_future.py for the filename change
- at last, make NOTTESTS and empty set.

I tested that both test_future only and the whole test suite are all ok.

Let me know if you need anything more or done different :) (f.e.: David, do you 
want the documentation bits in issue11031 added here instead?) 

Cheers,
Sandro

--
assignee: sandro.tosi
components: Tests
files: test_future.patch
keywords: patch
messages: 127706
nosy: r.david.murray, sandro.tosi
priority: low
severity: normal
stage: patch review
status: open
title: test_future - rename not-unittest files to redure regrtest.NOTTESTS an 
empty set
versions: Python 3.3
Added file: http://bugs.python.org/file20641/test_future.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11093
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11093] test_future - rename not-unittest files to make regrtest.NOTTESTS an empty set

2011-02-01 Thread Sandro Tosi

Changes by Sandro Tosi sandro.t...@gmail.com:


--
title: test_future - rename not-unittest files to redure regrtest.NOTTESTS an 
empty set - test_future - rename not-unittest files to make regrtest.NOTTESTS 
an empty set

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11093
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11091] Bug with reimport in pkg_resources

2011-02-01 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

pkg_resources is not from Python but setuptools; you probably installed it and 
forgot it was there. I would suggest you do your App Engine development using 
virtualenv to make sure that you are working in a clean environment.

--
nosy: +brett.cannon
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11091
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11085] expose _abcoll as collections.abc

2011-02-01 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

Importlib puts all of its ABCs in importlib.abc, so at least one package has 
already taken this approach.

I for one support the collections.abc idea.

--
nosy: +brett.cannon

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11085
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11092] Setup.cfg isn't packaged when running sdist

2011-02-01 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

You can add it to MANIFEST.in.

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

If OrderedDict is used, the test case quickly uses 8GB of memory. With
this change (I'm not suggesting this as a fix!), the timings are normal:


Index: Lib/ConfigParser.py
===
--- Lib/ConfigParser.py (revision 88298)
+++ Lib/ConfigParser.py (working copy)
@@ -92,6 +92,7 @@
 except ImportError:
 # fallback for setup.py which hasn't yet built _collections
 _default_dict = dict
+_default_dict = dict
 
 import re

--
nosy: +skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11089
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
versions: +Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11089
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Commenting-out the ``c.set(section,item#%d%(i),str(i))`` calls shows that 
that is not where the problem lies for the ConfigParser() class.
The issue seems confined to ConfigParser.get().

The  RawConfigParser() class doesn't seem to have the same issue.

Looking at the 2.7 code for ConfigParser.get() shows that it is doing a lot 
more than just getting.  For example, it does a full copy of defaults 
dictionary on every call !?

I'll look at it more shortly.

--
nosy: +rhettinger

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11089
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10918] **kwargs unnecessarily restricted in concurrent.futures 'submit' API

2011-02-01 Thread Brian Quinlan

Brian Quinlan br...@sweetapp.com added the comment:

Sorry for taking so long to reply - I was on holidays until today.

This is an incompatible API change (since people may be providing fn by 
keyword) so we should probably hold off until 3.3.

I also don't really like that the signature for submit will become less 
readable. And the fix is pretty trivial i.e. functools.partial.

So really I'm -0 on this. But if anyone cares enough, I'll happily review and 
apply patches that change the submit signature to the one that Adrian proposed.

def sugar(*args, **kw):
return args[0].submit(args[1], args[2:], kw)

--
resolution: wont fix - accepted
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10918
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11094] Runtime error

2011-02-01 Thread Yelena

New submission from Yelena k...@ucdavis.edu:

I've been using python to run some large database recently. 
I used dbfpy module to access some information stored in dbf format.
However, after 20hrs of running it gave me an error of :
Runtime Error!
This application has requested the Runtime to terminate it in an unusual 
way.Please contact the application's support team for more information.

The error popped out every time I ran them after 20 hrs. My prediction was that
it ran over its memory usage, since it has been accumulating the memory usage
when I was running the program. So I tried deleting/closing I/O immediately
after they were processed. However, such changes did not make any difference
in memory usage accumulation.

Could you please give me some advice in fixing problems like this?

Thank you.

--
components: Windows
files: test2
messages: 127711
nosy: yelenawu
priority: normal
severity: normal
status: open
title: Runtime error
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file20642/test2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11094
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11095] subprocess popen broken for bytes and backslash

2011-02-01 Thread kai zhu

New submission from kai zhu kai...@ugcs.caltech.edu:

noticed when trying to call grep w/ backslashes in regexp, in shell mode.
same behavior on python2.5  python3.2

in shell mode:
1. bytes is broken
2. 1st character after backslash is always silently truncated (with exception 
of '\\')

$ python3.2
Python 3.2rc1+ (py3k, Jan 24 2011, 15:00:02) 
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
 import subprocess
 subprocess.call(b'echo aa', shell = True) ## bytes broken
Traceback (most recent call last):
  File pseudosugar console, line 1, in module
  File /home/public/i486-pc-linux-gnu/lib/python3.2/subprocess.py, line 460, 
in call
return Popen(*popenargs, **kwargs).wait()
  File /home/public/i486-pc-linux-gnu/lib/python3.2/subprocess.py, line 736, 
in __init__
restore_signals, start_new_session)
  File /home/public/i486-pc-linux-gnu/lib/python3.2/subprocess.py, line 1175, 
in _execute_child
restore_signals, start_new_session, preexec_fn)
TypeError: Can't convert 'int' object to str implicitly
 subprocess.call('echo \aa', shell = True) ## backslash \
a
0
 subprocess.call('echo \\aa', shell = True) ## backslash \\
aa
0
 subprocess.call('echo \\\aa', shell = True) ## backslash \\\
a
0
 subprocess.call('echo aa', shell = True) ## backslash 
a
0
 subprocess.call('echo \aa', shell = True) ## backslash \
\a
0
 subprocess.call('echo \\aa', shell = True) ## backslash \\
a
0
 subprocess.call('echo \aa', shell = True)
\\\a
0

--
messages: 127714
nosy: kaizhu
priority: normal
severity: normal
status: open
title: subprocess popen broken for bytes and backslash
type: behavior
versions: Python 2.5, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11095
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11095] subprocess popen broken for bytes and backslash

2011-02-01 Thread kai zhu

Changes by kai zhu kai...@ugcs.caltech.edu:


--
components: +IO, Library (Lib)

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11095
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11089] ConfigParser 50x slower in 2.7

2011-02-01 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Attaching a patch that fixes the algorithmic atrocities by using the Chainmap 
recipe:

  http://code.activestate.com/recipes/305268-chained-map-lookups

--
keywords: +patch
Added file: http://bugs.python.org/file20643/configparser.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11089
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread Alex McNerney

Alex McNerney amcnerne...@yahoo.com added the comment:

Thank you so much for pointing out the -n option!
Hopefully the Tk 8.5.9 input issue will be solved soon enough.
Thank you both again.
I'm not sure if I'm supposed to or not, but I am marking this as closed – 
seeing as the main issue has been solved.

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread Alex McNerney

Alex McNerney amcnerne...@yahoo.com added the comment:

solved* or rather, a workaround has been found.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11096] Multiple turtle tracers

2011-02-01 Thread Alex McNerney

New submission from Alex McNerney amcnerne...@yahoo.com:

In Python 2.7 and 2.6 (only ones I have tried), there is a bug in the turtle 
module's tracer() function, when applying it to multiple turtles using the same 
value.

When two turtles are defined (to draw simultaneously), and both turtles' 
tracers are set to the same number, one of the turtles does not end up 
following its tracer value. (It's a little hard to explain...look at/try the 
sample code)

The following script will recreate this glitch:

from turtle import *

t1 = Turtle()
t2 = Turtle()

for t in turtles():
t.ht()
t.speed(0)
t.tracer(10)

t1.color(black)
t2.color(red)

for x in range(500):
t1.forward(x)
t2.forward(x)
t1.left(144.5)
t2.right(144.5)


--
messages: 127718
nosy: amcnerney13
priority: normal
severity: normal
status: open
title: Multiple turtle tracers
type: behavior
versions: Python 2.6, Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11096
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11075] Using Turtle with IDLE on Mac OS X

2011-02-01 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
assignee:  - ned.deily
resolution:  - works for me
stage:  - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com