[issue14974] rename packaging.pypi to packaging.index

2012-06-25 Thread Éric Araujo

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

Fully agreed with Alexis.

 index is too generic to convey any kind of meaning and can be confused--at 
 least for
 me--with list.index. Sometimes it is better for a name to be specific.
But it is specific, thanks to the use of namespaces in Python: it’s 
distutils2.index/packaging.index.  Also take into account that this a module 
name that will be seen by people writing packaging tools (and thus familiar 
with “the Python Packages Index”), not end-users which may be Python developers.

Hynek: I don’t understand “I also think that the pypi term is overloaded with 
both meanings”.

--
versions: +Python 3.4

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



[issue14974] rename packaging.pypi to packaging.index

2012-06-25 Thread Éric Araujo

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


--
versions:  -Python 3.3

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



[issue10968] threading.Timer should be a class so that it can be derived

2012-06-25 Thread Éric Araujo

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

Ping.

--
keywords: +needs review
stage:  - patch review

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



[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-06-25 Thread Éric Araujo

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

Unassigning; I have to use my Python time for distutils bugs, or doc bugs for 
modules I actually like (I’m no fan of XML nor DOM :).  I would politely insist 
that doc fixes have to get backported to 2.7 unless it would be really 
bothersome (like a big change to IO docs done by Antoine and not backported).

--
assignee: eric.araujo - docs@python

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



[issue11728] mbox parser incorrect behaviour

2012-06-25 Thread Petri Lehtinen

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

Actually, you're right. Sorry for overlooking the RFC. But that said, the RFC 
itself refers to the same manpage as a reference that's mostly authoritative 
for those variations that are otherwise only documented in anecdotal form. So 
I guess it's quite a good reference after all :)

In Appendix A, RFC 4155 defines a set of rules for a default mbox format that 
maximizes interoperability between different mbox implementations.

The important things in the RFC concerning this issue are:

* There MUST be an empty line after each message.

* The RFC does not specify any escape syntax for message body lines starting 
with From . It says: Recipient systems are expected to parse full separator 
lines as they are documented above.

Because the RFC states that there must be an empty line after each message, and 
it aims for maximum interoperability, I think we can assume that there always 
is an empty line there. But looking for \n\nFrom  is not enough for finding 
the starting points of messages. We should actually parse the whole separator 
line which consists of From , an email address (addr-spec in RFC 2822), a 
timestamp (in UNIX ctime format without timezone), and a newline character.

I think this should be the default mode for reading mbox files. See #13698 for 
adding support for other formats.

--
components: +email
nosy: +barry
resolution: invalid - 
stage: committed/rejected - 
status: closed - open

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



[issue14920] help(urllib.parse) fails when LANG=C

2012-06-25 Thread Éric Araujo

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

IMO the right fix would have been to make the docstring a raw string.

--
nosy: +eric.araujo

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



[issue13698] Mailbox module should support other mbox formats in addition to mboxo

2012-06-25 Thread Petri Lehtinen

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

The default mode for reading mbox files should also be modified a bit to 
maximize the support fordifferent implementations. See #11728.

I think we should still use the mboxo format by default when writing, and the 
default format of RFC 4155 when reading. We could then add a format 
parameter to the mbox constructor to alter the writing and/or reading behavior 
to match a specific mbox format.

According to RFC 4155, the best reference for different mbox formats is 
http://qmail.org./man/man5/mbox.html.

--
components: +email
nosy: +barry

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



[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-25 Thread Mark Summerfield

Mark Summerfield m...@qtrac.eu added the comment:

How about a compromise? Deprecate (but keep BooleanVar) and add BoolVar with 
proper True/False behavior to match the other *Vars?

--

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

My first cut at a patch.  Made the logic in posix_listdir easy to follow, fixed 
up the docstring and docs.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file26139/larry.listdir.clarification.1.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Whoops, wrong issue, ignore that.  (Meant for #15176, going there now.)

--

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
stage: patch review - needs patch

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



[issue15176] Clarify the behavior of listdir(fd) in both code and documentation

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

My first cut at a patch.  Made the logic in posix_listdir easy to follow, fixed 
up the docstring and docs.  Posted in the correct issue this time.

(And Nick: I thought of that independently :D )

--
keywords: +patch
Added file: http://bugs.python.org/file26140/larry.listdir.clarification.1.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

What I did:
* Added dir_fd=None as a keyword only parameter.
* Gave top a default of ..
* Passed through dir_fd in two spots--that was all it took!
* Made fwalk contingent on os.stat and os.open both being
  in support_dir_fd, and os.listdir being in support_fd.
* Fixed docstring and docs.
* Added unit test for using dir_fd.

--
Added file: http://bugs.python.org/file26141/larry.fwalk.dir_fd.1.diff

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



[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-25 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

I'm attaching an updated patch for 2.7.  It fixes read, readline, readlines and 
readinto and includes tests.

More code auditing for other methods to fix is still needed.

--
versions:  -Python 3.1
Added file: http://bugs.python.org/file26142/fix-signal-eintr-read-27-gps02.diff

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



[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-25 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

The 3.* ubuntu arm buildbot hanging in test_io is very odd.

I'm going to undo my supposedly straight forward signal.alarm(...) to 
signal.setitimer(...) change first to see if that is related.

--

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



[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-25 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


Removed file: http://bugs.python.org/file22258/file-signal-eintr-27.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Removed file: 
http://bugs.python.org/file26139/larry.listdir.clarification.1.diff

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



[issue13799] Base 16 should be hexadecimal in Unicode HOWTO

2012-06-25 Thread Terry J. Reedy

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

I learned about different number bases in 8th grade math class (a long time 
ago) and how to use base 2 to win nim. I learned 'octal' and 'hexadecimal' much 
later. In the absence of an official, documented vocabulary for such non-Python 
concepts, I think this should be closed as overly picky and based on an 
erroneous premise. In any case, programmers should know both terms. Anyone with 
a deficient math education can look up 'base 16' on Wikipedia and be redirected 
to hexadecimal as a synonym and read an article that is much longer than one 
might expect, with more detail than most would want to know.

A more obscure term that one might more reasonably object to is 'radix', as in 
'radix 16', as a synonym for 'base'.

--

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



[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-25 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 95b071194ddd by Gregory P. Smith in branch '3.2':
Backout change e8f44ebacda7052267318cecf5b6f128d35add17.  Reverting the test
http://hg.python.org/cpython/rev/95b071194ddd

New changeset b4ae7aa21b46 by Gregory P. Smith in branch 'default':
Backout change e8f44ebacda7052267318cecf5b6f128d35add17.  Reverting the test
http://hg.python.org/cpython/rev/b4ae7aa21b46

--

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



[issue13799] Base 16 should be hexadecimal in Unicode HOWTO

2012-06-25 Thread Georg Brandl

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

±0 from me.

--
nosy: +georg.brandl

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



[issue14273] distutils2: logging handler not properly initialized

2012-06-25 Thread Vinay Sajip

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

It's been a while since I looked at this issue, so it would be helpful if you 
summarised exactly what sort of events are logged at INFO or DEBUG level, and 
why adding a handler early doesn't work. You said in msg155614 that you would 
try adding the handler earlier as per my suggestion in msg155584, but I see no 
feedback on how that changed things.

--

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



[issue14273] distutils2: logging handler not properly initialized

2012-06-25 Thread Vinay Sajip

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

One more thing (referring to the opening comment by Tarek): if you add a 
NullHandler to the top-level logger as recommended in the library docs for 
libraries, you won't get the No handlers could be found message.

--

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



[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-25 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


Removed file: 
http://bugs.python.org/file22262/test_and_fix_readers_3.2-gps02.diff

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



[issue13799] Base 16 should be hexadecimal in Unicode HOWTO

2012-06-25 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

I was tempted to suggest that 'hexadecimal' would be more searchable than 'base 
16', but the first Google hit for 'base 16' is:

  en.wikipedia.org/wiki/Hexadecimal

:-)

--
nosy: +mark.dickinson

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Antoine Pitrou

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


--
nosy: +neologix
versions: +Python 3.4

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Second revision of patch.
* Removed os.fwalk from os.supports_dir_fd.  As Georg points out,
  you can't test it.  (Well, you can, but only if the test would
  have succeeded.)
* Changed fstat(fd) calls to stat(fd) calls.

--
Added file: http://bugs.python.org/file26143/larry.fwalk.dir_fd.2.diff

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



[issue13173] Default values for string.Template

2012-06-25 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

If the Template defaults should be attached directly to the template instance, 
then they should be attached directly to the string instance, for classic and 
modern string formatting. And this obviously is absurd.

I agree with Éric, to mention ChainMap class in the string formatting 
documentation will be enough.

--
nosy: +storchaka

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Here's a variant of the patch adding os.walk(dir_fd=) support.  I'm not pushing 
for this.  I'm not sure it's a must-have; it seems like a nice-to-have, but 
we're past the time for nice-to-haves.

--
Added file: http://bugs.python.org/file26144/larry.fwalk.and.walk.dir_fd.1.diff

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



[issue15176] Clarify the behavior of listdir(fd) in both code and documentation

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Removed do we have os.listdir checks from the unit tests.  Yes, Virginia, we 
always have os.listdir in Python 3.3.

--
Added file: http://bugs.python.org/file26145/larry.listdir.clarification.2.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

Larry, please regenerate patch in Mercurial for review. I have some comments.

--
nosy: +storchaka

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



[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-25 Thread klappnase

klappnase klappn...@web.de added the comment:

I agree that get() should better return a boolean in any case, however the bug 
then is not one of BooleanVar but rather one of tk.getboolean(). I did some 
experimenting with get() and it seems that there are three possibilities: 
getboolean() returns True/False as it should when the variable value was 
previously set() to anything Tcl accepts as boolean value (like 'yes'/'no', 
'0'/'1', 'on'/'off', 'true'/'false'). If something which is not a proper 
Tcl-bool was passed to set() before, getboolean will produce a TclError or 
TypeError.
If set() got 0/1 (as integers) or True/False before, getboolean() will return 
0/1 and this appears to me to be the only bug here. But this is not at all a 
sole BooleanVar bug, e.g.:

 root=Tk()
 root.tk_strictMotif()
0
 root.tk_strictMotif(1)
1

You will find this everywhere in Tkinter where getboolean() is used, so I think 
that rather this should be fixed in _tkinter.c than applying a workaround to 
BooleanVar.get() and leaving all other uses of getboolean() as they are; even 
worse, if BooleanVar.set() was changed to accept only True/False and 
getboolean() left as it is, you could not pass the return value of getboolean() 
any longer to BooleanVar.get() which would be really bad.

As far as set() is concerned, it should at least allow everything that Tcl 
accepts as boolean, according to http://wiki.tcl.tk/16235 these are at least 
the above mentioned 'yes'/'no', '0'/'1', 'on'/'off', 'true'/'false' (btw. all 
of these seem to be ok even case insensitive on the tcl side) plus of course 
0/1 and True/False. Otherwise it might break existing code. 

Terry:
Since the purpose of Variables is to synchronize values between user code and 
tk, TypeVar().set(x).get() should be x when has the proper type. That is now 
true for everything but bool/Boolean.
But when the input type is not proper you can do e.g.:

 d = DoubleVar()
 d.set('1.1')
 d.get()
1.1
 i = IntVar()
 i.set(True)
 i.get()
1
 

I think the Variable classes can also be considered convenience objects that 
save the application programmer a lot of headaches when they have to convert 
Python objects into Tcl which usually expects strings, so I think there is 
nothing wrong with set() accepting improper values.

--

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



[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-25 Thread klappnase

klappnase klappn...@web.de added the comment:

...you could not pass the return value of getboolean() any longer to 
BooleanVar.get() which would be really bad.

Ooops, typo, should be BooleanVar.set() of course.

--

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



[issue1508475] transparent gzip compression in urllib

2012-06-25 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

The first step is to answer on the fundamental question: on what level 
transparent decompression will work? On http.client level or on urllib level? 
Patch for first case will be much more difficult, but will benefit from 
compression in other http-based protocols.

--

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



[issue3244] multipart/form-data encoding

2012-06-25 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Thanks for the patch, Forest Bond. 

However, the way I look at this feature, it could be added into  urllib.request 
as a separate handler called MultiPostHandler and request object when it 
requires it should be able to add it and then use it.
Here is a first version of this patch, which would give the idea of how it 
would be added to the urllib.request (Note this is python3 adaptation of PyPi 
package by name MultipartPostHandler). I shall see to add this in 3.3 and shall 
include the tests/docs/howto.

--
Added file: http://bugs.python.org/file26146/Issue3244.patch

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Regenerated fwalk(dir_fd=) patch to make Rietveld happy.

--
Added file: http://bugs.python.org/file26147/larry.fwalk.dir_fd.3.diff

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



[issue12559] gzip.open() needs an optional encoding argument

2012-06-25 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

Why not use io.TextWrapper? I think it is the right answer for this issue.

--
nosy: +storchaka

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Regenerated walk(dir_fd=) patch to make Rietveld happy.

--
Added file: http://bugs.python.org/file26148/larry.fwalk.and.walk.dir_fd.2.diff

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



[issue15176] Clarify the behavior of listdir(fd) in both code and documentation

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Regenerated patch to make Reitveld happy.

--
Added file: http://bugs.python.org/file26149/larry.listdir.clarification.3.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

Rietveld is not happy with git diffs.

--

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



[issue15176] Clarify the behavior of listdir(fd) in both code and documentation

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

GRAHH HULK SMASH
Regenerating again, because I wasn't actually fresh enough last time.

--
Added file: http://bugs.python.org/file26150/larry.listdir.clarification.4.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Fourth time's the charm.

--
Added file: http://bugs.python.org/file26151/larry.fwalk.dir_fd.4.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

What's better than regenerating a bunch of diffs on the off chance that it'll 
make Rietveld happy?  Nothing, that's what.

--
Added file: http://bugs.python.org/file26152/larry.fwalk.and.walk.dir_fd.3.diff

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



[issue1508475] transparent gzip compression in urllib

2012-06-25 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

I think, the transparent compression should work at http.client level. I also 
agree with other points made by Serhiy:

- transparent decompression should delete headers Content-Encoding and 
Content-Length (this is as per RFC too)

- Should not do another compression if the user has a explicit specified intent 
of using Content-Encoding: gzip and is ready to do decompression himself.

- This transparent compression/decompression would require the availability 
gzip module, if not then the feature may be disabled and normal 
request-response cycle would proceed.

- I think, having it 'ON' with a flag to switch 'OFF' would be more desirable 
than having this feature via Handler. The reason being it can help in 
performance of any requests on servers that support it and browsers have 
adopted similar approach too.

--

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



[issue15178] Doctest should handle situations when test files are not readable

2012-06-25 Thread Bohuslav Slavek Kabrda

New submission from Bohuslav Slavek Kabrda bkab...@redhat.com:

Hi,
I think that doctest should be able to handle situations when the file that is 
being tested does not exist/is unreadable/etc...
Currently, doctest raises an IOError exception and the whole Python ends with 
an exception and backtrace.
I'm attaching a patch that fixes this and prints a simple description of what 
has gone wrong.

Thanks for considering!

--
components: Library (Lib)
files: doctest-dont-end-with-exception-on-unreadable-files.patch
keywords: patch
messages: 163936
nosy: bkabrda
priority: normal
severity: normal
status: open
title: Doctest should handle situations when test files are not readable
type: behavior
versions: Python 2.7
Added file: 
http://bugs.python.org/file26153/doctest-dont-end-with-exception-on-unreadable-files.patch

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


Removed file: http://bugs.python.org/file26143/larry.fwalk.dir_fd.2.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


Removed file: 
http://bugs.python.org/file26144/larry.fwalk.and.walk.dir_fd.1.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


Removed file: http://bugs.python.org/file26147/larry.fwalk.dir_fd.3.diff

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



[issue15176] Clarify the behavior of listdir(fd) in both code and documentation

2012-06-25 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


Removed file: 
http://bugs.python.org/file26145/larry.listdir.clarification.2.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


Removed file: 
http://bugs.python.org/file26148/larry.fwalk.and.walk.dir_fd.2.diff

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



[issue15176] Clarify the behavior of listdir(fd) in both code and documentation

2012-06-25 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


Removed file: 
http://bugs.python.org/file26149/larry.listdir.clarification.3.diff

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Georg Brandl

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

Let's keep it to fwalk.

--

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



[issue10053] Don’t close fd when FileIO.__init__ fails

2012-06-25 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Indeed, there is no pure-Python FileIO: _pyio.py imports it from C:
from _io import FileIO

--
nosy: +amaury.forgeotdarc

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



[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Kazutaka Morita

New submission from Kazutaka Morita morita.kazut...@gmail.com:

If we stop a syslog daemon when running the following program, it
leads to an infinite loop.

==
#!/usr/bin/env python

import eventlet
from logging.handlers import SysLogHandler
import time
import logging

eventlet.patcher.monkey_patch(all=False, socket=True)

logger = logging.getLogger('log')
logger.addHandler(SysLogHandler('/dev/log'))

while True:
print send a message to logger
logger.error(syslog test)
time.sleep(1)
==

It is because there is a close leak in the python logging module, and
SysLogHandler continues to send a log message against the closed
connection forever.

The following patch seems to fix this problem:

diff -r 3b5545ba6432 Lib/logging/handlers.py
--- a/Lib/logging/handlers.py   Wed Jun 13 22:15:26 2012 -0400
+++ b/Lib/logging/handlers.py   Mon Jun 25 20:27:46 2012 +0900
@@ -801,7 +801,11 @@
 except socket.error:
 self.socket.close()
 self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
-self.socket.connect(address)
+try:
+self.socket.connect(address)
+except socket.error:
+self.socket.close()
+raise
 
 def encodePriority(self, facility, priority):
 

--
components: Library (Lib)
messages: 163939
nosy: Kazutaka.Morita
priority: normal
severity: normal
status: open
title: An infinite loop happens when we use SysLogHandler with eventlet
type: behavior
versions: Python 2.7, Python 3.3

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



[issue14443] Distutils test_bdist_rpm failure

2012-06-25 Thread Georg Brandl

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

Ping.  I would like to have this test failure fixed for 3.3 rc.

--
nosy: +georg.brandl
priority: normal - deferred blocker

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



[issue4489] shutil.rmtree is vulnerable to a symlink attack

2012-06-25 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 2e2329aeb5c1 by Hynek Schlawack in branch 'default':
#4489 Make fd based rmtree work on bytes
http://hg.python.org/cpython/rev/2e2329aeb5c1

--

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



[issue12927] test_ctypes: segfault with suncc

2012-06-25 Thread Georg Brandl

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

Ping.  Could we update libffi for 3.3 final?

--
nosy: +doko, georg.brandl, loewis

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Sure, for 3.3 anyway.

I think walk(dir_fd=) should be okay for 3.4.  There's a better implementation 
anyway, where walk() just calls fwalk() and strips the last element off the 
yielded stuff.  But moving on!

--

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



[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Kazutaka Morita

Changes by Kazutaka Morita morita.kazut...@gmail.com:


--
hgrepos: +137
keywords: +patch
Added file: http://bugs.python.org/file26154/syslog.patch

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



[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Kazutaka Morita

Changes by Kazutaka Morita morita.kazut...@gmail.com:


--
hgrepos:  -137

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



[issue15176] Clarify the behavior of listdir(fd) in both code and documentation

2012-06-25 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 8172d8e907a4 by Larry Hastings in branch 'default':
Issue #15176: Clarified behavior, documentation, and implementation
http://hg.python.org/cpython/rev/8172d8e907a4

--
nosy: +python-dev

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



[issue15180] Cryptic traceback from os.path.join when mixing str bytes

2012-06-25 Thread Nick Coghlan

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

As seen in #4489, the traceback when mixing str and bytes in os.path.join is 
rather cryptic and hard to decipher if you've never encountered it before:

 import os.path
 os.path.join(b'', '')
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib64/python3.2/posixpath.py, line 78, in join
if b.startswith(sep):
TypeError: startswith first arg must be str or a tuple of str, not bytes

 os.path.join('', b'')
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib64/python3.2/posixpath.py, line 78, in join
if b.startswith(sep):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str

While it's slightly less cryptic with a real source file (since you can at 
least see the os.path.join call), you have to have some how idea of how 
os.path.join works to realise that:
- type(sep) == type(args[0])
- b in args[1:]

The challenge is to generate a more user friendly error message without making 
the normal case of correct types any slower.

--
components: Library (Lib)
messages: 163945
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Cryptic traceback from os.path.join when mixing str  bytes
type: enhancement
versions: Python 3.3

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



[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-06-25 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 814557548af5 by Jesus Cea in branch 'default':
Skip test in freebsd entirely - Kernel bug in freebsd7/8/9 - #10142: Support 
for SEEK_HOLE/SEEK_DATA
http://hg.python.org/cpython/rev/814557548af5

--

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



[issue12927] test_ctypes: segfault with suncc

2012-06-25 Thread Stefan Krah

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

Coincidentally, I've just asked the Solaris buildbot owner if he could
try out the system libffi. I'm not sure if even the latest libffi
supports suncc out of the box. Meador, did you get any answers on
libffi-discuss?

--

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



[issue15180] Cryptic traceback from os.path.join when mixing str bytes

2012-06-25 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Catch TypeError, check whether bytes  str are being mixed, re-raise if not, 
say something user-friendly if yes?

--
nosy: +hynek

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



[issue15177] Support os.walk(dir_fd=) and os.fwalk(dir_fd=)

2012-06-25 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 7bebd9870c75 by Larry Hastings in branch 'default':
Issue #15177: Added dir_fd parameter to os.fwalk().
http://hg.python.org/cpython/rev/7bebd9870c75

--
nosy: +python-dev

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



[issue15177] Support os.fwalk(dir_fd=)

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

While I was at it, I changed the subject to accurately reflect the changeset's 
final disposition.

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed
title: Support os.walk(dir_fd=) and os.fwalk(dir_fd=) - Support 
os.fwalk(dir_fd=)

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



[issue15176] Clarify the behavior of listdir(fd) in both code and documentation

2012-06-25 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Good news, everyone!

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

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



[issue10142] Support for SEEK_HOLE/SEEK_DATA

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

Jesús Cea Avión j...@jcea.es added the comment:

Stefan, I am confused with your comments. The thing is that freebsd defines 
SEEK_HOLE/SEEK_DATA but reports an error when you use them. I guess they are 
errors when used on a filesystem that doesn't support them. This is a bug, in 
my opinion (if a FS doesn't support them, compatible implementation are 
trivial).

In the meantime, I am skipping the test completely under freebsd7/8/9. patch 
just committed.

Testing the patch, but freebsd7 buildbot is really SLOW.

--

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



[issue15180] Cryptic traceback from os.path.join when mixing str bytes

2012-06-25 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Yeah, that should do it - I just hadn't looked at the structure of the code to 
see how annoying it will be to separate the check out from the if statement.

Good use case for PEP 409, too :)

--

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



[issue15181] importlib.h: suncc warnings

2012-06-25 Thread Stefan Krah

New submission from Stefan Krah stefan-use...@bytereef.org:

suncc complains about negative values that are assigned to unsigned
char:

Python/importlib.h, line 3634: warning: initializer does not fit or is out of 
range: -125
Python/importlib.h, line 3635: warning: initializer does not fit or is out of 
range: -125
[...]

--
components: Build
messages: 163954
nosy: skrah
priority: normal
severity: normal
status: open
title: importlib.h: suncc warnings
type: behavior
versions: Python 3.3

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



[issue10142] Support for SEEK_HOLE/SEEK_DATA

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

Jesús Cea Avión j...@jcea.es added the comment:

Greog, I am confused about ARM ubuntu errors. Do we know what ubuntu version is 
running there?. What is the filesystem?.

I am seriously thinking about supporting these flags only in real OSs like 
Solaris  derivatives :-)

--

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



[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-06-25 Thread Georg Brandl

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

Jesus, what do you think about removing that test entirely?

IMO it is not our job to verify the OS' proper behavior in the face of 
SEEK_HOLE/SEEK_DATA; it is enough to provide the constants, and let whoever 
uses it face the perils of the platform.

--

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



[issue10142] Support for SEEK_HOLE/SEEK_DATA

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

Jesús Cea Avión j...@jcea.es added the comment:

Georg, I am fine with that if you are fine with that :-). Please, confirm :)

(sorry for mistyping your name before!)

--

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



[issue13950] rm commented-out code

2012-06-25 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 381c7f897207 by Ned Deily in branch 'default':
Issue #13950: Improve support for OS X Xcode 4:
http://hg.python.org/cpython/rev/381c7f897207

--
nosy: +python-dev

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



[issue13950] rm commented-out code

2012-06-25 Thread Ned Deily

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


--
Removed message: http://bugs.python.org/msg163958

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



[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-25 Thread Ned Deily

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

[wrong issue number in commit]
New changeset 381c7f897207 by Ned Deily in branch 'default':
Issue #13590: Improve support for OS X Xcode 4:
http://hg.python.org/cpython/rev/381c7f897207

I think this is now in decent shape for 3.3.0b1.
Remaining work includes:
1. A backport of a minimal subset to 2.7 and 3.2 so they are usable with
   Xcode 4 as well
2. Further updates to the README and other documentation
3. Support in distutils2 and post-3.3 packaging
4. More robust support in configure
Some of these items may get pushed to separate issues.

--
priority: deferred blocker - critical
stage: commit review - needs patch

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



[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-06-25 Thread Stefan Krah

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

Jes??s Cea Avi??n rep...@bugs.python.org wrote:
 Stefan, I am confused with your comments.

The FreeBSD bug report you linked to had a test case attached. The test case
uses errno == ENXIO. I could not reproduce the failure, so in my *first* comment
I questioned whether the failures in test_posix were caused by that particular
bug.

Then I noticed that the test_posix traceback shows errno == 25 == ENOTTY.
So I ran the test case with errno == ENOTTY and I *could* reproduce the
bug.

In short, I think you linked to the right bug after all. :)

--

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



[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-06-25 Thread Ned Deily

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

An initial set of changes to support Xcode 4.3+ have been applied for  Python 
3.3.0b1 have been applied via Issue13590.  As noted there, a back port of some 
subset is needed for 3.2 and 2.7.  I'll update this after 3.3.0b1 has been 
released.

--

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-25 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Currently, we get the following warnings:

[ 26/369] test_ipaddress
/home/vagrant/default/Lib/ipaddress.py:1401: BytesWarning: str() on a bytes 
instance
  addr = str(address).split('/')
/home/vagrant/default/Lib/ipaddress.py:2004: BytesWarning: str() on a bytes 
instance
  addr = str(address).split('/')
/home/vagrant/default/Lib/ipaddress.py:1258: BytesWarning: str() on a bytes 
instance

Hadn't time yet to look into it, I might update the ticket as soon as I had.

--

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



[issue15171] Fix 64-bit building for buildbot scripts (3.2)

2012-06-25 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 334ff92a8483 by Stefan Krah in branch '3.2':
Issue #15171: Try the HOST_PYTHON hack for 3.2.
http://hg.python.org/cpython/rev/334ff92a8483

--
nosy: +python-dev

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



[issue15178] Doctest should handle situations when test files are not readable

2012-06-25 Thread R. David Murray

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

In general in Python we let exceptions speak for themselves.  It would, 
however, probably be reasonable to add the try/except and error message in 
_test, which should only be called when the module is run as a script.

--
nosy: +r.david.murray
versions: +Python 3.2, Python 3.3

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



[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread R. David Murray

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


--
nosy: +vinay.sajip
versions: +Python 3.2

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



[issue15178] Doctest should handle situations when test files are not readable

2012-06-25 Thread Bohuslav Slavek Kabrda

Bohuslav Slavek Kabrda bkab...@redhat.com added the comment:

Thanks for the comment David. I'm attaching second version that does the same 
in the _test function.

--
Added file: 
http://bugs.python.org/file26155/doctest-dont-end-with-exception-on-unreadable-files-v2.patch

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



[issue15170] Fix 64-bit building for buildbot scripts (2.7)

2012-06-25 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 723dbf99f9c2 by Stefan Krah in branch '2.7':
Issue #15170: Try the HOST_PYTHON hack for 2.7.
http://hg.python.org/cpython/rev/723dbf99f9c2

--

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



[issue15180] Cryptic traceback from os.path.join when mixing str bytes

2012-06-25 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Here's a fix. It would be nice if it could make for 3.3 final I guess. Tests 
pass for Linux and OS X.

--
keywords: +needs review, patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file26156/nicer-error-on-str-bytes-mix.diff

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



[issue15182] find_library_file() should try to link

2012-06-25 Thread Jeroen Demeyer

New submission from Jeroen Demeyer jdeme...@cage.ugent.be:

The find_library_function() in Lib/distutils/unixccompiler.py does a very 
simple-minded check to determine the existence of a library. It basically only 
checks that a certain .so file exists. This may lead to false positives: the 
mere existence of a .so file does not imply that we can actually link against 
that library.

In addition to (or even better: instead of) checking the existence of the file, 
you should try to (in the spirit of autoconf) compile a simple program using 
$CC -l$LIB prog.c -o prog

One particular instance of where things can go wrong is with a 32-bit/64-bit 
multilib installation. Python might find a 64-bit library in /usr/lib when 
we're actually compiling 32-bit with libraries in /usr/lib32.

--
assignee: eric.araujo
components: Distutils
messages: 163968
nosy: eric.araujo, jdemeyer, tarek
priority: normal
severity: normal
status: open
title: find_library_file() should try to link
type: compile error
versions: Python 2.7

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



[issue3244] multipart/form-data encoding

2012-06-25 Thread Forest Bond

Forest Bond for...@alittletooquiet.net added the comment:

Hi Senthil Kumaran,

Thanks for the feedback  patch.

I agree having support in urllib probably makes some sense. But why not 
implement basic support elsewhere and then tie it into urllib so those of us 
using something else can also use it? I'm using httplib in my application.

Thanks,
Forest

--

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



[issue15178] Doctest should handle situations when test files are not readable

2012-06-25 Thread R. David Murray

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

Great, thanks.

There's a loop around testfiles.  I think it would be nicer to not call 
sys.exit.  You could at the same time fix what appears to be a bug in the loop 
code.  It looks like 1 is currently returned only if the last file fails.

Hmm, and given that there is a bug, adding tests would be great if you are up 
for it.  I don't think there are currently any tests of the doctest command 
line functionality.  That's more complicated than writing the fix, though :)

--

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



[issue15171] Fix 64-bit building for buildbot scripts (3.2)

2012-06-25 Thread Stefan Krah

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

The buildbot works with the HOST_PYTHON hack. Should we just leave
this as a permanent solution? -- I don't feel like touching the project
files for stable releases.

[%CD% should probably be quoted in the patch.]

--
components: +Build
resolution:  - fixed
stage:  - commit review
type:  - crash
versions: +Python 3.2

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



[issue12927] test_ctypes: segfault with suncc

2012-06-25 Thread Stefan Krah

Changes by Stefan Krah stefan-use...@bytereef.org:


--
nosy: +Justin.Venus

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



[issue15172] SHA1 failures on the 64-bit Windows buildbot

2012-06-25 Thread Antoine Pitrou

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

By contrast, 2.7 and 3.2 look ok.

--

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



[issue15180] Cryptic traceback from os.path.join when mixing str bytes

2012-06-25 Thread Arfrever Frehtes Taifersar Arahesis

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


--
nosy: +Arfrever

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



[issue15172] SHA1 failures on the 64-bit Windows buildbot

2012-06-25 Thread Jeremy Kloth

Jeremy Kloth jeremy.kloth+python-trac...@gmail.com added the comment:

The OpenSSL (64-bit build) does not pass its own tests, while the 32-bit build 
from the same source works just fine.

Stefan, how did you get your 64-bit build to work?

--

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



[issue12927] test_ctypes: segfault with suncc

2012-06-25 Thread Meador Inge

Meador Inge mead...@gmail.com added the comment:

Stefan, nope -- I never got a reply.  I will try again.

--

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



[issue13698] Mailbox module should support other mbox formats in addition to mboxo

2012-06-25 Thread endolith

endolith endol...@gmail.com added the comment:

 - If the mailbox is written using the mboxrd format and read using the mboxo 
 format, lines that were meant to start with From  are changed to From 
 . This is a new type of corruption.

Well, yes.  So the choices are:

mboxrd as default: Sometimes results in corruption
mboxo  as default: Always results in corruption

Is there a way to reliably detect the format of the file and produce an error 
if it seems to be reading it wrong?

If not, maybe just include a function that guesses the format so the correct 
option can be found easily?  If there are consecutive  quoted lines, like 
this, for instance:

This is the body.
From my point of view
there are 3 lines.

then it was probably encoded with mboxrd?  If instead you find:

This is the body.
From my point of view
there are 3 lines.

then it was probably encoded with mboxo?

--

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



[issue15172] SHA1 failures on the 64-bit Windows buildbot

2012-06-25 Thread Stefan Krah

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

It worked out of the box for me. These are the versions I use:

# openssl version:
svn export http://svn.python.org/projects/external/openssl-1.0.1c

# nasm version (installer):
nasm-2.10.01-installer.exe


Let me see what I did:

cd openssl-1.0.1c
nmake -f ms\nt.mak clean
nmake -f ms\nt64.mak clean
cd ..\cpython
Tools\buildbot\clean.bat
Tools\buildbot\clean-amd64.bat
Tools\buildbot\build-amd64.bat
cd PCbuild\amd64

python_d.exe -m test -uall test_hmac
[1/1] test_hmac
1 test OK.
[84 refs]


python_d.exe -m test -uall test_ssl
[...]
  File C:\Users\stefan\pydev\cpython\lib\ssl.py, line 513, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Error 10054] An existing connection was forcibly closed 
by the remote host


Now I get this error but it seems quite unrelated.

--

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



[issue15179] An infinite loop happens when we use SysLogHandler with eventlet

2012-06-25 Thread Vinay Sajip

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

Why should the socket need closing if the connect fails? This seems a flawed 
contract; either connect() should work (in which case the socket will need 
closing when it's finished with) or it should fail, not connect and not require 
a close call (as it isn't connected). Could this be a problem with eventlet? 
One could argue that the leak is actually in whatever implements socket.connect 
in this case (presumably eventlet).

--

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



[issue15172] SHA1 failures on the 64-bit Windows buildbot

2012-06-25 Thread Stefan Krah

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

The openssl self tests also pass here.

--

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



[issue15172] SHA1 failures on the 64-bit Windows buildbot

2012-06-25 Thread Jeremy Kloth

Jeremy Kloth jeremy.kl...@gmail.com added the comment:

I've narrowed this down to a CPU capabilities issue with OpenSSL.
What CPU are you using?  I have a Q9450 (Core2 Quad)

If I set OPENSSL_ia32cap to 0 the self tests work.  I'm now off to
debug OpenSSL CPUID support... :(

--

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



[issue15172] SHA1 failures on the 64-bit Windows buildbot

2012-06-25 Thread Antoine Pitrou

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

 If I set OPENSSL_ia32cap to 0 the self tests work.  I'm now off to
 debug OpenSSL CPUID support... :(

At this point, I think asking for help on an OpenSSL mailing-list or IRC 
channel is a good idea.
(unless you want to do the debugging yourself, that is :))

--

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



  1   2   >