[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-05-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: Is the behavior you posted observable on trunk? -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-05-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: Okay, I see you have mentioned 2.6.5 in the Title. I will try the following to reproduce this. 1) Try a Basis Auth which is working. 2) Pass an Invalid username/password and see the behavior. -- ___ Python tracker

[issue8798] tkinter build variants on OSX

2010-05-24 Thread Ronald Oussoren
New submission from Ronald Oussoren : It would be nice if the binary installer supported both Tk 8.4 and Tk 8.5: the former is present on all current versions of OSX as part of the system, the latter is the only one that is supported in 64-bit code on OSX 10.6. A number of Tkinter users have

[issue8798] tkinter build variants on OSX

2010-05-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- assignee: ronaldoussoren -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8795] Error sending utf8 strings over syslog udp protocol

2010-05-24 Thread Vinay Sajip
Vinay Sajip added the comment: The message is a misleading one which seems to happen because a Unicode object is passed to the socket. This was fixed in trunk in r75586 (21 October 2009). I've now backported it to release26-maint (r81494). -- resolution: -> fixed status: open -> clo

[issue8799] Hang in lib/test/test_threading.py

2010-05-24 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : The tests for the ConditionVariable a fragile. On a slow computer, or when running a DEBUG build, the main thread can issue a condition.notify() call, even though the worker threads have not settled in on a wait() call. This causes the test to sta

[issue8800] add threading.RWLock

2010-05-24 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : Provided is a patch, implementing a RWLock using a ConditionVariable and Lock. It has rdlock() and wrlock() methods, and an unlock() method, similar to the rwlock API in pthreads. It has context managers rdlocked() and wrlocked(). In addition, it conf

[issue8801] Inconsistency in behaviour of urllib and urllib2 with file:// URLs

2010-05-24 Thread Vinay Sajip
New submission from Vinay Sajip : I encountered what seems like an incompatibility between urllib and urllib2 in the way they handle file:// URLs. Here's a console session to illustrate: vinay eta-karmic:/tmp$ echo Hello, world! >hello.txt vinay eta-karmic:/tmp$ cat hello.txt Hello, world! v

[issue8801] Inconsistency in behaviour of urllib and urllib2 with file:// URLs

2010-05-24 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil resolution: -> accepted ___ Python tracker ___ ___ Python-bug

[issue8795] Error sending utf8 strings over syslog udp protocol

2010-05-24 Thread Arie Skliarouk
Arie Skliarouk added the comment: How come the fix from October 21 have not got into Python 2.6.5 that is packaged into ubuntu 10.04? I overwrote the handlers.py from existing python 2.6.5 installation with the patched version and verified that utf8-encoded logs pass properly now. Thank you!

[issue8802] about oa module

2010-05-24 Thread sivaramakrishna uddanti
New submission from sivaramakrishna uddanti : i want to know about the oa module in python .. i searched in google but it was to no avail .. please provide me with the details of the mentioned module .. -- components: Extension Modules messages: 106353 nosy: sudanti priority: normal sev

[issue8800] add threading.RWLock

2010-05-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +jyasskin stage: -> patch review versions: +Python 3.2 -Python 2.7 ___ Python tracker ___ ___ Pyt

[issue8803] about oa module

2010-05-24 Thread sivaramakrishna uddanti
New submission from sivaramakrishna uddanti : i want to know about the oa module in python.. i searched in the google but it was to no avail . please provide me with the details of mentioned module.. -- components: Extension Modules messages: 106354 nosy: sudanti priority: normal severi

[issue8799] Hang in lib/test/test_threading.py

2010-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Strange, I have never noticed this (even on the buildbots). -- nosy: +jyasskin, pitrou versions: +Python 3.2 ___ Python tracker ___

[issue8802] about oa module

2010-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: This tracker is for reporting and fixing bugs in Python; it isn't the right place for your question. You could try asking on the comp.lang.python newsgroup (also available as a mailing list: http://mail.python.org/pipermail/python-list/ ). [AFAIK, no such

[issue8803] about oa module

2010-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: Duplicate of issue 8802. -- nosy: +mark.dickinson resolution: -> duplicate status: open -> closed ___ Python tracker ___ __

[issue8802] about oa module

