[issue15003] make PyNamespace_New() public

2012-06-06 Thread Eric Snow

Eric Snow ericsnowcurren...@gmail.com added the comment:

I'll get to a pickle patch as soon as I can.  I also need to add a doc addition 
for PyNamespace_New() to the existing patch.

--

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



[issue15013] smtplib: add low-level APIs to doc?

2012-06-06 Thread Sandro Tosi

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

In the smtplib doc I read:

  Low-level methods corresponding to the standard SMTP/ESMTP commands HELP, 
RSET, NOOP, MAIL, RCPT, and DATA are also supported. Normally these do not need 
to be called directly, so they are not documented here. For details, consult 
the module code.

Well, I think the documentation should include also those low-level apis (maybe 
in a separate subsection).

From my POV, smtplib should implement the protocol, and give the programmers 
the tools to use the protocol as they prefers, and as a plus some companion 
methods to easy the most common operations.

I'm in need to use the low-level apis, and not finding them in the doc is a 
disservice to me (with my user hat on ;)) and just say go read the source is 
kinda rude and unexpected.

What do you think?

--
assignee: docs@python
components: Documentation
messages: 162395
nosy: docs@python, sandro.tosi
priority: normal
severity: normal
stage: needs patch
status: open
title: smtplib: add low-level APIs to doc?
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue15014] smtplib: allow to choose auth method on login()

2012-06-06 Thread Sandro Tosi

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

Hello,
I'm writing some tests from an MTA, and so I'm using smtplib. Sadly the login() 
method doesn't allow to choose the auth method to use (but it's selected from a 
static list compared with what's advertized from the MTA) while it would be 
useful to be able to choose the AUTH method to use.

--
components: Library (Lib)
messages: 162396
nosy: sandro.tosi
priority: normal
severity: normal
status: open
title: smtplib: allow to choose auth method on login()
versions: Python 3.3

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



[issue15011] Change Scripts to bin on Windows

2012-06-06 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

This was proposed a little while ago, and I have the impression that (after a 
lot of discussion) the proposal didn't achieve consensus on python-dev. Has 
that changed?

The patch itself doesn't touch the venv package, which would still create e.g. 
'Scripts' and 'Include' directories.

--

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



[issue7304] email.message.Message.set_payload and as_string given charset 'us-ascii' plus 8bit data produces invalid message

2012-06-06 Thread Dmitry Shachnev

Changes by Dmitry Shachnev mity...@gmail.com:


--
nosy: +mitya57

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



[issue15015] Access to non-existing future attribute in error path of futures

2012-06-06 Thread Éric Piel

New submission from Éric Piel e.a.b.p...@tudelft.nl:

concurrent.futures.Future.set_running_or_notify_cancel() has a reference to 
self.future, although Future has no future attribute. It's probably due to a 
copy/paste error. As it's in an error handling code path, most of the time the 
code is never used. Nevertheless it's worthy to fix it so that the right 
exception happens in case of error. This was detected by pylint.

Attaching a patch that fixes the error.

--
components: Library (Lib)
files: future-fix-attribute.patch
keywords: patch
messages: 162398
nosy: pieleric
priority: normal
severity: normal
status: open
title: Access to non-existing future attribute in error path of futures
versions: Python 3.4
Added file: http://bugs.python.org/file25844/future-fix-attribute.patch

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



[issue15016] [patch] add special case for latin messages in email.mime.text

2012-06-06 Thread Dmitry Shachnev

New submission from Dmitry Shachnev mity...@gmail.com:

(Follow-up to issue 14380)

The attached patch makes the email.mime.text.MIMEText constructor use the 
iso-8859-1 (aka latin-1) encoding for messages where all characters are in 
range(256). This also makes them use quoted-printable transfer encoding instead 
of base64.

So, the current algorithm of guessing encoding is as follows:

- all characters are in range(128) - encoding is us-ascii
- all characters are in range(256) - encoding is iso-8859-1 (aka latin-1)
- else - encoding is utf-8

--
components: email
messages: 162399
nosy: barry, mitya57, r.david.murray
priority: normal
severity: normal
status: open
title: [patch] add special case for latin messages in email.mime.text
type: behavior
versions: Python 3.2, Python 3.3

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



[issue15016] [patch] add special case for latin messages in email.mime.text

2012-06-06 Thread Dmitry Shachnev

Changes by Dmitry Shachnev mity...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file25845/issue_15016.patch

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



[issue15016] [patch] add special case for latin messages in email.mime.text

2012-06-06 Thread Dmitry Shachnev

Dmitry Shachnev mity...@gmail.com added the comment:

Updated the patch:

- Avoid using letter Ш in test, it's better to use chr(256) as the test case;
- Updated the comment in MIMEText constructor to reflect the new behaviour.

--
hgrepos: +135
Added file: http://bugs.python.org/file25846/issue_15016_v2.patch

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



[issue15016] [patch] add special case for latin messages in email.mime.text

2012-06-06 Thread Dmitry Shachnev

Changes by Dmitry Shachnev mity...@gmail.com:


--
hgrepos:  -135

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



[issue15016] [patch] add special case for latin messages in email.mime.text

2012-06-06 Thread Dmitry Shachnev

Changes by Dmitry Shachnev mity...@gmail.com:


Removed file: http://bugs.python.org/file25845/issue_15016.patch

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



