ANN: PyDTLS

2013-01-08 Thread rbit
I would like to announce Datagram Transport Layer Security for Python. From the top of the project README: PyDTLS brings Datagram Transport Layer Security (DTLS - RFC 6347: http://tools.ietf.org/html/rfc6347) to the Python environment. In a nutshell, DTLS brings security (encryption, server

FYI - wiki.python.org compromised

2013-01-08 Thread Brian Curtin
On December 28th, an unknown attacker used a previously unknown remote code exploit on http://wiki.python.org/. The attacker was able to get shell access as the moin user, but no other services were affected. Some time later, the attacker deleted all files owned by the moin user, including all

Re: Vigil, the eternal morally vigilant programming language

2013-01-08 Thread Terry Reedy
On 1/7/2013 11:01 AM, Alain Ketterlin wrote: I just came across Vigil, an extension to python for serious software engineers, I hope that last part comes from a sense of humor. at https://github.com/munificent/vigil and thought everybody in this group would be interested (sorry if it has

Re: Problem with Unicode char in Python 3.3.0

2013-01-08 Thread Terry Reedy
On 1/7/2013 8:12 AM, Terry Reedy wrote: On 1/7/2013 7:57 AM, Franck Ditter wrote: print('\U0001d11e') Traceback (most recent call last): File pyshell#1, line 1, in module print('\U0001d11e') UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001d11e' in position 0: Non-BMP

Re: test failed: test_urlwithfrag

2013-01-08 Thread Terry Reedy
On 1/7/2013 1:26 PM, Elli Lola wrote: $ ./python -m test -v test_urlwithfrag == CPython 3.3.0 (default, Jan 4 2013, 23:08:00) [GCC 4.6.3] == Linux-3.2.0-35-generic-pae-i686-with-debian-wheezy-sid little-endian == /home/me/Programme/Python/Python-3.3.0/build/test_python_30744 Testing with

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Terry Reedy
On 1/7/2013 8:23 PM, Steven D'Aprano wrote: On Mon, 07 Jan 2013 22:32:54 +, Oscar Benjamin wrote: An example: Earlier today I was looking at some experimental data. A simple model of the process underlying the experiment suggests that two variables x and y will vary in direct proportion to

Re: Calculate Big Number

2013-01-08 Thread Gisle Vanem
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: py from timeit import Timer py t1 = Timer((a**b)*(c**d), setup=a,b,c,d = 10, 25, 2, 50) py min(t1.repeat(repeat=5, number=10)) 0.5256571769714355 So that's about 5 microseconds on my (slow) computer. That's pretty fast. So is

How to call ltm function using rpy package in python

2013-01-08 Thread Mohit Khanna
I am trying the following code-- from rpy import * r.library(ltm) dat= #some data frame or matrix r.ltm(r('dat~z1')) error coming is--- RPy_RException: Error in eval(expr, envir, enclos) : object 'dat' not found Please tell me the right way to call ltm function using rpy library --

Re: How to get the selected text of the webpage in chrome through python ?

2013-01-08 Thread iMath
在 2013年1月8日星期二UTC+8下午12时20分28秒,iMath写道: How to get the selected text of the webpage in chrome through python ? I need the code ,cuz I am only familiar with Python ,so it would be better to give me the code written in Python . You can also give me the code in other programming language

Newbe accessing MySQL, need something like perl's prepare_cached

2013-01-08 Thread Morten Guldager
'Aloha Friends! Still quite new to python I'm trying to access a MySQL database. Being a former perl programmer I recognize much of the semantics going on. Create a database handle, compile a piece of SQL and put it into a cursor, run the query and use the result. exactly the same flow as I am

Re: what’s the difference between socket.send() and socket.sendall() ?

2013-01-08 Thread Philipp Hagemeister
socket.socket.send is a low-level method and basically just the C/syscall method send(3) / send(2). It can send less bytes than you requested. socket.socket.sendall is a high-level Python-only method that sends the entire buffer you pass or throws an exception. It does that by calling send until

Re: How to get the selected text of the webpage in chrome through python ?

2013-01-08 Thread Dave Angel
On 01/08/2013 07:38 AM, Dennis Lee Bieber wrote: On Mon, 7 Jan 2013 20:20:28 -0800 (PST), iMath redstone-c...@163.com declaimed the following in gmane.comp.python.general: How to get the selected text of the webpage in chrome through python ? Chrome is a browser, is it not... If you

Re: How to get the selected text of the webpage in chrome through python ?

2013-01-08 Thread Bruno Dupuis
On Mon, Jan 07, 2013 at 08:20:28PM -0800, iMath wrote: How to get the selected text of the webpage in chrome through python ? What you need is a way to get selected text from wherever it comes. The way to do this depends on your graphical environment. If you use X, i'd make a a quick and dirty

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Oscar Benjamin
On 8 January 2013 01:23, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 07 Jan 2013 22:32:54 +, Oscar Benjamin wrote: [...] I also think it would be highly foolish to go so far with refusing to eyeball data that you would accept the output of some regression

Re: How to get the selected text of the webpage in chrome through python ?

2013-01-08 Thread Miki Tebeka
On Monday, January 7, 2013 8:20:28 PM UTC-8, iMath wrote: How to get the selected text of the webpage in chrome through python ? You can probably use selenium to do that. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to modify this script?

2013-01-08 Thread Thomas Rachel
Am 06.01.2013 15:30 schrieb Kurt Hansen: Den 06/01/13 15.20, Chris Angelico wrote: On Mon, Jan 7, 2013 at 1:03 AM, Kurt Hansen kurt@ugyldig.invalid wrote: I'm sorry to bother you, Chris, but applying the snippet with your code in Gedit still just deletes the marked, tab-separated text in the

Re: How to modify this script?

2013-01-08 Thread Thomas Rachel
Am 07.01.2013 18:56 schrieb Gertjan Klein: (Watch out for line wraps! I don't know how to stop Thunderbird from inserting them.) Do insert as quotation (in German Thunderbird: Als Zitat einfügen), or Strg-Shift-O. Then it gets inserted with a before and in blue. Just remove the and the

Re: ANN: PyDTLS

2013-01-08 Thread Guido van Rossum
This sounds exciting. Are you considering a Python 3 port? It might make a nice demo of PEP 3156. On Monday, January 7, 2013, rbit wrote: I would like to announce Datagram Transport Layer Security for Python. From the top of the project README: PyDTLS brings Datagram Transport Layer Security

Re: how to download internet files by python ?

2013-01-08 Thread MRAB
On 2013-01-08 05:00, Rodrick Brown wrote: On Mon, Jan 7, 2013 at 11:19 PM, iMath redstone-c...@163.com mailto:redstone-c...@163.com wrote: for example ,if I want to download this file ,how to implement the download functionality by python ?

Re: How to modify this script?

2013-01-08 Thread chaouche yacine
Well tell me how do you use this script in gedit, are you using it as a plugin ? are you putting this code somewhere ? I'll try to do the same on my side and try to understand how it works. From: Kurt Hansen kurt@ugyldig.invalid To: python-list@python.org

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Robert Kern
On 08/01/2013 06:35, Chris Angelico wrote: On Tue, Jan 8, 2013 at 1:06 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: given that weather patterns have been known to follow cycles at least that long. That is not a given. Weather patterns don't last for thirty years. Perhaps

Re: How to modify this script?

2013-01-08 Thread Gertjan Klein
Thomas Rachel wrote: Am 07.01.2013 18:56 schrieb Gertjan Klein: (Watch out for line wraps! I don't know how to stop Thunderbird from inserting them.) Do insert as quotation (in German Thunderbird: Als Zitat einfügen), or Strg-Shift-O. Then it gets inserted with a before and in blue. Just

Re: Calculate Big Number

2013-01-08 Thread casevh
On Tuesday, January 8, 2013 2:06:09 AM UTC-8, Gisle Vanem wrote: Steven D'Aprano email deleted wrote: py from timeit import Timer py t1 = Timer((a**b)*(c**d), setup=a,b,c,d = 10, 25, 2, 50) py min(t1.repeat(repeat=5, number=10)) 0.5256571769714355 So that's about 5 microseconds

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Maarten
On Tuesday, January 8, 2013 10:07:08 AM UTC+1, Terry Reedy wrote: With the line constrained to go through 0,0, a line eyeballed with a clear ruler could easily be better than either regression line, as a human will tend to minimize the deviations *perpendicular to the line*, which is the

ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

2013-01-08 Thread Dave Cinege
Thesaurus: A different way to call a dictionary. Thesaurus is a new a dictionary subclass which allows calling keys as if they are class attributes and will search through nested objects recursively when __getitem__ is called. You will notice that the code is disgusting simple. However I have

Re: License status of pycollada?

2013-01-08 Thread Jeff Terrace
Hi Gene, I'm the maintainer of pycollada. No such paywall exists, and a login is not required. I'm not sure how you came across that. As Chris said, it's a standard BSD license. I'd be happy to help with packaging, so feel free to contact me. Jeff --

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

2013-01-08 Thread Neal Becker
Did you intend to give anyone permission to use the code? I see only a copyright notice, but no permissions. -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching through two logfiles in parallel?

2013-01-08 Thread darnold
i don't think in iterators (yet), so this is a bit wordy. same basic idea, though: for each message (set of parameters), build a list of transactions consisting of matching send/receive times. mildly tested: from datetime import datetime, timedelta sendData = '''\ 05:00:06 Message sent -

Re: License status of pycollada?

2013-01-08 Thread Gene Heskett
On Tuesday 08 January 2013 14:09:55 Jeff Terrace did opine: Message additions Copyright Tuesday 08 January 2013 by Gene Heskett Hi Gene, I'm the maintainer of pycollada. No such paywall exists, and a login is not required. I'm not sure how you came across that. Google search. As Chris

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

2013-01-08 Thread Ian Kelly
On Tue, Jan 8, 2013 at 12:16 PM, Neal Becker ndbeck...@gmail.com wrote: Did you intend to give anyone permission to use the code? I see only a copyright notice, but no permissions. It also says Licence: python, Copyright notice may not be altered. Which suggests to me that the intent is that

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Chris Angelico
On Wed, Jan 9, 2013 at 2:55 AM, Robert Kern robert.k...@gmail.com wrote: On 08/01/2013 06:35, Chris Angelico wrote: ... it looks quite significant to show a line going from the bottom of the graph to the top, but sounds a lot less noteworthy when you see it as a half-degree increase on about

New version of PyGreSQL 4.1.1 - bug fixes

2013-01-08 Thread D'Arcy J.M. Cain
- Release of PyGreSQL version 4.1.1 - A few problems showed up with the 4.1 release so we are releasing a quick bugfix version. It is available at: http://pygresql.org/files/PyGreSQL-4.1.1.tgz. If you are running NetBSD, look in

How to tell how many weeks apart two datetimes are?

2013-01-08 Thread Roy Smith
How do you tell how many weeks apart two datetimes (t1 and t2) are? The obvious solution would be: weeks = (t2 - t1) / timedelta(days=7) but that doesn't appear to be allowed. Is there some fundamental reason why timedelta division not supported? --

Re: How to tell how many weeks apart two datetimes are?

2013-01-08 Thread marduk
On Tue, Jan 8, 2013, at 04:22 PM, Roy Smith wrote: How do you tell how many weeks apart two datetimes (t1 and t2) are? The obvious solution would be: weeks = (t2 - t1) / timedelta(days=7) but that doesn't appear to be allowed. Is there some fundamental reason why timedelta division not

Re: How to tell how many weeks apart two datetimes are?

2013-01-08 Thread Ian Kelly
On Tue, Jan 8, 2013 at 2:22 PM, Roy Smith r...@panix.com wrote: How do you tell how many weeks apart two datetimes (t1 and t2) are? The obvious solution would be: weeks = (t2 - t1) / timedelta(days=7) but that doesn't appear to be allowed. Is there some fundamental reason why timedelta

Re: How to tell how many weeks apart two datetimes are?

2013-01-08 Thread Ian Kelly
On Tue, Jan 8, 2013 at 2:33 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, Jan 8, 2013 at 2:22 PM, Roy Smith r...@panix.com wrote: How do you tell how many weeks apart two datetimes (t1 and t2) are? The obvious solution would be: weeks = (t2 - t1) / timedelta(days=7) but that doesn't

Re: How to tell how many weeks apart two datetimes are?

2013-01-08 Thread MRAB
On 2013-01-08 21:22, Roy Smith wrote: How do you tell how many weeks apart two datetimes (t1 and t2) are? The obvious solution would be: weeks = (t2 - t1) / timedelta(days=7) but that doesn't appear to be allowed. Is there some fundamental reason why timedelta division not supported? Try

Re: How to tell how many weeks apart two datetimes are?

2013-01-08 Thread Oscar Benjamin
On 8 January 2013 22:50, MRAB pyt...@mrabarnett.plus.com wrote: On 2013-01-08 21:22, Roy Smith wrote: How do you tell how many weeks apart two datetimes (t1 and t2) are? The obvious solution would be: weeks = (t2 - t1) / timedelta(days=7) but that doesn't appear to be allowed. Is there

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Robert Kern
On 08/01/2013 20:14, Chris Angelico wrote: On Wed, Jan 9, 2013 at 2:55 AM, Robert Kern robert.k...@gmail.com wrote: On 08/01/2013 06:35, Chris Angelico wrote: ... it looks quite significant to show a line going from the bottom of the graph to the top, but sounds a lot less noteworthy when you

Re: Searching through two logfiles in parallel?

2013-01-08 Thread Oscar Benjamin
On 8 January 2013 19:16, darnold darnold992...@yahoo.com wrote: i don't think in iterators (yet), so this is a bit wordy. same basic idea, though: for each message (set of parameters), build a list of transactions consisting of matching send/receive times. The advantage of an iterator based

Best way to do this? List loop (matrix?) iteration

2013-01-08 Thread andydtaylor
Hi! I might be missing the obvious, or I may have found something more complicated than the VBA I am used to. Could it be I need to use a maths library? For a given list of k items I'd like to turn it into an k*k matrix of item pairs. List_sample = ['a', 'b', 'c'] Output: aa ab ac ba bb bc

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Steven D'Aprano
On Tue, 08 Jan 2013 04:07:08 -0500, Terry Reedy wrote: But that is not fitting a line by eye, which is what I am talking about. With the line constrained to go through 0,0 a line eyeballed with a clear ruler could easily be better than either regression line, as a human will tend to

Re: Best way to do this? List loop (matrix?) iteration

2013-01-08 Thread Mitya Sirenef
On Tue 08 Jan 2013 07:19:59 PM EST, andydtay...@gmail.com wrote: Hi! I might be missing the obvious, or I may have found something more complicated than the VBA I am used to. Could it be I need to use a maths library? For a given list of k items I'd like to turn it into an k*k matrix of item

Re: Specifying two log files with one configuration file

2013-01-08 Thread Vinay Sajip
Peter Steele pwsteele at gmail.com writes: I have been unable to get this to work. My current conf file looks like this: Try with the following changes: [logger_test] level: DEBUG handlers: test propagate: 0 qualname: test The qualname: test is what identifies the logger as the logger named

Re: Best way to do this? List loop (matrix?) iteration

2013-01-08 Thread Chris Angelico
On Wed, Jan 9, 2013 at 11:19 AM, andydtay...@gmail.com wrote: stn_count = len(stn_list_short) for rowcount in range (0, stn_count): for colcount in range (0, stn_count): print stn_list_long[rowcount] stn_list_long[colcount] First off, you can iterate over the list

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Jason Friedman
Statistical analysis is a huge science. So is lying. And I'm not sure most people can pick one from the other. Chris, your sentence causes me to think of Mr. Twain's sentence, or at least the one he popularized: http://www.twainquotes.com/Statistics.html. --

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Jason Friedman
Statistical analysis is a huge science. So is lying. And I'm not sure most people can pick one from the other. Chris, your sentence causes me to think of Mr. Twain's sentence, or at least the one he popularized: http://www.twainquotes.com/Statistics.html. --

Re: How to get the selected text of the webpage in chrome through python ?

2013-01-08 Thread iMath
在 2013年1月8日星期二UTC+8下午9时19分51秒,Bruno Dupuis写道: On Mon, Jan 07, 2013 at 08:20:28PM -0800, iMath wrote: How to get the selected text of the webpage in chrome through python ? What you need is a way to get selected text from wherever it comes. The way to do this depends on your

Re: How to get the selected text of the webpage in chrome through python ?

2013-01-08 Thread iMath
在 2013年1月8日星期二UTC+8下午9时11分30秒,Dave Angel写道: On 01/08/2013 07:38 AM, Dennis Lee Bieber wrote: On Mon, 7 Jan 2013 20:20:28 -0800 (PST), iMath redstone-c...@163.com declaimed the following in gmane.comp.python.general: How to get the selected text of the webpage in chrome through

Re: How to implement mouse gesture by python or pyqt ?

2013-01-08 Thread iMath
在 2013年1月8日星期二UTC+8上午8时44分20秒,iMath写道: It would be better to give me some examples .thanks in advance ! P.S. which module or lib are needed ? what I wanna perhaps like this: when a right mouse button is pressed and we go down and right with a cursor. As in letter 'L'. Our mouse gesture

Re: ANN: PyDTLS

2013-01-08 Thread rbit
Thank you. I will gladly port to Python 3 if there is interest from the community. Regarding PEP 3156: asynchronous use of unreliable network protocols makes for an interesting use case. In particular, it forces applications to deal with packet loss under some circumstances. One such situation

Re: ANN: PyDTLS

2013-01-08 Thread Guido van Rossum
On Tue, Jan 8, 2013 at 8:39 PM, rbit p...@liquibits.com wrote: Thank you. I will gladly port to Python 3 if there is interest from the community. Python 3 is where it's at! :-) Regarding PEP 3156: asynchronous use of unreliable network protocols makes for an interesting use case. In

Re: ANN: PyDTLS

2013-01-08 Thread rbit
On Tue, Jan 8, 2013 at 9:09 PM, Guido van Rossum gu...@python.org wrote: But don't you have to deal with that when doing synchronous I/O as well? It's a datagram protocol after all. No: when dealing with blocking sockets, the OpenSSL library activates its own retransmission timers, and the

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Steven D'Aprano
On Wed, 09 Jan 2013 07:14:51 +1100, Chris Angelico wrote: Three types of lies. Oh, surely more than that. White lies. Regular or garden variety lies. Malicious lies. Accidental or innocent lies. FUD -- fear, uncertainty, doubt. Half-truths. Lying by omission. Exaggeration and

[issue16748] Make CPython test package discoverable

2013-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are tests outside of Lib/test/ hierarchy. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16748 ___ ___

[issue16871] Cleanup a few minor things

2013-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agreed. Maintainers of asynchat, tkinter.tix, optparse and difflib must pay attention to this. -- nosy: +aronacher, giampaolo.rodola, gpolo, josiahcarlson, stutzbach resolution: - rejected stage: patch review - committed/rejected status: pending -

[issue16891] Fix docs about module search order

2013-01-08 Thread Dmitry Mugtasimov
New submission from Dmitry Mugtasimov: http://docs.python.org/2/tutorial/modules.html should be rewritten. AS IS 6.1.2. The Module Search Path When a module named spam is imported, the interpreter first searches for a built-in module with that name. If not found, it then searches for a file

[issue16891] Fix docs about module search order

2013-01-08 Thread Dmitry Mugtasimov
Dmitry Mugtasimov added the comment: UPDATE: CHANGE http://stackoverflow.com/questions/14183541/why-python-finds-module-instead-of-package-if-they-have-the-same-name#comment19687166_14183541 TO

[issue14323] Normalize math precision in RGB/YIQ conversion

2013-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: According to Wikipedia FCC conversion is defined as: y = 0.30*r + 0.59*g + 0.11*b i = 0.5990*r - 0.2773*g - 0.3217*b q = 0.2130*r - 0.5251*g + 0.3121*b and non-FCC conversion is defined as: y = 0.299*r + 0.587*g + 0.114*b i = 0.595716*r

[issue8489] Support UTF8SMTP as part of RFC 5336 in smptlib

2013-01-08 Thread David Lam
Changes by David Lam d...@dlam.me: -- nosy: +dlam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8489 ___ ___ Python-bugs-list mailing list

[issue14468] Update cloning guidelines in devguide

2013-01-08 Thread Ezio Melotti
Ezio Melotti added the comment: Here is another iteration of the patch. I removed some of the old material, added half of the FAQs and the title and outline for the other FAQs. If the structure looks good I'll proceed. -- assignee: sandro.tosi - ezio.melotti Added file:

[issue14468] Update cloning guidelines in devguide

2013-01-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file28629/committing.rst ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14468 ___

[issue15845] Fixing some byte-to-string conversion warnings

2013-01-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9458a516f769 by Serhiy Storchaka in branch '3.2': Issue #15845: Fix comparison between bytes and string. http://hg.python.org/cpython/rev/9458a516f769 New changeset f6cf2985348a by Serhiy Storchaka in branch '3.3': Issue #15845: Fix comparison

[issue15845] Fixing some byte-to-string conversion warnings

2013-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed. Thank your for report and patch, Alessandro. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15845

[issue16851] ismethod and isfunction methods error

2013-01-08 Thread Federico Reghenzani
Changes by Federico Reghenzani federico@reghe.net: -- keywords: +patch Added file: http://bugs.python.org/file28630/inspect.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16851 ___

[issue16890] minidom error

2013-01-08 Thread Javier Domingo
Javier Domingo added the comment: I know that is the problem, but that shouldn't happen! if you remove a item from a list, that doesn't happen. That is why I tagged the error as minidom's El 08/01/2013 04:24, Ezio Melotti rep...@bugs.python.org escribió: Ezio Melotti added the comment: The

[issue16853] add a Selector to the select module

2013-01-08 Thread Charles-François Natali
Charles-François Natali added the comment: So I assume that the second failure is fixed, which means that OS-X returns a funny event (and not POLLIN/POLLHUP/POLLERR) in case of ECONNREFUSED :-( 2 - In EventLoopTestsMixin::test_writer_callback if the writer socket isn't non-blocking, the test

[issue16890] minidom error

2013-01-08 Thread Ezio Melotti
Ezio Melotti added the comment: It happens with lists too: l = list(range(10)) for x in l: ... l.remove(x) ... l [1, 3, 5, 7, 9] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16890

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Vinay Sajip
Vinay Sajip added the comment: I agree this is a reasonable expectation, but I've not encountered this problem before. Can you provide a short script demonstrating the problem? Which platform did you encounter these problems on, and what was the logging configuration? --

[issue16890] minidom error

2013-01-08 Thread Javier Domingo
Javier Domingo added the comment: Ok, sorry then. Javier Domingo 2013/1/8 Ezio Melotti rep...@bugs.python.org Ezio Melotti added the comment: It happens with lists too: l = list(range(10)) for x in l: ... l.remove(x) ... l [1, 3, 5, 7, 9] --

[issue16884] logging handler automatically added starting in 3.2+

2013-01-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 51138680b968 by Vinay Sajip in branch '2.7': Issue #16884: Updated docs to use 'note' directives. http://hg.python.org/cpython/rev/51138680b968 -- ___ Python tracker rep...@bugs.python.org

[issue16884] logging handler automatically added starting in 3.2+

2013-01-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50af862d0625 by Vinay Sajip in branch '3.2': Issue #16884: Updated docs to use 'note' directives in a couple of places missed earlier. http://hg.python.org/cpython/rev/50af862d0625 New changeset b00c4a095b00 by Vinay Sajip in branch '3.3': Issue

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: This can happen with any standard logging configuration when there are writes to sys.stderr that don't end with \n. I'm using Mac OS X 10.7. A minimal script: import logging, unittest log = logging.getLogger() class Test(unittest.TestCase): def

[issue16884] logging handler automatically added starting in 3.2+

2013-01-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16884 ___ ___ Python-bugs-list mailing list

[issue16871] Cleanup a few minor things

2013-01-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Ok for asyncore/asynchat in 3.4 branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16871 ___ ___

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Ezio Melotti
Ezio Melotti added the comment: Note that for this specific problem you could call unittest.main(verbosity=0). -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16889 ___

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2013-01-08 Thread Éric Araujo
Éric Araujo added the comment: Should __pycache__ be ignored too? Sounds good. I don't know how to compile python without having to install it See the devguide http://docs.python.org/devguide -- stage: needs patch - test needed ___ Python tracker

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Vinay Sajip
Vinay Sajip added the comment: Oh, I see what you mean now. I guess the approach you used is straightforward, and perhaps something could be added to test.support. It's only an aesthetic thing, though, IIUC. I normally don't run into this because I log to file when running unit tests, or run

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Ezio, the use case is to add to the existing test output additional diagnostic logging. In particular, you might want to run tests even with verbosity=2 in addition to the log messages. -- ___ Python tracker

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Yes, it's primarily for easier scanning/reading as well as aesthetic. With -v I get the following output though: test1 (test_logging.Test) ... INFO:root:setting up ok test2 (test_logging.Test) ... INFO:root:setting up ok

[issue13198] Remove duplicate definition of write_record_file

2013-01-08 Thread Éric Araujo
Éric Araujo added the comment: Please don’t; distutils2 still exists and is mutating into one or more projects where these bug reports will be useful. If it bothers Python core devs to have the bugs in this tracker, they will be migrated, but for the moment please leave them open so they can

[issue12944] Accept arbitrary files for packaging's upload command

2013-01-08 Thread Éric Araujo
Éric Araujo added the comment: distutils2, while not actively developed any more for inclusion in the stdlib in 3.4, will mutate into one or more projects where these bug reports will be useful. Bugs will certainly be migrated (and closed in this tracker), but please keep them open for easy

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: and perhaps something could be added to test.support. Also, just to clarify, I had in mind outside projects and the larger community for this request rather than CPython development, so I'm not sure test.support would be the right location. --

[issue16842] Allow to override a function signature for pydoc with a docstring

2013-01-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16842 ___ ___ Python-bugs-list

[issue16805] when building docs on Debian 7 -- ERROR: Error in note directive

2013-01-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16805 ___ ___ Python-bugs-list

[issue14470] Remove using of w9xopen in subprocess module

2013-01-08 Thread Éric Araujo
Éric Araujo added the comment: FTR, was the deprecation for 3.3 committed? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14470 ___

[issue16814] use --directory option of make in describing how to build the docs

2013-01-08 Thread Éric Araujo
Éric Araujo added the comment: FWIW I use make -C Doc all the time but agree with Georg’s point about conciseness. Ezio, I suggest you bookmark some make doc page if you can’t remember it :) -- nosy: +eric.araujo ___ Python tracker

[issue16851] ismethod and isfunction methods error

2013-01-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16851 ___ ___ Python-bugs-list

[issue16851] Hint about correct ismethod and isfunction usage

2013-01-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: ismethod and isfunction methods error - Hint about correct ismethod and isfunction usage ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16851

[issue16891] Fix docs about module search order

2013-01-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +brett.cannon, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16891 ___ ___

[issue16748] Make CPython test package discoverable

2013-01-08 Thread R. David Murray
R. David Murray added the comment: Yes, but not many, and not as many as there used to be. I'd like to see them all moved, but met resistance on that front. It may be that those just can't be run using unittest discovery, and perhaps that will eventually convince the maintainers to move

[issue5066] IDLE documentation for Unix obsolete/incorrect

2013-01-08 Thread Éric Araujo
Éric Araujo added the comment: Idle needs to find its text help files at runtime, so they are installed as data alongside with the code. The rst doc files however can be installed anywhere or not installed at all, so we can’t change Idle to look for them. An alternate idea to avoid

[issue16748] Make CPython test package discoverable

2013-01-08 Thread R. David Murray
R. David Murray added the comment: Also, it may be possible to add unittest discovery hooks to the stubs that *are* in Lib/test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16748 ___

[issue16851] Hint about correct ismethod and isfunction usage

2013-01-08 Thread Federico Reghenzani
Changes by Federico Reghenzani federico@reghe.net: -- nosy: +federico.reghenzani ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16851 ___ ___

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-08 Thread Éric Araujo
Éric Araujo added the comment: Yes, we definitely want to eat our dogfood and stop relying on dict order, especially now that hashing is randomized. I would argue for backporting this to stable branches. Patch looks good. A semi-related improvement for this bug would be to switch these

[issue16836] configure script disables support for IPv6 on a system where IPv6 is disabled

2013-01-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16836 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16892] Windows bug picking up stdin from a pipe

2013-01-08 Thread Robert Oeffner
New submission from Robert Oeffner: Hi, This is a bug that seems to exist on python 2.7, python 3.3 on Windows versions XP, Vista, 7 and 8 and has been around for some years, presumably also in other python versions. It is only recently I have managed to better isolate it although not

[issue16891] Fix docs about module search order

2013-01-08 Thread Dmitry Mugtasimov
Dmitry Mugtasimov added the comment: As I investigate it a little closer it seems to me that it is not a documentation issue, but an implementation issue. http://docs.python.org/2/reference/simple_stmts.html#import A package can contain other packages and modules while modules cannot contain

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2013-01-08 Thread Eli Bendersky
Eli Bendersky added the comment: Daniel, thanks for this patch, it looks very good. I had some comments in the code review. As for TreeBuilder, let's split it into a separate issue - I think it's much less critical. We can discuss it later once we're done with Element. If anything, it's more

[issue16891] Fix docs about module search order

2013-01-08 Thread R. David Murray
R. David Murray added the comment: So it looks like if import xyz.b bahaves different depending on how a.py was initially loaded as a script or imported from another module. There are several differences between importing a module and running a script, one of which is what is on sys.path.

  1   2   >