[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)

2010-07-28 Thread Florent Xicluna

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

1/ The AttributeError on unquote() is backward compatible with 2.6, 2.7 and 
3.1. (issue 9301 is about backward compatibility)

2/ All the quote*/unquote* functions accept both str and bytes (except 
quote_from_bytes).  I don't find a strong reason to change this.

--

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



[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-07-28 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

I updated the patch. Now the patch:

suppress the OSError if and only if the target directory with the same mode as 
we specified already exists.

--

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



[issue7198] csv.writer

2010-07-28 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

Can you provide me with a concrete example which fails for you?
I don't have ready access to a Windows machine with Python on
it but should be able to arrange something at work, however before
going through the exercise of spending admin time to install
Python I would like to look at code which fails for you first.

--
assignee:  - skip.montanaro
status: closed - open

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



[issue9354] file_wrapper fails to provide getsockopt()

2010-07-28 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Applied in r83201. Thanks!

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

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



[issue1682942] ConfigParser support for alt delimiters

2010-07-28 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Looks good to me.

--

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



[issue9362] Make exit/quit hint more novice friendly

2010-07-28 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

 Why not to ship it in Python by default?

 Because it is under GPL?

pyreadline is under BSD.

--

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



[issue9362] Make exit/quit hint more novice friendly

2010-07-28 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

On Mon, Jul 26, 2010 at 11:48 PM, Mark Lawrence rep...@bugs.python.org wrote:

 This to me is getting stupid.  Let's make a decision and move on, there are 
 far more pressing issues that need attention.

Do you think that getting `readline` module to run on Windows is stupid?
I think it is stupid that IPython ships pyreadline to fill the gap on
Windows - it should be done in Python distribution.

--

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



[issue9362] Make exit/quit hint more novice friendly

2010-07-28 Thread Tim Golden

Tim Golden m...@timgolden.me.uk added the comment:

Not necessarily; pyreadline takes over from the standard console
functionality on Windows in order to emulate a more Unix-ish
approach. I prefer the Windows default.

There's nothing to stop someone downloading and installing
pyreadline as a third-party package on Windows

--
nosy: +tim.golden

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



[issue9393] shelve.open/bsddb.hashopen raise Exception'No such file or directory'for Chinese path

2010-07-28 Thread wjm251

New submission from wjm251 wjm...@gmail.com:

Windows XP Simple Chinese Version
in python2.5,Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 
bit (Intel)] on win32
I have a directory D:\你好新建文件夹
my code is as follows: 
#--
temppath = uD:\\你好新建文件夹\\a
import shelve
cache = shelve.open(temppath, 'c')
#--

when use temppath.encode(utf-8),it works,
but in python2.6,temppath can works properly

but I got a Error with such traceback

Traceback (most recent call last):
  File D:\eclipse_workspace\pytest\src\test.py, line 5, in module
cache = shelve.open(temppath, 'c')
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\shelve.py,
 line 225, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\shelve.py,
 line 209, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\anydbm.py,
 line 83, in open
return mod.open(file, flag, mode)
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\dbhash.py,
 line 16, in open
return bsddb.hashopen(file, flag, mode)
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\bsddb\__init__.py,
 line 310, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb.db.DBNoSuchFileError: (2, 'No such file or directory')

--
components: Library (Lib)
messages: 111779
nosy: wjm251
priority: normal
severity: normal
status: open
title: shelve.open/bsddb.hashopen raise Exception'No such file or directory'for 
Chinese path
versions: Python 2.5

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



[issue9394] shelve.open/bsddb.hashopen raise bsddb.db.DBNoSuchFileError: (2, 'No such file or directory') with Chinese Path

2010-07-28 Thread wjm251

New submission from wjm251 wjm...@gmail.com:

Windows XP Simple Chinese Version
in python2.5,Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 
bit (Intel)] on win32
I have a directory D:\你好新建文件夹
my code is as follows: 
#--
temppath = uD:\\你好新建文件夹\\a
import shelve
cache = shelve.open(temppath, 'c')
#--

when use temppath.encode(utf-8),it works,
but in python2.6,temppath can works properly

but I got a Error with such traceback

Traceback (most recent call last):
  File D:\eclipse_workspace\pytest\src\test.py, line 5, in module
cache = shelve.open(temppath, 'c')
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\shelve.py,
 line 225, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\shelve.py,
 line 209, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\anydbm.py,
 line 83, in open
return mod.open(file, flag, mode)
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\dbhash.py,
 line 16, in open
return bsddb.hashopen(file, flag, mode)
  File 
D:\eclipse_workspace\omstarv5r6\linksvn\src\UNPPython\pywindows\Lib\bsddb\__init__.py,
 line 310, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb.db.DBNoSuchFileError: (2, 'No such file or directory')