[issue15017] threading.Lock documentation conflict

2012-06-06 Thread Petri Lehtinen

New submission from Petri Lehtinen pe...@digip.org:

In the description of section 16.2.2. Lock objects:

If an attempt is made to release an unlocked lock, a RuntimeError
will be raised.

In the description of Lock.release():

When invoked on an unlocked lock, a ThreadError is raised.

Apparently, ThreadError is the correct exception.

--
assignee: petri.lehtinen
components: Documentation, Library (Lib)
keywords: easy
messages: 162401
nosy: petri.lehtinen
priority: normal
severity: normal
status: open
title: threading.Lock documentation conflict
versions: Python 2.7

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



[issue15017] threading.Lock documentation conflict

2012-06-06 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


--
versions: +Python 3.2, Python 3.3

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



[issue15011] Change Scripts to bin on Windows

2012-06-06 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I think there were strong objections to changing the path of python.exe, but 
this is not proposed in this patch.

As for the patch itself, I think it lacks bdist_msi changes.

--

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



[issue12774] Warning -- multiprocessing.process._dangling was modified by test_multiprocessing

2012-06-06 Thread Richard Oudkerk

Richard Oudkerk shibt...@gmail.com added the comment:

The warning no longer appears for the 3.x branch.  I think it was changeset 
e54adf13e7a6 which only modified the test suite.  

I don't think it is worth backporting to 3.2.

--
nosy: +sbt
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - pending

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



[issue14982] pkgutil.walk_packages seems to not work properly on Python 3.3a

2012-06-06 Thread Paul Nasrat

Paul Nasrat pnas...@gmail.com added the comment:

We've taken a simpler approach avoiding walk_packages in pip which we'll 
release for 3.3. I'd say if pkgutil doesn't work correctly with importers  
loaders outside of it we probably should make that very explicit in the docs, 
and potentially consider deprecating walk_packages.

--

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



[issue13854] multiprocessing: SystemExit from child with non-int, non-str arg causes TypeError

2012-06-06 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
nosy: +sbt

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2012-06-06 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
nosy: +sbt

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



[issue10037] multiprocessing.pool processes started by worker handler stops working

2012-06-06 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
nosy: +sbt

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



[issue15018] Incomplete Python LDFLAGS and CPPFLAGS used for extension modules on posix

2012-06-06 Thread Marcus von Appen

New submission from Marcus von Appen m...@sysfault.org:

If CPython is built and installed with additional CPPFLAGS and/or LDFLAGS on a 
posix platform, those flags are not passed to C extension modules, leaving 
users (in the worst case) lost without the ability to build and install C 
extension modules, if the flags are important for detecting include files or 
linking.

Example:

* Python shall be built with GNU pthreads (--with-pth)
* The pth libs are not installed in any default location, CPP and LD know 
about, but somewhere else (e.g. /usr/local/lib/pth/ and /usr/local/include/pth/)
* Appropriate CPPFLAGS=-I/usr/local/include/pth and 
LDFLAGS=-L/usr/local/lib/pth are defined in the environment for the build.

Python gets built and installed. Result in /wherever/pythonX.X/config/Makefile:

...
OPT=
BASECFLAGS= -fno-strict-aliasing
CFLAGS= $(BASECFLAGS) -pipe $(OPT) $(EXTRA_CFLAGS)
...
CPPFLAGS=   -I. -IInclude -I$(srcdir)/Include -I/usr/local/include/pth
LDFLAGS=-L/usr/local/lib/pth
...

Invocation of python-config --cflags:

# python-config --cflags 
-I/whereever/include/pythonX.X -I/whereever/include/pythonX.X 
-fno-strict-aliasing -pipe 

Invocation of python-config --ldflags:

# python-config --ldflags 
-L/whereever/lib/pythonX.X/config -lpth -lutil -lm -lpythonX.X


So far, so problematic. Since Python.h incorporates pth.h, compiling something 
without defining the necessary CPPFLAGS manually will fail. Same for linking.

The issue is *not* limited to --with-pth, but to any CPPFLAGS/LDFLAGS settings 
that are necessary to get CPython to work on the target platform. One might 
argue that CPPFLAGS should go to CFLAGS, but that contradicts the purpose of 
CPPFLAGS and CFLAGS.

At least for posix-alike platforms (those for which _init_posix() is called in 
distutils/sysconfig.py), it is necessary that both, python-config as well as 
the distutils internals add the appropriate CPPFLAGS.

It might be argued that one should use CFLAGS instead of CPPFLAGS for such 
important additional flags, but what shall be done with LDFLAGS then?

--
assignee: eric.araujo
components: Build, Distutils, Extension Modules
messages: 162405
nosy: eric.araujo, marcusva, tarek
priority: normal
severity: normal
status: open
title: Incomplete Python LDFLAGS and CPPFLAGS used for extension modules on 
posix
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

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



[issue15013] smtplib: add low-level APIs to doc?

2012-06-06 Thread R. David Murray

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

Well, personally I just read the code, and didn't think anything of it.  I 
guess Python code is documentation to me :)

I don't see why there would be any objection to documenting them if you want 
to, though.  It's not like we're going to want to change that API.

--
nosy: +r.david.murray

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



[issue15013] smtplib: add low-level APIs to doc?

2012-06-06 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
components: +email
nosy: +barry

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



[issue15014] smtplib: add support for arbitrary auth methods