2010-05-24 Thread sivaramakrishna uddanti
sivaramakrishna uddanti added the comment: if it is (oa module) not existing , how are functions like oa.oaString() ,oa.oaWaferInit() working in the script i have . On Mon, May 24, 2010 at 5:17 PM, Mark Dickinson wrote: > > Mark Dickinson added the comment: > > This tracker is for reporti

[issue8802] about oa module

2010-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: To repeat: this is the wrong forum for these questions; please take them elsewhere. -- ___ Python tracker ___ ___

[issue8799] Hang in lib/test/test_threading.py

2010-05-24 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Well, I saw this occasionally on my dual core laptop when working on the RWLock. A notify() before a target does a wait() is ineffective and it would wait indefinitely after the notify(5) call. This isn't a "proper" fix (I had another, more complex,

[issue8795] Error sending utf8 strings over syslog udp protocol

2010-05-24 Thread Vinay Sajip
Vinay Sajip added the comment: - Original Message > From: Arie Skliarouk > How come the fix from October 21 have not got into Python 2.6.5 > that is packaged into ubuntu 10.04? Not all bug-fixes are automatically backported from trunk to release26-maint branch, which is where 2.6.x

[issue8804] http.client should support SSL contexts

2010-05-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : 3.2 introduces SSL contexts, which allow bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure. http://docs.python.org/dev/py3k/library/http.client.html http.client.HTTPSConnection should allow pas

[issue8805] urllib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : 3.2 introduces SSL contexts, which allow bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure. http://docs.python.org/dev/py3k/library/http.client.html urllib.request.*URLOpener should allow passi

[issue8804] http.client should support SSL contexts

2010-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, sorry for the bad URL: http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLContext -- ___ Python tracker ___ ___

[issue8805] urllib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actual URL for SSL contexts (sorry): http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLContext -- ___ Python tracker ___ _

[issue8805] urllib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola, orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8806] ftplib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : 3.2 introduces SSL contexts, which allow bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure. http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLContext The FTP_TLS constructor should allow

[issue8807] poplib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : 3.2 introduces SSL contexts, which allow bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure. http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLContext The POP3_SSL constructor should allow

[issue8808] imaplib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : 3.2 introduces SSL contexts, which allow bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure. http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLContext The IMAP4_SSL constructor should allo

[issue8808] imaplib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8809] smptlib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : 3.2 introduces SSL contexts, which allow bundling SSL configuration options, certificates and private keys into a single (potentially long-lived) structure. http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLContext The SMTP_SSL constructor should allow

[issue5639] Support TLS SNI extension in ssl module

2010-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Python's main job is to make it *possible* to do things. It's the > application developer's job to decide what things should be done. > It would be entirely appropriate, though, for a higher-level interface > (for example, the httplib module) to take care o

[issue8810] TZ offset description is unclear in docs

2010-05-24 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : >From >: """ tzinfo.utcoffset(self, dt) Return offset of local time from UTC, in minutes east of UTC. """ This suggests that the return value is an integer represen

[issue8800] add threading.RWLock

2010-05-24 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: This patch doesn't apply cleanly against the py3k tree. Since Python 2.7 is in beta, and there's no 2.8, this can only go into python 3, so you should work against that tree. It's a bit annoying that the R in RWLock stands for a different word from in RLock

[issue8800] add threading.RWLock

2010-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure it's a good idea to have a default context manager, and default acquire/release methods. "In the face of ambiguity, refuse the temptation to guess". Is there any use in being able to use a RWLock inside a condition variable? Docstrings should be

[issue8777] Add threading.Barrier

2010-05-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +jyasskin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2010-05-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As far as I can tell, the TZ offset code can be simplified by eliminating conversion from timedelta to int and back in utcoffset() and dst() methods of time and datetime objects. The only reason for the restriction that I can think of is that some text

[issue8777] Add threading.Barrier

2010-05-24 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: You should probably mention that pthread_barrier and java.util.concurrent.CyclicBarrier are prior art for this. I'm thinking about them when looking at the API to see whether your differences make sense. "enter" seems to be the wrong term for this, since the

[issue8800] add threading.RWLock

2010-05-24 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: In this case, "acquire" isn't ambiguous. All the other lock types actually acquire a write lock, so it makes sense to have the operation with the same name they use also acquire a write lock on this object. I realized that read/write locks are actually share