--
components: Library (Lib)
messages: 111780
nosy: wjm251
priority: normal
severity: normal
status: open
title: shelve.open/bsddb.hashopen raise bsddb.db.DBNoSuchFileError: (2, 'No 
such file or directory') with Chinese Path
type: behavior
versions: Python 2.5

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



[issue9394] shelve.open/bsddb.hashopen raise bsddb.db.DBNoSuchFileError: (2, 'No such file or directory') with Chinese Path

2010-07-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - shelve.open/bsddb.hashopen raise Exception'No such file or 
directory'for Chinese path

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



[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +haypo
title: shelve.open/bsddb.hashopen raise Exception'No such file or directory'for 
Chinese path - shelve.open/bsddb.hashopen exception with unicode paths
type:  - behavior

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



[issue9386] Bad indentation in urllib import fixer with multiple imports

2010-07-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +benjamin.peterson, merwok

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



[issue818201] distutils: clean does not use build_base option from build

2010-07-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
assignee:  - tarek
nosy: +merwok
stage:  - unit test needed
title: distutils: clean -b ignored; set_undefined_options doesn't - distutils: 
clean does not use build_base option from build
type:  - behavior
versions:  -Python 2.3

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



[issue809846] distutils/bdistwin32 doesn't clean up RO files properly

2010-07-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
assignee:  - tarek
nosy: +merwok
stage:  - unit test needed
type:  - behavior
versions:  -Python 2.3

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



[issue9395] clean does not remove all temp files

2010-07-28 Thread Éric Araujo

New submission from Éric Araujo mer...@netwok.org:

The clean command does not delete all build artifacts.

--
assignee: tarek
components: Distutils, Distutils2
messages: 111781
nosy: exarkun, merwok, tarek
priority: normal
severity: normal
stage: unit test needed
status: open
title: clean does not remove all temp files
type: behavior

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



[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2010-07-28 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue5412] extend configparser to support [] syntax

2010-07-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I’d find more natural to have cp['spam'] return the section (as a dict) and 
cp['spam']['ham'] return the value.

--
nosy: +merwok

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



[issue1682942] ConfigParser support for alt delimiters

2010-07-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I made some minor remarks on rietveld, it seems they’re saved but no email has 
come here.

--
nosy: +merwok

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



[issue989712] Support using Tk without a mainloop

2010-07-28 Thread C. E. Ball

Changes by C. E. Ball ceb...@users.sf.net:


--
nosy: +ceball

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



[issue5136] Deprecating (and removing) globalcall, merge and globaleval

2010-07-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Guilherme, I suggest you ask about that on pydev and/or idle-dev, or just 
commit the addition of PendingDeprecationWarnings and wait for reactions.

--
nosy: +merwok

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



[issue1682942] ConfigParser support for alt delimiters

2010-07-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Ah, the tracker does not know the address I use for Google, sorry. My comments 
are visible on Rietveld.

--

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



[issue5412] extend configparser to support [] syntax

2010-07-28 Thread Łukasz Langa

Łukasz Langa luk...@langa.pl added the comment:

Éric, first thing: forget about the current patch because it's very much 
incomplete.

Second thing, while I normally would agree with you about the 
['section']['key'] idea, in this case the current syntax has following 
advantages:

- we can implement a cohesive mapping protocol that extends to get(), del, in, 
etc. For now get() seems somewhat similar to what dictionaries give you and I 
would build on that (adding a `default` attribute would be another thing).

- manipulation on the internal structures is much simpler when we have a single 
key like that. Having config['name'] return the section would make us create 
another proxy object just to support mutating keys in the section.

I can see arguments for and against this approach but overall, it looks nice.

--

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



[issue7198] Extraneous newlines with csv.writer on Windows

2010-07-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Bob, can you give us some code to reproduce the problem, in the form or a unit 
test or even just a regular function? It will help confirm the bug and fix it.

--
nosy: +merwok
stage:  - unit test needed
title: csv.writer - Extraneous newlines with csv.writer on Windows

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



[issue1682942] ConfigParser support for alt delimiters

2010-07-28 Thread Łukasz Langa

Changes by Łukasz Langa luk...@langa.pl:


Removed file: http://bugs.python.org/file18219/issue1682942.diff

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



[issue9386] Bad indentation in urllib import fixer with multiple imports

2010-07-28 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

I guess it's the problem with lib2to3/fixes/fix_urllib.py. Indentation is not 
taken into consideration when fix import. Fix it with indentation taken into 
consideration maybe a little complex, but here is a simple and ugly fix: when 
one import statement was transformed to two or more statement, use 
semicolon(';') instead of '\n' as separator, between many import statements. In 
this case, the 

def fun():
from urllib import urlopen, urlencode


is transformed in to:


def fun():
from urllib.request import urlopen;from urllib.parse import urlencode


It will takes time to work out a better fix.

--
nosy: +ysj.ray
Added file: http://bugs.python.org/file18227/lib2to3.diff

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



[issue1682942] ConfigParser support for alt delimiters

2010-07-28 Thread Łukasz Langa

Łukasz Langa luk...@langa.pl added the comment:

New patch after review by Éric Araujo. The difference between the last one and 
the current is cosmetic:

--- Lib/configparser.py 2010-07-27 11:36:51.0 +0200
+++ Lib/configparser.py.2   2010-07-28 13:05:39.0 +0200
@@ -117,3 +117,2 @@
 import re
-import sre_parse
 import sys
@@ -140,2 +139,3 @@
 BaseException.
+
 return self.__message
@@ -145,2 +145,3 @@
 BaseException.
+
 self.__message = value
@@ -301,2 +302,3 @@
 
+
 if section.lower() == default:
@@ -338,2 +340,3 @@
 
+
 if isinstance(filenames, str):
@@ -358,4 +361,4 @@
 used.
-
 
+
 if filename is None:
@@ -419,2 +422,3 @@
 Check for the existence of a given option in a given section.
+
 if not section or section == DEFAULTSECT:
@@ -431,2 +435,3 @@
 Set an option.
+
 if not section or section == DEFAULTSECT:
@@ -444,2 +449,3 @@
between keys and values are surrounded by spaces.
+
 if space_around_delimiters:
@@ -456,2 +462,3 @@
 Remove an option.
+
 if not section or section == DEFAULTSECT:
@@ -471,2 +478,3 @@
 Remove a file section.
+
 existed = section in self._sections
@@ -529,2 +537,3 @@
 
+
 cursect = None # None, or a dictionary
@@ -657,2 +666,3 @@
 
+
 d = self._defaults.copy()
@@ -690,2 +700,3 @@
 
+
 d = self._defaults.copy()
@@ -789,2 +800,3 @@
 Set an option.  Extend ConfigParser.set: check for string values.
+
 # The only legal non-string value if we allow valueless



Some remarks on Éric's review:
- thanks for reviewing the patch, however you did review an outdated version
- comment_prefixes are by all means prefixes. Collins dictionary: prefix, n. - 
2. something coming or placed before. Other reviewers didn't pose the current 
name as inapt
- other remarks corrected in the current patch

--
Added file: http://bugs.python.org/file18228/issue1682942.diff

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



[issue9396] Standardise (and publish?) cache handling in standard library

2010-07-28 Thread Nick Coghlan

New submission from Nick Coghlan ncogh...@gmail.com:

The standard library has several cache implementations (e.g. in re, fnmatch and 
ElementTree) with different cache size limiting strategies. These should be 
standardised and possibly even exposed for general use.

Refer to python-dev discussion:
http://mail.python.org/pipermail/python-dev/2010-July/102473.html

--
components: Library (Lib)
messages: 111790
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Standardise (and publish?) cache handling in standard library
type: feature request
versions: Python 3.3

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



[issue1682942] ConfigParser support for alt delimiters

2010-07-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I advised putting a blankline between the first line of a docstring and the 
rest of it, not between the docstring and the body of the function.

Re. prefix, Wordnet is more precise than Collins here: “an affix that is added 
in front of the word”. A prefix is not just a sequence of characters, it’s a 
morpheme (building block for word, if you want). So prefix is a wrong name in 
the docstring of str.startswith, since e.g. “pyt” is not a prefix, whereas 
“out” is, but str.startswith works with any sequence, not only something that 
is a prefix.

 Other reviewers didn't pose the current name as inapt
They’re not linguists. Not saying this is a good or bad thing. :)

Using linguistics terms to speak of computer languages is often a bad thing, 
but in this case I’d like to avoid using prefix.

--

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



[issue7198] Extraneous newlines with csv.writer on Windows

2010-07-28 Thread Bob Cannon

Bob Cannon b...@neqn.net added the comment:

Eric,

This issue was resolved for me by Skip Montanaro's response less than an 
hour after I posted it.  I didn't understand why a text file had to be 
binary, but I no longer had a problem with extraneous.  In looking back 
at my message 94441, I think that it was ambiguous and that I should 
have made it clear that I no longer had a problem.  Perhaps in my 
ignorance as a newbie I didn't close the issue properly. 

I don't know that I can reproduce the problem any more.  I think that I 
was writing snippets of code to try to isolate the problem and when I 
used Skip's solution I changed the program and deleted the test code.

Please let me know what I can do to help you now.

Bob

Éric Araujo wrote:
 Éric Araujo mer...@netwok.org added the comment:

 Bob, can you give us some code to reproduce the problem, in the form or a 
 unit test or even just a regular function? It will help confirm the bug and 
 fix it.

 --
 nosy: +merwok
 stage:  - unit test needed
 title: csv.writer - Extraneous newlines with csv.writer on Windows

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


--

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



[issue7198] Extraneous newlines with csv.writer on Windows

2010-07-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

If the documentation is not clear enough about requiring binary, it is a doc 
bug.

(P.S. Please strip unneeded quotes. Thanks)

--

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



[issue9386] Bad indentation in urllib import fixer with multiple imports

2010-07-28 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

When one import statement is split to two or more, we encounter this problem: 
the indentation of the import statements except the first one is unknown, and 
is difficult to fix this problem, since a import maybe in a multi-statement 
line, like: 'a=1;import sys'. I wonder if there is way to fix this problem 
perfectly. Maybe we could just put all the resulting import statements into one 
single multi-statement line, joined by ';', as my patch specified.

--

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



[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread wjm251

wjm251 wjm...@gmail.com added the comment:

I think it is supposed that unicode paths and GBK encoded str objects will be 
ok in Windows.
But only UTF-8 encoded str can

--

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



[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-07-28 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

You haven't attached the new patch.

--

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



[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor

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

shelve uses anydbm which uses gdbm, dbm or bsddbm. Attached patch fixes gdbm 
and dbm (replace s format by et with Py_FileSystemDefaultEncoding).

bsddbm is harder to fix: bsdhashopen(), bsdbtopen() and bsdrnopen() have to be 
fixed, and they accept None for the filename (z format).

--

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



[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-07-28 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

Oh, sorry, here is the patch.

--
Added file: http://bugs.python.org/file18229/mkdir.diff

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



[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor

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


--
keywords: +patch
Added file: http://bugs.python.org/file18230/dbm_open_unicode-27.patch

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



[issue5412] extend configparser to support [] syntax

2010-07-28 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

lukasz,

 - manipulation on the internal structures is much simpler when we have a 
 single key like that. Having config['name'] return the section would make us 
 create another proxy object just to support mutating keys in the section.

I'm afraid this could not be a good reason against the config['section']['key'] 
style. Since implementing this in python is not too difficult. For the more 
readability this style brings than config['section', 'key'], I think it's 
worthy.

--
nosy: +ysj.ray

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



[issue5412] extend configparser to support [] syntax

2010-07-28 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

As in ConfigParser you are always accessing a section and value I'm happy with 
tuple indexing.

--

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



[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread wjm251

wjm251 wjm...@gmail.com added the comment:

sorry I donot know exactly your meaning,
what does these  mean: s format by et  , z format
and I'm not familiar with the C/C++

do you mean that I can use the attached patch to complie a new Python dll? 
but it seams that in My PC the shelve module always uses bsddbm automaticly, 

can you explains more clearly?

thank you very much
sincerely

--

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



[issue7330] PyUnicode_FromFormat segfault

2010-07-28 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

I feel it's not proper to allow the width restrict on types %S, %R, %A. These 
types correspond to PyObject_Str(), PyObject_Repr, PyObject_ASCII() 
respectively, the results of them are usually a complete string representation 
of a object. If you put a width restriction on the string, it's likely that the 
result string is intercepted and is of no complete meaning. If you really want 
to put a width restriction on the result, you can use %s instead, with one or 
two more lines to get the corresponding char* from the object.

--
nosy: +ysj.ray

___
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



[issue1682942] ConfigParser support for alt delimiters

2010-07-28 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Committed an extensively edited patch in r83202.  Thanks all!

--
resolution:  - accepted
status: open - closed

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



[issue9315] The trace module lacks unit tests

2010-07-28 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Alexander, it looks like you broke all the 2.7 buildbots. Could you take a 
look, please?

--
nosy: +pitrou

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



[issue9315] The trace module lacks unit tests

2010-07-28 Thread Alexander Belopolsky

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

I am on a train. Can take a look in about an hour, but I did not  
commit anything related to this issue recently.

On Jul 28, 2010, at 9:30 AM, Antoine Pitrou rep...@bugs.python.org  
wrote:


 Antoine Pitrou pit...@free.fr added the comment:

 Alexander, it looks like you broke all the 2.7 buildbots. Could you  
 take a look, please?

 --
 nosy: +pitrou

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

--
nosy: +Alexander.Belopolsky

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



[issue9315] The trace module lacks unit tests

2010-07-28 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

test test_sys_setprofile crashed -- type 'exceptions.ImportError': cannot 
import name support
Traceback (most recent call last):
  File ./Lib/test/regrtest.py, line 863, in runtest_inner
  File 
/home/buildbot/slave/py-build/2.7.norwitz-amd64/build/Lib/test/test_sys_setprofile.py,
 line 5, in module
from test import support
ImportError: cannot import name support

test test_sys_settrace crashed -- type 'exceptions.SyntaxError': unqualified 
exec is not allowed in function 'test_jump_to_firstlineno' it contains a nested 
function with free variables (test_sys_settrace.py, line 777)
Traceback (most recent call last):
  File ./Lib/test/regrtest.py, line 863, in runtest_inner
SyntaxError: unqualified exec is not allowed in function 
'test_jump_to_firstlineno' it contains a nested function with free variables 
(test_sys_settrace.py, line 777)

--

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



[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-07-28 Thread Peter

Peter p.j.a.c...@googlemail.com added the comment:

I take it the IGNORE_EXCEPTION_DETAIL should ignore the module name
fix will not be applied to Python 3.1.x?

Is there a separate bug to enhance 2to3 to turn IGNORE_EXCEPTION_DETAIL
on?

--
nosy: +maubp

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



[issue7330] PyUnicode_FromFormat segfault

2010-07-28 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Ray.Allen wrote:
 
 Ray.Allen ysj@gmail.com added the comment:
 
 I feel it's not proper to allow the width restrict on types %S, %R, %A. These 
 types correspond to PyObject_Str(), PyObject_Repr, PyObject_ASCII() 
 respectively, the results of them are usually a complete string 
 representation of a object. If you put a width restriction on the string, 
 it's likely that the result string is intercepted and is of no complete 
 meaning. If you really want to put a width restriction on the result, you can 
 use %s instead, with one or two more lines to get the corresponding char* 
 from the object.

I agree with that, but don't feel strongly about not allowing this
use case.

If it's easy to support, why not have it ? Otherwise, I'd be +1 on
adding a check and raise an error in case a width modifier is used
with these markers.

--
nosy: +lemburg

___
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



[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor

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

Same patch for Python 3.2.

--
Added file: http://bugs.python.org/file18231/dbm_open_unicode-32.patch

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



[issue9315] The trace module lacks unit tests

2010-07-28 Thread Alexander Belopolsky

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

Yep, this looks like me. Will fix shortly. Feel free to revert my  
change if it stops you.

On Jul 28, 2010, at 9:39 AM, Antoine Pitrou rep...@bugs.python.org  
wrote:


 Antoine Pitrou pit...@free.fr added the comment:

 test test_sys_setprofile crashed -- type 'exceptions.ImportError':  
 cannot import name support
 Traceback (most recent call last):
  File ./Lib/test/regrtest.py, line 863, in runtest_inner
  File /home/buildbot/slave/py-build/2.7.norwitz-amd64/build/Lib/ 
 test/test_sys_setprofile.py, line 5, in module
from test import support
 ImportError: cannot import name support

 test test_sys_settrace crashed -- type 'exceptions.SyntaxError':  
 unqualified exec is not allowed in function  
 'test_jump_to_firstlineno' it contains a nested function with free  
 variables (test_sys_settrace.py, line 777)
 Traceback (most recent call last):
  File ./Lib/test/regrtest.py, line 863, in runtest_inner
 SyntaxError: unqualified exec is not allowed in function  
 'test_jump_to_firstlineno' it contains a nested function with free  
 variables (test_sys_settrace.py, line 777)

 --

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

--

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



[issue9217] 2to3 crashes with some doctests

2010-07-28 Thread Peter

Changes by Peter p.j.a.c...@googlemail.com:


--
nosy: +maubp

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



[issue9217] 2to3 doctests

2010-07-28 Thread Peter

Changes by Peter p.j.a.c...@googlemail.com:


--
title: 2to3 crashes with some doctests - 2to3 doctests

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



[issue9217] 2to3 crashes with some doctests

2010-07-28 Thread Peter

Peter p.j.a.c...@googlemail.com added the comment:

Reverted accidental title change - had keyboard focus on the page not
the address bar I think. Sorry!

--
title: 2to3 doctests - 2to3 crashes with some doctests

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



[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread R. David Murray

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

Victor's comments were addressed to the python development community and 
concern python internals.  Given that only bsddb exists on windows by default, 
his patches unfortunately don't do you any good.  I'm adding jcea as nosy in 
case he wants to/can deal with the problem in bsddb.

--
nosy: +jcea, r.david.murray
stage:  - unit test needed
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5

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



[issue9397] Remove references to the missing dbm.bsd module

2010-07-28 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

dbm doc tells that there is a dbm.bsd module, but no, there is not. The third 
party module, pybsddb (or bsddb3), is installed as bsddb3.

Python3 dbm module was created by #2881 (r63662).

Some references to dbm.bsd were removed by r72711, but not all.

--
components: Library (Lib)
messages: 111813
nosy: georg.brandl, haypo
priority: normal
severity: normal
status: open
title: Remove references to the missing dbm.bsd module
versions: Python 3.2

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



[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor

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

It looks like bsddb (dbm.bsd) module doesn't exist anymore in Python3: see 
issue #9397. It's now maintained in the third party module pybsddb.

--

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



[issue9172] zipfile.extractall always raises an OSError after successfully unzipping all files

2010-07-28 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

I didn't see this problem in py2.7 and py3k on debian linux. Is this windows 
specific or this bug has been fixed since py2.7?

--
nosy: +ysj.ray

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



[issue9315] The trace module lacks unit tests

2010-07-28 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

 test test_sys_setprofile crashed ...

Fixed in r83204 - r83206.

--

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



[issue9393] shelve.open/bsddb.hashopen exception with unicode paths

2010-07-28 Thread STINNER Victor

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

New patch for bsddb module: create parse_filename() function, based on Python3 
PyUnicode_FSConverter() but it accepts None. I didn't tested the patch because 
I'm unable to compile the module. It looks like it should use db_185.h instead 
of db.h, and link to another library, but configure  or setup.py doesn't know 
it.

--
Added file: http://bugs.python.org/file18232/bsddb_unicode_filename-27.patch

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



[issue8776] Bytes version of sys.argv

2010-07-28 Thread STINNER Victor

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

 Using that approach would work on POSIX systems.

As os.environb, I think that sys.argv should not exist on Windows.

 Another problem I see is synchronizing the two

os.environ and os.environb are synchronized. It would be possible to do the 
same with sys.argv and sys.argvb. The implement would be simplier because it's 
just a list, not a dict.

--

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



[issue8776] Bytes version of sys.argv

2010-07-28 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

STINNER Victor wrote:
 
 STINNER Victor victor.stin...@haypocalc.com added the comment:
 
 Using that approach would work on POSIX systems.
 
 As os.environb, I think that sys.argv should not exist on Windows.
 
 Another problem I see is synchronizing the two
 
 os.environ and os.environb are synchronized. It would be possible to do the 
 same with sys.argv and sys.argvb. The implement would be simplier because 
 it's just a list, not a dict.

+1 on adding sys.argvb for systems that use char* in main().

--
nosy: +lemburg

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



[issue7330] PyUnicode_FromFormat segfault

2010-07-28 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

I think under the we're all consenting adults doctrine that it should be 
allowed. If you really want that behavior, why force the char*/%s dance at each 
call site when it's easy enough to do it in one place? I don't think anyone 
supplying a width would really be surprised that it would truncate the result 
and possibly break round-tripping through repr.

Besides, it's allowed in pure python code:
 '%.5r' % object()
'obje'

--

___
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



[issue5412] extend configparser to support mapping access(__*item__)

2010-07-28 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Note that the two versions are not exclusive: We can look for an item if a 
tuple is given and look for a section if it’s a string. Maybe confusing.

 - we can implement a cohesive mapping protocol that extends to get(),
 del, in, etc. For now get() seems somewhat similar to what
 dictionaries give you

We have the same problem in distutils2 with a class that supports some mapping 
operations but has an incompatible get method. Luckily we can still break 
compat there.

The winning argument in my opinion is user convenience, not moderate 
implementation issues. Is is generally useful that config parsers and sections 
behave like mutable mappings? Then add the methods with the behavior I 
proposed. Are there compatibility problems and not much incentive? Then do it 
your way, and add another mechanism for my wished use. It looks like we have to 
go for the latter.

 - manipulation on the internal structures is much simpler when we
 have a single key like that. Having config['name'] return the section
 would make us create another proxy object just to support mutating
 keys in the section.

Yeah, dict/DictMixin subclasses that implement checking and conversion wouldn’t 
be hard to write, but maybe it’s not worth it and we just need a method to 
convert the config parser to a dict (already easy with sections: 
dict(cp.items(section))

So if every other config parser supports cp['section', 'key'], I’m +1. I can 
get a real dict for a section, and I’ll open another report to request methods 
update and asdict methods for RawConfigParser.

--
title: extend configparser to support [] syntax - extend configparser to 
support mapping access(__*item__)

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



[issue5412] extend configparser to support mapping access(__*item__)

2010-07-28 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

 The winning argument in my opinion is user convenience

Well yes, for me too - as the user will always be operating on (section, key) 
pairs the extra level of indirection seems pointless.

--

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



[issue9398] Unify sys.settrace and sys.setprofile tests

2010-07-28 Thread Alexander Belopolsky

New submission from Alexander Belopolsky belopol...@users.sourceforge.net:

Th sys.settrace and sys.setprofile functions have the same interface an very 
similar purpose.  The difference is in the types of events that get reported.  
However the tests for these functions are implemented separately and cover 
different sets of scenarios.  As proposed in python-dev thread, Does trace 
modules have a unit test? [1], this RFE proposes to


Create tracetester helper file with abstract test cases made
from the union of test_sys_settrace and  test_sys_setprofile test
cases and replace the concrete test cases in test_sys_set* with
subclasses that define setmethod, getmethod and expected_output.

[1] http://mail.python.org/pipermail/python-dev/2010-July/102308.html

See also issue 9315.

--
assignee: belopolsky
components: Tests
messages: 111823
nosy: belopolsky
priority: normal
severity: normal
stage: needs patch
status: open
title: Unify sys.settrace and sys.setprofile tests
type: feature request
versions: Python 2.7, Python 3.1, Python 3.2

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



[issue9398] Unify sys.settrace and sys.setprofile tests

2010-07-28 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
nosy: +eli.bendersky, ncoghlan, tjreedy

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



[issue9399] Provide a 'print' action for argparse

2010-07-28 Thread Dennis Malcorps

New submission from Dennis Malcorps dennis.malco...@googlemail.com:

Currently argparse has a 'version' action which can be triggered by user 
defined options which prints out a custom string.

parser.add_argument(--version, action=version, version=test 1.2.3)

Since the 'version' action can be added multiple times, it can be used to 
output different kinds of information, like the program's license.

parser.add_argument(--license, action=version, version=This file is 
licensed under GPL [a huge amount of text])

The only drawback is that linebreaks are substituted with a normal space. So I 
propose a 'print' action (perhaps as a replacement for 'version'?) which 
respects whitespace characters.

parser.add_argument(--version, action=print, message=test 1.2.3)
parser.add_argument(--license, action=print, message=This file is licensed 
under GPL [a huge amount of text, now properly formatted!])
parser.add_argument(--insult-me, action=print, message=You sick *peep* , 
*peep* yourself in *peep*)

Currently, the only solution is to create a custom action which is IMHO a bit 
overkill for just printing a simple string to stdout.

--
components: Library (Lib)
messages: 111824
nosy: travistouchdown
priority: normal
severity: normal
status: open
title: Provide a 'print' action for argparse
type: feature request
versions: Python 2.7, Python 3.2

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



[issue7759] mhlib fails on Btrfs filesystem (test_mhlib failure)

2010-07-28 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Since mhlib has gone from py3k is there any interest in applying this to 2.6 or 
2.7, given that there's been no response to msg98232?

--
components: +Library (Lib)
nosy: +BreamoreBoy

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



[issue7615] unicode_escape codec does not escape quotes

2010-07-28 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Could we please have some responses to msg98327 as there are some very positive 
comments there.

--
nosy: +BreamoreBoy

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



[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2010-07-28 Thread Nikolaus Rath

New submission from Nikolaus Rath nikol...@rath.org:

The attached test program calls apply_async with a function that will raise 
CalledProcessError. However, when result.get() is called, it raises a TypeError 
and the program hangs:

$ ./bug.py
ERROR:root:ops
Traceback (most recent call last):
  File ./bug.py, line 19, in run_with
dW1 = run_dcon()
  File ./bug.py, line 26, in run_dcon
subprocess.check_call(['dcon'], stdout=fh, stderr=fh)
  File /usr/lib/python2.6/subprocess.py, line 498, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['dcon']' returned non-zero exit status 127
Exception in thread Thread-2:
Traceback (most recent call last):
  File /usr/lib/python2.6/threading.py, line 532, in __bootstrap_inner
self.run()
  File /usr/lib/python2.6/threading.py, line 484, in run
self.__target(*self.__args, **self.__kwargs)
  File /usr/lib/python2.6/multiprocessing/pool.py, line 259, in 
_handle_results
task = get()
TypeError: ('__init__() takes exactly 3 arguments (1 given)', class 
'subprocess.CalledProcessError', ())

--
components: Library (Lib)
files: bug.py
messages: 111827
nosy: Nikratio
priority: normal
severity: normal
status: open
title: multiprocessing.pool.AsyncResult.get() messes up exceptions
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file18233/bug.py

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



[issue7325] tempfile.mkdtemp() does not return absolute pathname when dir is specified

2010-07-28 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Tried this on windows against 2.7 don't see why it can't go forward.

--
nosy: +BreamoreBoy

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



[issue5362] Add configure option to disable Py3k warnings

2010-07-28 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Both msg98465 and msg98466 agree that this should not be a configuration 
variable.  I think a new patch is needed which follows the suggested solutions 
from the two messages given.

--
nosy: +BreamoreBoy

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



[issue5077] 2to3 fixer for the removal of operator functions

2010-07-28 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I see too many changes with tortoisesvn to make sense of this.  Could someone 
with more experience please take a look, thanks.

--
nosy: +BreamoreBoy

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



[issue6325] robotparser doesn't handle URL's with query strings

2010-07-28 Thread Senthil Kumaran

Senthil Kumaran orsent...@gmail.com added the comment:

I modified the patch slightly (so that it takes care of path, query, params and 
fragments).

Fixed in r83209,r83210 and r83211.

I also think that we need to move the robotparser to allow regexs in the allow 
and disallow patterns. ( Shall open an issue in the tracker, if it is not 
already present).

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue9105] pickle security note should be more prominent

2010-07-28 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
nosy: +BreamoreBoy

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



[issue7198] Extraneous newlines with csv.writer on Windows

2010-07-28 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

I got access to Python 2.6.5 on Windows and ran this simple
example:

Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on 
win32
Type copyright, credits or license() for more information.


Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface.  This connection is not visible on any external
interface and no data is sent to or received from the Internet.


IDLE 2.6.5  
 f = open(H:sample.csv, wb)
 import csv
 writer = csv.writer(f)
 writer.writerow([1,2,3])
 writer.writerow(['a', 'b', 'c'])
 del writer
 f.close()
 

I then looked at the CSV file which it generated.
Looked find to me.  Each of the two rows was terminated
by a single CRLF pair.

Then I repeated the test, opening the file in text
mode:

 f = open(H:sample2.csv, w)

 writer = csv.writer(f)

 writer.writerow([1,2,3])

 writer.writerow(['a', 'b', 'c'])

 del writer

 f.close()

 

That output does indeed terminate each line with
CRCRLF and when viewed in a spreadsheet program
such as OpenOffice Calc (probably Excel as well),
displays a blank line between the 123 row and the
abc row.

I've removed the unit test needed attribute from the
ticket as there is a test_writerows test case in the
Python test suite.  Also closing again and marking
invalid.  If you still believe there is actually a
problem, feel free to reopen this issue, but also
please send me (s...@pobox.com) a short example and
the erroneous output it produces for you (attach your
two files - don't just embed them in your mail msg).

--
resolution:  - invalid
stage: unit test needed - 
status: open - closed

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



[issue9401] automatically try forward operations when reverse operations are NotImplemented

2010-07-28 Thread Michael Gilbert

New submission from Michael Gilbert michael.s.gilb...@gmail.com:

in order to make overrides simpler, and more obvious to average developers, it 
would be very useful to automatically call the forward operations (e.g. 
__mul__) when the reverse operations (e.g. __rmul__) are NotImplemented.  

i spent quite a bit of time trying to discover why x*3 worked (where x is a 
class that i created with a __mul__ method); whereas 3*x wouldn't. this feature 
would really help since in most applications the same behavior is expected from 
forward and reverse operations.

for now, i am content with doing this manually, but it would be nice if it were 
automated.  all of my reverse operations just do:

def __rmul__( self , other ):
return self.__mul__( other )

where i manually check the type of other in the forward operation, and then 
handle it appropriately.

thanks for considering this.

best wishes,
mike

--
components: Interpreter Core
messages: 111833
nosy: Michael.Gilbert
priority: normal
severity: normal
status: open
title: automatically try forward operations when reverse operations are 
NotImplemented
type: feature request
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1

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



[issue9183] Intern UTC timezone

2010-07-28 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Updated issue9183a.diff patch combines C and Python code changes since 
datetime.py is now in stdlib.   Does anyone want to review before it goes in?

--
components: +Library (Lib)
resolution:  - accepted
Added file: http://bugs.python.org/file18234/issue9183a.diff

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



[issue9183] Intern UTC timezone

2010-07-28 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
nosy: +fdrake

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



[issue9051] Improve pickle format for aware datetime instances

2010-07-28 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
dependencies: +Intern UTC timezone

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



[issue7447] Sum() doc and behavior mismatch

2010-07-28 Thread Terry J. Reedy

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

I am puzzled that the fake name 'itertools.itertools.chain.from_iterable' works 
better than the real name 'itertools.chain.from_iterable'. Some bug in the tool 
chain?

--

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



[issue7615] unicode_escape codec does not escape quotes

2010-07-28 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Mark Lawrence wrote:
 
 Mark Lawrence breamore...@yahoo.co.uk added the comment:
 
 Could we please have some responses to msg98327 as there are some very 
 positive comments there.

A patch implementing the suggestions would be even better :-)

--

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



[issue8911] regrtest.main should have a test skipping argument

2010-07-28 Thread Jerry Seutter

Jerry Seutter jseut...@gmail.com added the comment:

Hi Brett (and others)

I'm thinking of making the following changes:

1. In Lib/test/regrtest.py, move command line parsing out of main() into a 
function called parse_command_line()

2. parse_command_line() will parse command line settings and store them in a 
dictionary that can be passed in as **kwargs to main().

3. The exclude parameter that main takes in will be modified to take a list.  
This list contains a list of tests to be skipped.

4. Update importlib/test/regrtest.py to call main() without doing sys.argv[] 
hacking.

5. The command line interface will remain unchanged.  If regrtest.py is called 
without the --exclude flag, the tests supplied on the command line will be 
interpreted as the tests to run.  If --exclude is supplied, the tests on the 
command line will be interpreted as the tests to _not_ run.

6. Switch regrtest.py to use argparse instead of optparse.

Do these look reasonable?

--

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



[issue5680] Command-line arguments when running in IDLE

2010-07-28 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Putting tjr and tal on nosy list cos it's IDLE.  Apologies if I've got it wrong.

--
nosy: +BreamoreBoy, taleinat, tjreedy
versions: +Python 3.2

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



[issue7877] Iterators over _winreg EnumKey and EnumValue results

2010-07-28 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

@Brian: @Tim: just a gentle nudge in the ribs in case this has slipped under 
the radar.

--
nosy: +BreamoreBoy

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




[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-07-28 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Could someone with linux experience please review the patch.

--
nosy: +BreamoreBoy

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



[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-07-28 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever
title: ctypes should work with systems where mmap can't be  PROT_WRITE and 
PROT_EXEC - ctypes should work with systems where mmap can't be PROT_WRITE and 
PROT_EXEC
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue5223] infinite recursion in PyErr_WriteUnraisable

2010-07-28 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Could the experts who have previously commented please advise as to whether 
this issue should be open, closed or whatever.

--
nosy: +BreamoreBoy

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



[issue9385] _ctypes module uses 'rwx' mmap() calls

2010-07-28 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

Does the patch from issue #5504 work for you?

--

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



[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-07-28 Thread Dave Malcolm

Dave Malcolm dmalc...@redhat.com added the comment:

FWIW, the patch for this that I'm currently applying to Fedora's python 2.7 
rpms can be seen at:
http://cvs.fedoraproject.org/viewvc/devel/python/python-2.7rc1-ctypes-noexecmem.patch?revision=1.1content-type=text%2Fplainview=co

It doesn't contain the rebase of libffi (since we use the system copy of libffi 
in our builds), but otherwise I believe that it's essentially equivalent to:
http://bugs.python.org/file13897/issue5504-linux.patch
albeit rebased to 2.7, taking into account the whitespace cleanup changes.

--

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



[issue9246] os.getcwd() hardcodes max path len

2010-07-28 Thread STINNER Victor

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

Antoine asked me why not using a buffer of MAX_PATH+1 (instead of a dynamic 
buffer size). I don't know, I just copied/pasted the code from Python2. Extract 
of getcwd() manpage:

   Note that on some systems, PATH_MAX may not be a compile-time
   constant; furthermore, its value may depend  on  the file system,
   see pathconf(3).

It's maybe to support strange OS like Hurd :-) (Hurd has no hardcoded limits).

Most of the time, the first realloc() should be enough.

--

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



[issue9402] pyexpat: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2010-07-28 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

PyObject_DEL() should not be used to destroy an object because it will break 
the linked list of allocated objects using in pydebug mode to detect bugs. 
pyexpat should use Py_DECREF() instead of PyObject_DEL() to destroy an object.

Attached patch fixes that.

See #3299 for the whole story.

--
components: Library (Lib)
files: pyexpat_py_decref.patch
keywords: patch
messages: 111845
nosy: haypo
priority: normal
severity: normal
status: open
title: pyexpat: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug 
mode
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file18235/pyexpat_py_decref.patch

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



[issue9403] cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2010-07-28 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

PyObject_DEL() should not be used to destroy an object because it will break 
the linked list of allocated objects, list used in pydebug mode to detect bugs. 
cElementTree should use Py_DECREF() instead of PyObject_DEL() to destroy an 
objects.

Attached patch fixes that:
 * Replace PyObject_Del() by Py_DECREF()
 * Catch element_new_extra() errors
 * parser dealloc: replace Py_DECREF() by Py_XDECREF() because the pointer may 
be NULL (error in the constructor)
 * set all parser attributes to NULL at the beginning of the constructor to be 
able to call safetly the destructor
 * element_new(): define tag, text, tail attributes before calling 
element_new_extra() to be able to call the destructor
 * raise a MemoryError on element_new_extra() failure. element_new() didn't 
raise any error on element_new_extra() failure. Other functions just forget to 
catch element_new_extra() error.

See #3299 for the whole story.

--
components: Library (Lib)
files: celementtree_py_decref.patch
keywords: patch
messages: 111846
nosy: haypo
priority: normal
severity: normal
status: open
title: cElementTree: replace PyObject_DEL() by Py_DECREF() to fix a crash in 
pydebug mode
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file18236/celementtree_py_decref.patch

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



[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug

2010-07-28 Thread STINNER Victor

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

 I will open new issues for the two remaining patches.

Done: #9402 for pyexpat and #9403 for cElementTree.

--
resolution:  - fixed
status: open - closed

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



[issue9246] os.getcwd() hardcodes max path len

2010-07-28 Thread Stefan Krah

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

For 2.x, unlimited path lengths were apparently introduced in issue 2722.
This strategy does not work on Solaris and OpenBSD (issue 9185).

FreeBSD also seems to support arbitrarily long paths. I would be somewhat
surprised though if anyone used them in practice. APUE (second edition)
uses PATH_MAX if it's available in limits.h.

--

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



[issue9283] buggy repr for os.environ

2010-07-28 Thread STINNER Victor

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

Fixed in 3.2 (r83214 + r83215). Other versions are not concerned.

--
resolution:  - fixed
status: open - closed

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



[issue9404] IDLE won't launch on XP

2010-07-28 Thread Chris Leaf

New submission from Chris Leaf xcyborgni...@gmail.com:

I have been using IDLE on my previous laptop and it was working well although I 
have to say I'm still very new to python. I've read around about the issue and 
can't find any solution I can use. I can run the IDLE GUI through the python 
command line version by saying import idle but it generates a bunch of error 
lines (copied the command prompt):

 import idle
Traceback (most recent call last):
  File stdin, line 1, in module
  File c:\python31\lib\idlelib\idle.py, line 11, in module
idlelib.PyShell.main()
  File c:\python31\lib\idlelib\PyShell.py, line 1388, in main
shell = flist.open_shell()
  File c:\python31\lib\idlelib\PyShell.py, line 277, in open_shell
self.pyshell = PyShell(self)
  File c:\python31\lib\idlelib\PyShell.py, line 813, in __init__
OutputWindow.__init__(self, flist, None, None)
  File c:\python31\lib\idlelib\OutputWindow.py, line 16, in __init__
EditorWindow.__init__(self, *args)
  File c:\python31\lib\idlelib\EditorWindow.py, line 261, in __init__
self.update_recent_files_list()
  File c:\python31\lib\idlelib\EditorWindow.py, line 779, in update_recent_fil
es_list
rf_file = open(self.recent_files_path, 'w')
IOError: [Errno 13] Permission denied: 'C:\\Documents and 
Settings\\USERNAME\\.idle
rc\\recent-files.lst'


I have tried to use Explorer to reach the files and I get a permission error 
(the same occurs when trying to reach with the command prompt). I have tried to 
change the read only nature of this folder and it automatically reverts after 
the attribute is set. Also the folder is empty according to explorer. I have 
tried running it with my firewall disabled. 

I am running 32bit XP on a lenovo T510 with 3.1.2 python installed

Thanks in advance!

--
components: IDLE
messages: 111850
nosy: Chris.Leaf
priority: normal
severity: normal
status: open
title: IDLE won't launch on XP
type: behavior
versions: Python 3.1

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



[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-07-28 Thread mike bayer

New submission from mike bayer mike...@zzzcomputing.com:

I'm not optimistic that this will be reproducible elsewhere.   I get a silent 
failure with 2.6 and a crash dialog with 2.7 with the following script.   All 
elements are necessary, although the pkg_resources import may be arbitrary, 
and reproduces if it comes from the latest setuptools or if it comes from 
Distribute.I've attached the crash report generated by OSX in the event 
that someone knows how to interpret it.   The script fails for me every time, 
though not for other people I've had test.


import pkg_resources

import urllib
import multiprocessing

def sub():
print about to call getproxies !
urllib.getproxies()
print getproxies has completed !

process = multiprocessing.Process(target=sub)
process.start()

print hi!

process.join()



Process: Python [79964]
Path:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:  Python
Version: ??? (???)
Code Type:   X86 (Native)
Parent Process:  Python [79963]

Date/Time:   2010-07-28 17:24:19.281 -0400
OS Version:  Mac OS X 10.6.4 (10F569)
Report Version:  6

Interval Since Last Report:  1137309 sec
Crashes Since Last Report:   87
Per-App Crashes Since Last Report:   86
Anonymous UUID:  848E03B6-EF61-45EA-9BB7-BF9E584CC670

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0104
Crashed Thread:  0  Dispatch queue: CFMachPort

Thread 0 Crashed:  Dispatch queue: CFMachPort
0   libSystem.B.dylib   0x94419bdd _dispatch_wakeup + 91
1   libSystem.B.dylib   0x9454a1f2 
_dispatch_queue_push_list_slow + 37
2   libSystem.B.dylib   0x94419c22 _dispatch_wakeup + 160
3   libSystem.B.dylib   0x944196e6 _dispatch_source_create2 + 
194
4   libSystem.B.dylib   0x94419278 
dispatch_source_timer_create_f + 286
5   libSystem.B.dylib   0x94419158 dispatch_source_timer_create 
+ 81
6   com.apple.CoreFoundation0x92fde72a 
___CFMachPortCreateWithPort2_block_invoke_1 + 762
7   libSystem.B.dylib   0x944190c3 dispatch_barrier_sync_f + 78
8   libSystem.B.dylib   0x94418f9d dispatch_sync + 48
9   com.apple.CoreFoundation0x92fde350 _CFMachPortCreateWithPort2 + 
272
10  com.apple.CoreFoundation0x92fe5e1c CFMachPortCreate + 204
11  com.apple.CoreFoundation0x92fe5c39 _CFXNotificationCenterCreate 
+ 281
12  com.apple.CoreFoundation0x92fe5ad6 
_CFXNotificationGetHostCenter + 86
13  com.apple.CoreFoundation0x92feb432 
__CFXPreferencesGetSourceForTriplet + 354
14  com.apple.CoreFoundation0x92fea6ad 
__CFXPreferencesGetSearchListForBundleID + 205
15  com.apple.CoreFoundation0x92fea555 CFPreferencesCopyAppValue + 
53
16  com.apple.SystemConfiguration   0x90fc7348 SCDynamicStoreCopyProxies + 
44
17  _scproxy.so 0x00746e31 get_proxies + 33
18  org.python.python   0x000ca2b3 PyEval_EvalFrameEx + 20419
19  org.python.python   0x000cbc88 PyEval_EvalFrameEx + 27032
20  org.python.python   0x000cbc88 PyEval_EvalFrameEx + 27032
21  org.python.python   0x000cc4ba PyEval_EvalCodeEx + 2042
22  org.python.python   0x00041ca2 function_call + 162
23  org.python.python   0xf375 PyObject_Call + 85
24  org.python.python   0x000c7d5b PyEval_EvalFrameEx + 10859
25  org.python.python   0x000cbc88 PyEval_EvalFrameEx + 27032
26  org.python.python   0x000cbc88 PyEval_EvalFrameEx + 27032
27  org.python.python   0x000cc4ba PyEval_EvalCodeEx + 2042
28  org.python.python   0x00041ca2 function_call + 162
29  org.python.python   0xf375 PyObject_Call + 85
30  org.python.python   0x00021c66 instancemethod_call + 422
31  org.python.python   0xf375 PyObject_Call + 85
32  org.python.python   0x0007c8a7 slot_tp_init + 87
33  org.python.python   0x0007b2d0 type_call + 176
34  org.python.python   0xf375 PyObject_Call + 85
35  org.python.python   0x000c8ad6 PyEval_EvalFrameEx + 14310
36  org.python.python   0x000cbc88 PyEval_EvalFrameEx + 27032
37  org.python.python   0x000cc4ba PyEval_EvalCodeEx + 2042
38  org.python.python   0x000cc647 PyEval_EvalCode + 87
39  org.python.python   0x000f0ae8 PyRun_FileExFlags + 168
40  org.python.python   0x000f1a23 PyRun_SimpleFileExFlags + 867
41  org.python.python   0x0010a42b Py_Main + 3163
42  org.python.python   0x1f82 0x1000 + 3970
43  org.python.python   

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum

New submission from James Tatum jta...@gmail.com:

ConfigParser defines a number of exception classes which all ultimately derive 
from ConfigParser.Error. ConfigParser.Error, however, only derives from 
Exception. These should all derive from StandardError.

--
components: Library (Lib)
files: ConfigParser.StandardError.patch
keywords: patch
messages: 111852
nosy: jtatum
priority: normal
severity: normal
status: open
title: ConfigParser exceptions do not subclass StandardError
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file18237/ConfigParser.StandardError.patch

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



[issue9404] IDLE won't launch on XP

2010-07-28 Thread Martin v . Löwis

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

 I have tried to use Explorer to reach the files and I get a
 permission error (the same occurs when trying to reach with the
 command prompt). I have tried to change the read only nature of this
 folder and it automatically reverts after the attribute is set. Also
 the folder is empty according to explorer. I have tried running it
 with my firewall disabled.

As a work-around, remove the hidden flag from the idlerc folder and
all of its files.

--
nosy: +loewis

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



[issue9404] IDLE won't launch on XP

2010-07-28 Thread Chris Leaf

Chris Leaf xcyborgni...@gmail.com added the comment:

Also the IDLE that I do manage to get open really doesn't work correctly, more 
errors appear on the command line console as I try to do things like close the 
IDLE window. So that doesn't serve as a useful tool either

--

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



  1   2   >