2012-06-06 Thread R. David Murray

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

Yes, this is a need I also ran into, but hadn't gotten around to submitting a 
bug for.  If we are going to do this, though, I think we should do it right and 
add the ability to support arbitrary login methods.  An example of one way to 
do this is the imaplib authobj protocol.  

As things are, I wound up implementing XYMCOOKIE login using the 
even-more-primitive-than-SMTP-cmd-level operation 'do_cmd'.

--
nosy: +r.david.murray
title: smtplib: allow to choose auth method on login() - smtplib: add support 
for arbitrary auth methods
type:  - enhancement

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



[issue15014] smtplib: add support for arbitrary auth methods

2012-06-06 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
components: +email
nosy: +barry
stage:  - needs patch

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



[issue15015] Access to non-existing future attribute in error path of futures

2012-06-06 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +bquinlan
stage:  - patch review
type:  - behavior
versions: +Python 3.3 -Python 3.4

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



[issue15016] Add special case for latin messages in email.mime.text

2012-06-06 Thread R. David Murray

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

Thanks for the patch.  I may not get to this until after the beta (or I might, 
you never know).

Could you submit a contributor agreement please?  
http://www.python.org/psf/contrib

--
stage:  - patch review
title: [patch] add special case for latin messages in email.mime.text - Add 
special case for latin messages in email.mime.text

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



[issue15017] threading.Lock documentation conflict

2012-06-06 Thread R. David Murray

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

There's already an issue for this (issue 14502), which is closed.  If the docs 
are still wrong you should probably reopen that one, since it has discussion of 
the issues involved.  (Note, however, that ThreadError is  RuntimeError, so 
technically the docs are not *in*correct :)

--
nosy: +r.david.murray
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - Document better what happens on releasing an unacquired lock

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



[issue15016] Add special case for latin messages in email.mime.text

2012-06-06 Thread Dmitry Shachnev

Dmitry Shachnev mity...@gmail.com added the comment:

Done, sent an e-mail to contribut...@python.org.

--

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



[issue15011] Change Scripts to bin on Windows

2012-06-06 Thread Brian Curtin

Brian Curtin br...@python.org added the comment:

Ah, sorry, the venv change wasn't included for some reason. New patch attached. 
I'll look into bdist_msi.

I don't remember there being strong thoughts against this, but I guess I'll go 
look again.

--
Added file: http://bugs.python.org/file25847/issue15011.diff

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



[issue10037] multiprocessing.pool processes started by worker handler stops working

2012-06-06 Thread Richard Oudkerk

Richard Oudkerk shibt...@gmail.com added the comment:

It is not clear to me how to reproduce the bug.

When you say letting the workers terminate themselves do mean calling 
sys.exit() or os._exit() in the submitted task?  Are you trying to get the 
result of a task which caused the worker to exit?

I'm not sure how the patch would change the current behaviour.

The following seems to work for me:

import sys, os
import multiprocessing as mp

if __name__ == '__main__':
p = mp.Pool(4, maxtasksperchild=5)
results = []

for i in range(100):
if i % 10 == 0:
results.append(p.apply_async(sys.exit))
else:
results.append(p.apply_async(os.getpid))

for i, res in enumerate(results):
if i % 10 != 0:
print(res.get())
else:
pass  # trying res.get() would block forever

--

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



[issue15019] Sting termination on Linux

2012-06-06 Thread Jānis

New submission from Jānis janis.judvai...@gmail.com:

test = Hi there :)
print len(test), test // Prints 11 Hi there :)
test = test.replace( , \x00)
print len(test), test // Prints 11 

On Windows '\x00' is same as ' ', but on linux string is terminated at first 
occurance of '\x00'. Results on problems with pySerial and binary data, so I 
can't replace '\x00' with ' '.

--
components: Interpreter Core
messages: 162413
nosy: jjanis
priority: normal
severity: normal
status: open
title: Sting termination on Linux
type: behavior
versions: Python 2.7

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



[issue15019] Sting termination on Linux

2012-06-06 Thread R. David Murray

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

Windows makes \x00 a space?  How odd.

This is the result for me on linux:

Python 2.7.3+ (2.7:1f5d2642929a, May 25 2012, 12:47:34) 
[GCC 4.5.3] on linux2
Type help, copyright, credits or license for more information.
 test = Hi there :)
 print len(test), test
11 Hi there :)
 test = test.replace( , \x00)
 print len(test), test
11 Hithere:)

Your comment on the last line of your example seems to have been truncated, so 
I'm not sure what you really saw.

--
nosy: +r.david.murray

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



[issue15018] Incomplete Python LDFLAGS and CPPFLAGS used for extension modules on posix

2012-06-06 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2012-06-06 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
nosy: +Yury.Selivanov

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



[issue14847] AttributeError: NoneType has no attribute 'utf_8_decode'

2012-06-06 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

I find that on Python 2.7.3 64-bit Windows, the deletion of locale.encodings is 
also necessary:

PS C:\Users\jaraco python
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on 
win32
Type help, copyright, credits or license for more information.
 import sys
 b'x'.decode('utf-8')
u'x'
 del sys.modules['encodings.utf_8'], sys.modules['encodings']
 b'x'.decode('utf-8')
u'x'
 ^Z

PS C:\Users\jaraco python
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on 
win32
Type help, copyright, credits or license for more information.
 import sys
 b'x'.decode('utf-8')