[issue8800] add threading.RWLock

2010-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > In this case, "acquire" isn't ambiguous. All the other lock types > actually acquire a write lock, so it makes sense to have the operation > with the same name they use also acquire a write lock on this object. Well, it looks like a strange kind of "consisten

[issue8809] smptlib should support SSL contexts

2010-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +janssen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8808] imaplib should support SSL contexts

2010-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +janssen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8807] poplib should support SSL contexts

2010-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +janssen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8806] ftplib should support SSL contexts

2010-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +janssen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8805] urllib should support SSL contexts

2010-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +janssen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8804] http.client should support SSL contexts

2010-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +janssen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8142] libffi update to 3.0.9

2010-05-24 Thread Andrej Krpic
Changes by Andrej Krpic : -- nosy: +akrpic77 status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1289118] timedelta multiply and divide by floating point

2010-05-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch that implements Mark's timedelta_arith.py algorithms in C. With rounding well defined, I am close to withdrawing my opposition to supporting mixed timedelta with float operations. There is still one issue that I believe is worth

[issue8806] ftplib should support SSL contexts

2010-05-24 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'm assigning this one to me. Btw, before writing anything I think it would be better to decide what to do first, possibly by adopting the same approach everywhere (smtplib, imaplib, poplib, urllib and http.client). My proposal: - the user should still b

[issue8806] ftplib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > My proposal: > > - the user should still be able to use keyfile and certfile if desired, > they're quicker to use and backward compatibility must be maintained. > > - SSL context can be provided by passing a new "context" argument to the > constructor. >

[issue1289118] timedelta multiply and divide by floating point

2010-05-24 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I don't have a strong feeling about the method of rounding. My thinking is: If my application is sensitive to how the last microsecond is rounded, then I shouldn't be using a type that only gives me 1-microsecond precision. (Likewise, if my application is

[issue8811] fixing sqlite3 docs for py3k

2010-05-24 Thread Shashwat Anand
New submission from Shashwat Anand : The docs of sqlite3 for python 3.0 and 3.1 seems to be written for python 2.6 and hence wrong at many places. like, >>> for member in r: print member However the docs for sqlite3 in py3k trunk seems fine. The sqlite3 doc in py3k trunk should be used in th

[issue1289118] timedelta multiply and divide by floating point

2010-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: Re rounding: I'll just note that timedelta / timedelta -> float currently does round to nearest; I'd find it quite surprising if float * timedelta -> timedelta didn't round to nearest. -- ___ Python tracker

[issue1168427] Possible windows+python bug

2010-05-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8806] ftplib should support SSL contexts

2010-05-24 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment. -- keywords: +patch Added file: http://bugs.python.org/file17452/ftplib.patch ___ Python tracker ___ ___

[issue8016] Support for cp858

2010-05-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: A new codec is quite self-contained, so that's ok. -- ___ Python tracker ___ ___ Python-bugs-list

[issue8800] add threading.RWLock