u'x'
 import locale; del locale.encodings   # Not necessary with python2
 del sys.modules['encodings.utf_8'], sys.modules['encodings']
 b'x'.decode('utf-8')
Traceback (most recent call last):
  File stdin, line 1, in module
  File c:\python\lib\encodings\utf_8.py, line 16, in decode
return codecs.utf_8_decode(input, errors, True)
AttributeError: 'NoneType' object has no attribute 'utf_8_decode'

--

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



[issue14982] pkgutil.walk_packages seems to not work properly on Python 3.3a

2012-06-06 Thread Brett Cannon

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

Yes, the docs should get updated and I will do that before Python 3.3 goes out 
the door.

--
assignee:  - brett.cannon

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



[issue14502] Document better what happens on releasing an unacquired lock

2012-06-06 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

The docs of 2.7 and 3.2 still first say that RuntimeError is raised, and then 
that a ThreadError is raised:

...
If an attempt is made to release an unlocked lock, a RuntimeError
will be raised.

...

Lock.release()
...
When invoked on an unlocked lock, a ThreadError is raised.


In 2.7 and 3.2, ThreadError is not a RuntimeError, so this is wrong.

--
nosy: +petri.lehtinen
resolution: fixed - 
status: closed - open

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



[issue14847] AttributeError: NoneType has no attribute 'utf_8_decode'

2012-06-06 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

We're encountering this issue in another application of ours. A scan of the 
code doesn't reveal any places where the encodings.* modules are removed, so 
I've created a wrapper I intend to apply to our application that might help us 
detect where the module is being deleted. I'm attaching it as 'wrapper.py'. It 
appears to work for the nominal case. I'll report back if it works (or doesn't) 
for a real-world case.

--
Added file: http://bugs.python.org/file25848/wrapper.py

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



[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2012-06-06 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Attached a patch against 3.2. It reflects the facts that pack_fstring and 
pack_fopaque are the same methd, and pack_string, pack_opaque and pack_bytes 
are the same method.

--
versions: +Python 3.2, Python 3.3 -Python 3.1

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



[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2012-06-06 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


Added file: http://bugs.python.org/file25849/issue9544.patch

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



[issue6160] Tkinter.Spinbox: fix for bbox and removed some uninteresting returns

2012-06-06 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I believe that for 3.x, Lib/lib-tk/Tkinter.py is not Lib/tkinter/__init__.py. I 
will put this on my list of issues to look at if possible.

--
nosy: +terry.reedy

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



[issue15015] Access to non-existing future attribute in error path of futures

2012-06-06 Thread Brian Quinlan

Changes by Brian Quinlan br...@sweetapp.com:


--
assignee:  - bquinlan

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



[issue3754] cross-compilation support for python build

2012-06-06 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


Added file: http://bugs.python.org/file25850/python-py3k-20120607-CROSS.patch

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



[issue3754] cross-compilation support for python build

2012-06-06 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

About Android issue with wchar still is applicable. So issue is not exactly as 
in 12010. Even with changed size  multi-byte functions just return return 
result like a byte array, i.e. without conversion.  Since python try to 
validate wide character at some point will be raised exception invalid 
multi-byte.
Only for test work around could be implement - fake conversion functions that 
just store char into wchar array and to use ascii codec.
Next is that lack of locale support and lack of locale information(structure is 
without members). 
Another issue is that loader does not resolve indirect dependencies. Many 
python modules depend from math library but are not linked with it and math 
functions are resolved later. This does not work on android and those modules 
must be explicitly linked to math library.
Also posix semaphores must be disabled.

As result python 3k regression tests except those that require locale support 
or ctype will pass.

--

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



[issue3754] cross-compilation support for python build

2012-06-06 Thread Alexis Metaireau

Changes by Alexis Metaireau ale...@notmyidea.org:


--
nosy:  -alexis

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



[issue3871] cross and native build of python for mingw32 with packaging

2012-06-06 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

Also include mingw-w64 fixes - check for structure REPARSE_DATA_BUFFER, use 
lower case names of some headers . set_abort_behavior. I prefer to exclude use 
of parse_off_t so that functionality to be to same. Use of relict alarm 
function is not excluded as one of the test will fail as test require SIGALARM 
support.

--
Added file: http://bugs.python.org/file25851/python-py3k-20120607-MINGW.patch

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



[issue3871] cross and native build of python for mingw32 with packaging

2012-06-06 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

Correction: Use of relict alarm function is not excluded even failure in one of 
tests - the test is run if exist alarm function but require in addition 
SIGALARM attribute.

--

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



[issue3871] cross and native build of python for mingw32 with packaging

2012-06-06 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

Ray , about python cygwin/mingw compiler classes exists other requests - use 
cygwin class instead unix compiler, remove relict checks  : nocygwin and etc. 
but without progress. 

About merge of getpath sources - issue is 9654.

--

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



[issue15020] Poor default value for progname

2012-06-06 Thread Joshua Cogliati

New submission from Joshua Cogliati jrinc...@gmail.com:

In Python/pythonrun.c the following definition exists:
static wchar_t *progname = Lpython;

This is then used by Py_GetProgramName which is used by calculate_path in 
Modules/getpath.c 

Since in python 3, the default executable is python3, and not python, when 
calculate_path searches for python it will find where python 2 is installed 
instead of where python3 is installed.  This is the error message that this 
causes:

Could not find platform independent libraries prefix
Could not find platform dependent libraries exec_prefix
Consider setting $PYTHONHOME to prefix[:exec_prefix]

I recommend that line be changed to:
static wchar_t *progname = Lpython3;

since that is the default executable name.

For my purposes (which is making an executable that embedds python 3), I was 
able to work around this by calling: 
Py_SetProgramName(Lpython3);
before
Py_Initialize();

--
messages: 162425
nosy: Joshua.Cogliati
priority: normal
severity: normal
status: open
title: Poor default value for progname
type: behavior
versions: Python 3.2

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



[issue15020] Poor default value for progname

2012-06-06 Thread Joshua Cogliati

Joshua Cogliati jrinc...@gmail.com added the comment:

Here is a part of an strace where Python fails to find python3:
(This would work if progname=Lpython3 )
...
23249 stat(/opt/python/3.2.2.3/bin/python, 0x7fff2881cbf0) = -1 ENOENT 
(No such file or directory)
23249 readlink(/usr/local/bin/python, /usr/bin/python, 4096) = 15
23249 readlink(/usr/bin/python, python2.7, 4096) = 9
23249 readlink(/usr/bin/python2.7, 0x7fff2881bb70, 4096) = -1 EINVAL (Invalid 
argument)
23249 stat(/usr/bin/Modules/Setup, 0x7fff2881cbf0) = -1 ENOENT (No such file 
or directory)
23249 stat(/usr/bin/lib/python3.2/os.py, 0x7fff2881cbf0) = -1 ENOENT (No such 
file or directory)
23249 stat(/usr/bin/lib/python3.2/os.pyc, 0x7fff2881cbf0) = -1 ENOENT (No 
such file or directory)
23249 stat(/usr/lib/python3.2/os.py, 0x7fff2881cbf0) = -1 ENOENT (No such 
file or directory)
23249 stat(/usr/lib/python3.2/os.pyc, 0x7fff2881cbf0) = -1 ENOENT (No such 
file or directory)
23249 stat(/lib/python3.2/os.py, 0x7fff2881cbf0) = -1 ENOENT (No such file or 
directory)
23249 stat(/lib/python3.2/os.pyc, 0x7fff2881cbf0) = -1 ENOENT (No such file 
or directory)
23249 write(2, Could not find platform independ..., 55) = 55
...
$ which python3
/opt/python/3.2.2.3/bin/python3

--

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



[issue14627] Fatal Python Error when Python startup is interrupted by CTRL+c

2012-06-06 Thread STINNER Victor

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

 Hmm, I've managed to produce the error with 3.1:

Oh oh, I thought that importlib changed the behaviour, but I'm wrong. importlib 
doesn't change anything so I'm closing the issue as invalid.

--
resolution:  - invalid
status: open - closed

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



[issue14990] detect_encoding should fail with SyntaxError on invalid encoding

2012-06-06 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

It should raise a SyntaxError, if coding is 'utf8'.
I don't agree with the last patch proposed.

If the import report a SyntaxError, 'tokenize' should do the same.

$ ./python Lib/test/bad_coding2.py
  File Lib/test/bad_coding2.py, line 1
SyntaxError: encoding problem: utf-8

and it complies strictly with PEP263.

--

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



[issue14990] detect_encoding should fail with SyntaxError on invalid encoding

2012-06-06 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


Removed file: http://bugs.python.org/file25825/detect_encoding.patch

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



[issue14990] detect_encoding should fail with SyntaxError on invalid encoding

2012-06-06 Thread STINNER Victor

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

Oops, I didn't want to attach my patch to the issue. Mine is wrong, whereas 
yours is the right fix :-)

--

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



[issue15003] make PyNamespace_New() public

2012-06-06 Thread STINNER Victor

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

It would be nice to have a minimum documentation :-) What is the kwds 
parameter? What are attributes of the object?

--
nosy: +haypo

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



[issue15006] Allow equality comparison between naive and aware datetime objects

2012-06-06 Thread STINNER Victor

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

Hum, can you please explain your change? If it is explained on python-dev, can 
you add a link to the email?

You should documentation the behaviour change in the documentation of the 
datetime module.

You chose Python 3.4, do you mean that such change is too late for Python 3.3?

--
nosy: +haypo

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



[issue15021] xmlrpc server hangs

2012-06-06 Thread Abhishek Singh

New submission from Abhishek Singh abhishekrsi...@gmail.com:

Hi Terry,

I am running into a xmlrpc server issue where it just hangs.

  9.914048127.0.0.1 - 127.0.0.1TCP 52327  8012 [SYN] Seq=0 Win=32792 
Len=0 MSS=16396 TSV=3131436173 TSER=0 WS=6

  00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00   ..E.
0010  00 3c 27 64 40 00 40 06 15 56 7f 00 00 01 7f 00   .'d@.@..V..
0020  00 01 cc 67 1f 4c ee eb cb e9 00 00 00 00 a0 02   ...g.L..
0030  80 18 41 d1 00 00 02 04 40 0c 04 02 08 0a ba a5   ..A.@...
0040  ec 8d 00 00 00 00 01 03 03 06 ..

  9.914060127.0.0.1 - 127.0.0.1TCP 8012  52327 [SYN, ACK] Seq=0 Ack=1 