2010-05-24 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: You're definitely right that posix and java don't make these usable from the normal lock API. And I don't think it's essential that they be usable as RLocks, although it's nice for Conditions. I think what I'm actually saying is that, if you have an acquire(

[issue1289118] timedelta multiply and divide by floating point

2010-05-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like we have a consensus on the rounding mode. Note, however that timedelta constructor rounds away from zero at least on Intel/MacOS X: [-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Should this be considered a bug?

[issue1289118] timedelta multiply and divide by floating point

2010-05-24 Thread Mark Dickinson
Mark Dickinson added the comment: Alexander, it looks like Roundup ate some of your message there. :) Yes, ideally I'd say that the constructor should be doing round-half-to-even. Though last time I looked, the constructor looked quite complicated (especially for float inputs); it may not b

[issue1289118] timedelta multiply and divide by floating point

2010-05-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Indeed. Here is what I intended: """ >>> from datetime import timedelta as d >>> [d(microseconds=i + .5)//d.resolution for i in range(-10,10)] [-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Should this be considered a bug? For

[issue8806] ftplib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Patch in attachment. You could add checks for: self.assertIs(self.client.sock.context, ctx) [...] self.assertIs(sock.context, ctx) (I know, the "context" attribute isn't documented, I'm going to fix this) -- ___

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : I see this in Python 2.7. No idea if this is a regression, mere future request, but doesn't it make sense to print the value `__path__` in the repr string? >>> import paste >>> paste >>> paste.__path__ ['/home/sridharr/.local/lib/python2.7/site-packages

[issue3143] Make the left sidebar in the doc collapsible

2010-05-24 Thread Georg Brandl
Georg Brandl added the comment: Committed the sidebar.js to Sphinx trunk. When Python switches to 1.0, we can activate the option to use it. Thanks Ezio! -- resolution: -> remind ___ Python tracker

[issue8813] SSLContext doesn't support loading a CRL

2010-05-24 Thread STINNER Victor
New submission from STINNER Victor : SSL Context should support loading a CRL. See M2Crypto patches: https://bugzilla.osafoundation.org/show_bug.cgi?id=12954 https://bugzilla.osafoundation.org/show_bug.cgi?id=11694 Or PyOpenSSL branch supporting CRL: https://launchpad.net/~rick-fdd/pyopenssl/crl

[issue8813] SSLContext doesn't support loading a CRL

2010-05-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8814] functools.WRAPPER_ASSIGNMENTS should include __annotations__

2010-05-24 Thread Terrence Cole
New submission from Terrence Cole : __annotations__ should be included in the set of attributes copied by default to a wrapped method. An example of the problem: >>> from functools import wraps >>> def mydecorator(fn): ... @wraps(fn) ... def inner(*args, **kwargs): ... return fn

[issue6662] HTMLParser.HTMLParser doesn't handle malformed charrefs

2010-05-24 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8813] SSLContext doesn't support loading a CRL

2010-05-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8016] Support for cp858

2010-05-24 Thread Georg Brandl
Georg Brandl added the comment: Thanks all, committed in r81499. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8814] functools.WRAPPER_ASSIGNMENTS should include __annotations__

2010-05-24 Thread Éric Araujo
Éric Araujo added the comment: The patch is fine. Can you check if some doc has to be updated to mention that? (files under Doc and docstrings in functools.py). Removing 3.1 since this is a new feature, and 3.3 since 3.2 is not frozen. -- nosy: +merwok versions: -Python 3.1, Python 3

[issue8616] Changes to content of Demo/turtle

2010-05-24 Thread Georg Brandl
Georg Brandl added the comment: Hmm, it seems that round_dance and scribble don't work with the 2.7 turtle version? I played a round of nim, but although I took the last stick, it said the computer won... -- ___ Python tracker

[issue8616] Changes to content of Demo/turtle

2010-05-24 Thread Georg Brandl
Georg Brandl added the comment: Committed the turtleDemo_27b1_to_turtleDemo.diff in r81502. -- ___ Python tracker ___ ___ Python-bugs-

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: You are mistaken. It doesn't include __path__ into repr, but __file__. It prints "(built-in)" if the filename is not set for some reason. -- nosy: +loewis resolution: -> invalid status: open -> pending ___ Python

[issue8324] add a distutils test command

2010-05-24 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-05-24, at 2:44 PM, Martin v. Löwis wrote: > You are mistaken. It doesn't include __path__ into repr, but __file__. It > prints "(built-in)" if the filename is not set for some reason. Ok. Why is __file__ not set for modules/packages installed to u

[issue6662] HTMLParser.HTMLParser doesn't handle malformed charrefs

2010-05-24 Thread STINNER Victor
STINNER Victor added the comment: Commited: 2.7 (r81500, r81501), 2.6 (r81503), 3.2 (r81504), 3.1 (r81505). -- nosy: +haypo resolution: -> fixed status: open -> closed ___ Python tracker __

[issue8814] functools.WRAPPER_ASSIGNMENTS should include __annotations__

2010-05-24 Thread Terrence Cole
Terrence Cole added the comment: Thank you for looking it over! The updated patch adds __annotations__ to the documentation where the value of WRAPPER_ASSIGNMENTS is given. I think it would be nice if the documentation showed WRAPPER_ASSIGNMENTS and WRAPPER_UPDATES in their own section, but

[issue8142] libffi update to 3.0.9

2010-05-24 Thread Florent Xicluna
Changes by Florent Xicluna : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8813] SSLContext doesn't support loading a CRL

2010-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-24 Thread Brett Cannon
Brett Cannon added the comment: Attaching a new patch by Rafe against Python 2.7. Unfortunately with 2.7 striving for an RC next, this should only target Python 3.2 and not 2.7. -- versions: +Python 3.2 -Python 2.7, Python 3.1 Added file: http://bugs.python.org/file17455/next-patch.txt

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-24 Thread Brett Cannon
Changes by Brett Cannon : Removed file: http://bugs.python.org/file13023/datetime-utc.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-24 Thread Brett Cannon
Changes by Brett Cannon : Removed file: http://bugs.python.org/file13029/datetime-utc-doc.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue8815] 65001

2010-05-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: haypo priority: normal severity: normal status: open title: 65001 ___ Python tracker ___ ___ Pytho

[issue8815] 65001

2010-05-24 Thread STINNER Victor
New submission from STINNER Victor : oops, sorry. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-b

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please provide a reproducible bug report? I have no idea what "paste" is or how it got into your .local folder. Please structure the bug report as follows: 1. this is what you did 2. this is what happened 3. this is what you expected to happen instea

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-05-24, at 3:46 PM, Martin v. Löwis wrote: > Can you please provide a reproducible bug report? I have no idea what "paste" > is or how it got into your .local folder. Please structure the bug report as > follows: > > 1. this is what you did > 2. t

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8777] Add threading.Barrier

2010-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue850997] mbcs encoding ignores errors

2010-05-24 Thread STINNER Victor
STINNER Victor added the comment: Updated version of the patch for py3k: - don't accept "ignore" error handler anymore - there is a FIXME near "mbcs_decode_error:" The whole test suite pass with these patch. -- Added file: http://bugs.python.org/file17456/mbcs_errors-py3k.patch

[issue8811] fixing sqlite3 docs for py3k

2010-05-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8811] fixing sqlite3 docs for py3k

2010-05-24 Thread Georg Brandl
Georg Brandl added the comment: Hmm, the patch mostly doesn't apply for me on the 3.1 branch. (Note that 3.0 docs aren't maintained anymore, just like 3.0 itself.) -- ___ Python tracker __

[issue8562] hasattr(open, 'newlines') example gives incorrect results from PEP0278

2010-05-24 Thread David Antliff
Changes by David Antliff : -- nosy: +David.Antliff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8811] fixing sqlite3 docs for py3k

2010-05-24 Thread Shashwat Anand
Shashwat Anand added the comment: ok, I think a few example codes are wrongly mentioned as if it were 2.x docs, however those examples at http://docs.python.org/dev/py3k/library/sqlite3 works correctly. Do by 'mostly', do you mean I should submit another patch with only those wrong examples r

[issue1368368] prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page

2010-05-24 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8796] Deprecate codecs.open()

2010-05-24 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8816] Add test cases for builtins

2010-05-24 Thread Gregory Nofi
New submission from Gregory Nofi : I'm attaching 2 patches with additional test cases for these built-in functions. They are mostly negative tests. * abs * callable: trunk only * len * long: trunk only * range: copied some py3k range tests into trunk * reduce: trunk only * vars I'm currently h

[issue8816] Add test cases for builtins

2010-05-24 Thread Gregory Nofi
Changes by Gregory Nofi : Added file: http://bugs.python.org/file17458/builtins.v3.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have two questions about the proposed implementation: 1. Why not follow pytz lead and expose an instance of UTC rather than the UTC class itself? 2. Is there a real need to add a boolean argument to utcnow()? I think timedelta.now(UTC()) or with utc

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-24 Thread Rafe Kaplan
Rafe Kaplan added the comment: Alexander, about 1, that's a pretty good question. I had originally wanted to do something like that but Brett Cannon at the time thought it was not the right approach. I don't recall the details. Maybe Brett can recall. I think we had that conversation in p

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-24 Thread Brett Cannon
Brett Cannon added the comment: We didn't do a singleton because I don't like singletons. =) Plus they muck with isinstance/issubclass if you don't expose the class. Basically there is no need to have it be a singleton, so why bother? And Rafe is right: since utcnow() already exists, why not

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, May 24, 2010 at 11:06 PM, Rafe Kaplan wrote: .. > On 2, we had discussions about how to pass parameters in to utcnow that we > DID record.  When I > suggested it, Brett said: > >  "...using a boolean flag over an argument is much less error-prone

  1   2   >