Win=32768 Len=0 MSS=16396 TSV=3131436173 TSER=3131436173 WS=6

  00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00   ..E.
0010  00 3c 00 00 40 00 40 06 3c ba 7f 00 00 01 7f 00   ...@.@
0020  00 01 1f 4c cc 67 0e c1 e9 95 ee eb cb ea a0 12   ...L.g..
0030  80 00 a2 4d 00 00 02 04 40 0c 04 02 08 0a ba a5   ...M@...
0040  ec 8d ba a5 ec 8d 01 03 03 06 ..

  9.914070127.0.0.1 - 127.0.0.1TCP 52327  8012 [ACK] Seq=1 Ack=1 
Win=32832 Len=0 TSV=3131436173 TSER=3131436173

  00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00   ..E.
0010  00 34 27 65 40 00 40 06 15 5d 7f 00 00 01 7f 00   .4'e@.@..]..
0020  00 01 cc 67 1f 4c ee eb cb ea 0e c1 e9 96 80 10   ...g.L..
0030  02 01 89 70 00 00 01 01 08 0a ba a5 ec 8d ba a5   ...p
0040  ec 8d ..

  9.914123127.0.0.1 - 127.0.0.1TCP 52327  8012 [PSH, ACK] Seq=1 Ack=1 
Win=32832 Len=141 TSV=3131436173 TSER=3131436173

  00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00   ..E.
0010  00 c1 27 66 40 00 40 06 14 cf 7f 00 00 01 7f 00   ..'f@.@.
0020  00 01 cc 67 1f 4c ee eb cb ea 0e c1 e9 96 80 18   ...g.L..
0030  02 01 fe b5 00 00 01 01 08 0a ba a5 ec 8d ba a5   
0040  ec 8d 50 4f 53 54 20 2f 20 48 54 54 50 2f 31 2e   ..POST / HTTP/1.
0050  30 0d 0a 48 6f 73 74 3a 20 6c 6f 63 61 6c 68 6f   0..Host: localho
0060  73 74 3a 38 30 31 32 0d 0a 55 73 65 72 2d 41 67   st:8012..User-Ag
0070  65 6e 74 3a 20 78 6d 6c 72 70 63 6c 69 62 2e 70   ent: xmlrpclib.p
0080  79 2f 31 2e 30 2e 31 20 28 62 79 20 77 77 77 2e   y/1.0.1 (by www.
0090  70 79 74 68 6f 6e 77 61 72 65 2e 63 6f 6d 29 0d   pythonware.com).
00a0  0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74   .Content-Type: t
00b0  65 78 74 2f 78 6d 6c 0d 0a 43 6f 6e 74 65 6e 74   ext/xml..Content
00c0  2d 4c 65 6e 67 74 68 3a 20 39 38 0d 0a 0d 0a  -Length: 98

  9.914130127.0.0.1 - 127.0.0.1TCP 8012  52327 [ACK] Seq=1 Ack=142 
Win=33856 Len=0 TSV=3131436173 TSER=3131436173

  00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00   ..E.
0010  00 34 05 1b 40 00 40 06 37 a7 7f 00 00 01 7f 00   .4..@.@.7...
0020  00 01 1f 4c cc 67 0e c1 e9 96 ee eb cc 77 80 10   ...L.g...w..
0030  02 11 88 d3 00 00 01 01 08 0a ba a5 ec 8d ba a5   
0040  ec 8d ..

  9.914171127.0.0.1 - 127.0.0.1TCP 52327  8012 [PSH, ACK] Seq=142 
Ack=1 Win=32832 Len=98 TSV=3131436173 TSER=3131436173

  00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00   ..E.
0010  00 96 27 67 40 00 40 06 14 f9 7f 00 00 01 7f 00   ..'g@.@.
0020  00 01 cc 67 1f 4c ee eb cc 77 0e c1 e9 96 80 18   ...g.L...w..
0030  02 01 fe 8a 00 00 01 01 08 0a ba a5 ec 8d ba a5   
0040  ec 8d 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d   ..?xml version=
0050  27 31 2e 30 27 3f 3e 0a 3c 6d 65 74 68 6f 64 43   '1.0'?.methodC
0060  61 6c 6c 3e 0a 3c 6d 65 74 68 6f 64 4e 61 6d 65   all.methodName
0070  3e 69 6e 66 6f 3c 2f 6d 65 74 68 6f 64 4e 61 6d   info/methodNam
0080  65 3e 0a 3c 70 61 72 61 6d 73 3e 0a 3c 2f 70 61   e.params./pa
0090  72 61 6d 73 3e 0a 3c 2f 6d 65 74 68 6f 64 43 61   rams./methodCa
00a0  6c 6c 3e 0a   ll.

  9.914177127.0.0.1 - 127.0.0.1TCP 8012  52327 [ACK] Seq=1 Ack=240 
Win=33856 Len=0 TSV=3131436173 TSER=3131436173

  00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00   ..E.
0010  00 34 05 1c 40 00 40 06 37 a6 7f 00 00 01 7f 00   .4..@.@.7...
0020  00 01 1f 4c cc 67 0e c1 e9 96 ee eb cc d9 80 10   ...L.g..
0030  02 11 88 71 00 00 01 01 08 0a ba a5 ec 8d ba a5   ...q
0040  ec 8d ..


Client sent a request, and server just hangs here

When I look at the server, it is stuck here:

(gdb) bt
#0  0x00310424 in __kernel_vsyscall ()
#1  0x003df758 in recv () from /lib/libpthread.so.0
#2  0x00dbbca5 in sock_recv_guts (s=0xb7489890, cbuf=value optimized out, 
len=8192, flags=0) at 
/home/shankar/python/Python-2.7.3/Modules/socketmodule.c:2361
#3  0x00dbbee6 in sock_recv (s=0xb7489890, args=0xb746780c) at 

[issue9247] imp.reload() doesn't take import lock

2012-06-06 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

I just ran Antoine's test against the latest 3.3a4 build and received this:

lock held = False
lock held = False

Is this issue still relevant given Brett's work on re-implementing import in 
pure Python?

--
nosy: +serwy
status: open - pending

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

You are already in a Python shell.  Type in import idlelib.idle to launch 
IDLE.

--

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Maureen Cuomo

Maureen Cuomo mcu...@prestonhs.org added the comment:

OK. I did that. The idle window opened. I opened a new window to create a
file; save the file in my usual directory and the same thing happened. The
swirling circle and the message that python.exe has stopped working.
Maureen

On Wed, Jun 6, 2012 at 8:38 PM, Roger Serwy rep...@bugs.python.org wrote:


 Roger Serwy roger.se...@gmail.com added the comment:

 You are already in a Python shell.  Type in import idlelib.idle to
 launch IDLE.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue14996
 ___


--

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Did any messages appear in the Python shell?

--

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Maureen Cuomo

Maureen Cuomo mcu...@prestonhs.org added the comment:

No. the window becomes 'faded' it is not reponding
Maureen

On Wed, Jun 6, 2012 at 8:51 PM, Roger Serwy rep...@bugs.python.org wrote:


 Roger Serwy roger.se...@gmail.com added the comment:

 Did any messages appear in the Python shell?

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue14996
 ___


--

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

How are you using the open dialog to navigate to your usual directory?

--

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Maureen Cuomo

Maureen Cuomo mcu...@prestonhs.org added the comment:

File , save as, libraries, documents - then I save the file there. No other
folder right now.
Maureen

On Wed, Jun 6, 2012 at 9:01 PM, Roger Serwy rep...@bugs.python.org wrote:


 Roger Serwy roger.se...@gmail.com added the comment:

 How are you using the open dialog to navigate to your usual directory?

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue14996
 ___


--

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



[issue15006] Allow equality comparison between naive and aware datetime objects

2012-06-06 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

On Wed, Jun 6, 2012 at 7:32 PM, STINNER Victor rep...@bugs.python.org wrote:
 Hum, can you please explain your change? If it is explained on python-dev, 
 can you add a link to the email?

Please see http://mail.python.org/pipermail/python-dev/2012-June/119933.html

I don't know what to add to the title the issue.  I'll see what needs
to be done in terms of documentation and will propose a NEWS entry.

--
nosy: +Alexander.Belopolsky

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

 File , save as, libraries, documents - then I save the file there.

Ok, I agree now that this seems to be a duplicate of #12988
I will make a note there that another user had the same problem.

--
resolution:  - duplicate
status: open - closed
superseder:  - Tkinter File Dialog crashes on Win7 when saving to Documents 
Library

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Maureen Cuomo

Maureen Cuomo mcu...@prestonhs.org added the comment:

So now what happens?
Maureen

On Wed, Jun 6, 2012 at 9:21 PM, Terry J. Reedy rep...@bugs.python.orgwrote:


 Terry J. Reedy tjre...@udel.edu added the comment:

  File , save as, libraries, documents - then I save the file there.

 Ok, I agree now that this seems to be a duplicate of #12988
 I will make a note there that another user had the same problem.

 --
 resolution:  - duplicate
 status: open - closed
 superseder:  - Tkinter File Dialog crashes on Win7 when saving to
 Documents Library

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue14996
 ___


--

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Further discussion of this issue will be under Issue12988. We're working on 
finding a solution.

--
resolution: duplicate - 
status: closed - open

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



[issue9247] imp.reload() doesn't take import lock

2012-06-06 Thread Eric Snow

Eric Snow ericsnowcurren...@gmail.com added the comment:

Yeah, imp.reload() is pure Python now (Lib/imp.py), a simple wrapper around 
module.__loader__.load_module(), which does not make use of any import locks.  
Having it do so, however, may not be feasible as I'd expect it to mean having 
load_module() handle the locking.  Not sure if it's worth it.

The other issue is that the True reported by Antoine turned into False for you 
under 3.3a4.  This is because of issue 9260 (A finer grained import lock).  
The global import lock represented in the imp module is now used only long 
enough to create a lock specific to the module currently being imported.  So 
it's been released by the time the module is actually imported.  (see 
Lib/importlib/_bootstrap.py)

--
nosy: +eric.snow
status: pending - open

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Sorry for the re-open. I submitted an old form.

--
resolution:  - duplicate
status: open - closed

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Maureen, as I explain on #12988, I believe that this was a tcl/tk problem that 
was fixed by the recent release of version 8.5.11 (last March). The Windows 
installer for Python 3.3.0a4 release (a week ago) seems to have solved the 
problem for me. So give that a try.

Martin or anyone else: is the same tcl/tk upgrade going into future 3.2 and 2.7 
releases?

--

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



[issue12988] Tkinter File Dialog crashes on Win7 when saving to Documents Library

2012-06-06 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I closed #14996 as a duplicate of this. The OP there claimed that behavior 
changed between 3.2.1 and 3.2.3 and that she had same problem with 32 bit 
installation. It is hard to know the exact circumstances of the problem until 
we find its cause.

Looking further, I am sure this is a tk and/or Win7 problem.
tkinter.filedialog.asksaveasfile() calls SaveAs(**options).show()
SaveAs sets command = tk_getSaveFile and inherits _Dialog which inherits 
commondialog.Dialog. The show method of that calls
tk.call(self.command, *w._options(self.options)). Since the test call has no 
options, self.options is an empty dict and I presume the serialized form 
w._options() is also. So the call amounts to
tk.call(tk_getSaveFile), which suspends python until the dialog returns.

That said, 3.3.0a4 was released a week ago with tcl/tk upgraded, in the Windows 
installer, from 8.5.9 to 8.5.11. So I retried the previous test and the problem 
is gone. Can someone else verify? If so, we can close this as fixed. (I believe 
that the same upgrade will appear in future 3.2 and 2.7 releases, but I am not 
sure.)

--

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



[issue12988] Tkinter File Dialog crashes on Win7 when saving to Documents Library

2012-06-06 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

I installed 3.3.0a4 (64-bit) on Win 7 and the issue did not occur when using 
asksaveasfile. I repeated with 32-bit 3.3.0a4 without any problems.

How can we confirm that 3.2 will receive the Tcl/Tk upgrade? (64-bit 2.7.3 does 
not have this bug.)

--
resolution:  - out of date
status: open - closed
versions:  -Python 3.3

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



[issue12988] Tkinter File Dialog crashes on Win7 when saving to Documents Library

2012-06-06 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Re-opened.

--
resolution: out of date - 
status: closed - open

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



[issue15003] make PyNamespace_New() public

2012-06-06 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


Removed file: http://bugs.python.org/file25827/issue15003_public.diff

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



[issue15003] make PyNamespace_New() public

2012-06-06 Thread Eric Snow

Eric Snow ericsnowcurren...@gmail.com added the comment:

Where should the docs go for PyNamespace_New()?  I looked at what's in 
Doc/c-api/concrete.rst (concrete.html#other-objects), and each of them points 
to its own page.  Adding a new page for a single function seems a bit too much. 
:)  Would it be bad to put the doc right at the end of concrete.rst?  The 
attached patch does so.

(Also just noticed that PyStructSequence_* is not documented...)

--
Added file: http://bugs.python.org/file25853/issue15003_public.diff

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



[issue14908] datetime.datetime should have a timestamp() method

2012-06-06 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

I think the attached patch implements what was agreed to on python-dev.  We 
need more tests, particularly around DST change.  I tested the patch on OSX, 
but I am interested to hear feedback from users of other OSes.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file25854/issue14908.diff

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



[issue15022] types.SimpleNamespace needs to be picklable

2012-06-06 Thread Eric Snow

New submission from Eric Snow ericsnowcurren...@gmail.com:

In issue 15003 Raymond recommended that types.SimpleNamespace be picklable.  
I'll get a patch up as soon as I can to add this capability.

--
messages: 162453
nosy: eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: types.SimpleNamespace needs to be picklable
type: behavior

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



[issue15003] make PyNamespace_New() public

2012-06-06 Thread Eric Snow

Eric Snow ericsnowcurren...@gmail.com added the comment:

I've opened issue 15022 for making SimpleNamespace picklable.

--

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



[issue3367] Uninitialized value read in parsetok.c

2012-06-06 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
assignee: belopolsky - 

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



[issue9256] plistlib should create non-naïve datetime objects

2012-06-06 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
nosy: +r.david.murray

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



[issue8902] add datetime.time.now() for consistency

2012-06-06 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

Closing for the lack of interest.  Proposed time.now() is already available as 
datetime.now().time().  No use case justifying any improvement in this area was 
presented.

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

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

If it really fixes the bug, I can update the Tcl version. However, for that, I 
would need precise instructions on how to reproduce the bug.

--

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



[issue15023] listextend (and therefore list.extend and list.__init__) peek at len before iter

2012-06-06 Thread Julian Berman

New submission from Julian Berman julian+python@grayvines.com:

The following code raises an unexpected exception:

class Foo(object):
def __len__(self):
raise Exception()
def __iter__(self):
return iter([])

list(Foo())


In the optimizations being done in listextend, it appears len is getting called 
first for some reason (sorry, haven't gotten a chance to step through it 
carefully yet).

Tangentially, PyPy (correctly I guess) throws no such exception.

--
components: Interpreter Core
messages: 162457
nosy: Julian
priority: normal
severity: normal
status: open
title: listextend (and therefore list.extend and list.__init__) peek at len 
before iter
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue15023] listextend (and therefore list.extend and list.__init__) peek at len before iter

2012-06-06 Thread Julian Berman

Julian Berman julian+python@grayvines.com added the comment:

Oh, and, with apologies for the double post, tuple does the same, while set, 
dict, collections.deque do not.

--

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



[issue14996] IDLE 3.2.3 crashes saving a .py file to certain folders on Windows 7

2012-06-06 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Precise instructions can be found in msg144106 and msg161168 from Issue12988.

--

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