ANN: moin-1.9.6 released

2012-12-30 Thread Reimar Bauer
This release is mostly about fixing some serious security issues. For details see: http://hg.moinmo.in/moin/1.9/raw-file/1.9.6/docs/CHANGES See http://moinmo.in/MoinMoinDownload for the release archive. BTW, for future moin 1.9 releases, we still need many more people helping with maintaining

Re: Noob trying to parse bad HTML using xml.etree.ElementTree

2012-12-30 Thread Chris Angelico
On Sun, Dec 30, 2012 at 8:52 PM, Morten Guldager morten.gulda...@gmail.com wrote: Question is if it's possible to tweak xml.etree.ElementTree to accept, and understand sloppy html, or if you have suggestions for similar easy to use framework, preferably among the included batteries? Check out

Re: Noob trying to parse bad HTML using xml.etree.ElementTree

2012-12-30 Thread Peter Otten
Morten Guldager wrote: 'Aloha Friends! I'm trying to process some HTML using xml.etree.ElementTree Problem is that the HTML I'm trying to read have some not properly closed tags, as the img shown in line 8 below. 1 from xml.etree import ElementTree 2 3 tree = ElementTree 4 e =

re: ignore case only for a part of the regex?

2012-12-30 Thread Helmut Jarausch
Hi, is there a means to specify that 'ignore-case' should only apply to a part of a regex? E.g. the regex should match Msg-id:, Msg-Id, ... but not msg-id: and so on. I've tried the pattern r'^Msg-(?:(?i)id):' but (?i) makes the whole pattern ignoring case. In my simple case I could say

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-30 Thread Jamie Paul Griffin
* Yuvraj Sharma aleast...@gmail.com [2012-12-28 01:37:23 -0800]: Use IDLE -- http://mail.python.org/mailman/listinfo/python-list The OP is already a proficient C, C++, perl, ... hacker using console based tools and hardcore UNIX editors like vi(1) - I doubt he'll stay with IDLE for very

Re: ignore case only for a part of the regex?

2012-12-30 Thread Roy Smith
Helmut Jarausch jarau...@skynet.be wrote: is there a means to specify that 'ignore-case' should only apply to a part of a regex? Not that I'm aware of. the regex should match Msg-id:, Msg-Id, ... but not msg-id: and so on. What's the use-case for this? The way I would typically do

Re: ignore case only for a part of the regex?

2012-12-30 Thread Joel Goldstick
On Sun, Dec 30, 2012 at 10:20 AM, Roy Smith r...@panix.com wrote: Helmut Jarausch jarau...@skynet.be wrote: is there a means to specify that 'ignore-case' should only apply to a part of a regex? Python has excellent string methods. There seems to be a split between people who first

Re: changing process name

2012-12-30 Thread Adam Tauno Williams
On Mon, 2012-11-19 at 10:39 +, andrea crotti wrote: I have very long processes to spawn which I want to lauch as separate processes (and communicate with ZeroMQ), but now the problem is that the forked process appears in ps with the same name as the launcher process. This is a simplified

Re: ignore case only for a part of the regex?

2012-12-30 Thread Vlastimil Brom
2012/12/30 Helmut Jarausch jarau...@skynet.be: Hi, is there a means to specify that 'ignore-case' should only apply to a part of a regex? E.g. the regex should match Msg-id:, Msg-Id, ... but not msg-id: and so on. I've tried the pattern r'^Msg-(?:(?i)id):' but (?i) makes the whole

Re: ignore case only for a part of the regex?

2012-12-30 Thread Roy Smith
In article mailman.1467.1356885520.29569.python-l...@python.org, Vlastimil Brom vlastimil.b...@gmail.com wrote: you may check the new regex implementation for python http://pypi.python.org/pypi/regex Wow, I wasn't aware of such an effort. At first reading, I'm amused by the concept of strict

Re: ignore case only for a part of the regex?

2012-12-30 Thread MRAB
On 2012-12-30 17:32, Roy Smith wrote: In article mailman.1467.1356885520.29569.python-l...@python.org, Vlastimil Brom vlastimil.b...@gmail.com wrote: you may check the new regex implementation for python http://pypi.python.org/pypi/regex Wow, I wasn't aware of such an effort. At first

Tarfile and usernames

2012-12-30 Thread Nicholas Cole
Dear List, I'm hoping to use the tarfile module in the standard library to move some files between computers. I can't see documented anywhere what this library does with userids and groupids. I can't guarantee that the computers involved will have the same users and groups, and would like the

Re: Tarfile and usernames

2012-12-30 Thread Albert Hopkins
On Sun, Dec 30, 2012, at 01:57 PM, Nicholas Cole wrote: Dear List, I'm hoping to use the tarfile module in the standard library to move some files between computers. I can't see documented anywhere what this library does with userids and groupids. I can't guarantee that the computers

Re: Tarfile and usernames

2012-12-30 Thread Michael Ross
On Sun, 30 Dec 2012 19:57:31 +0100, Nicholas Cole nicholas.c...@gmail.com wrote:Dear List,I'm hoping to use the tarfile module in the standard library to move some files between computers.I can't see documented anywhere what this library does with userids and groupids. I can't guarantee that the

Re: Tarfile and usernames

2012-12-30 Thread Nicholas Cole
On Sun, Dec 30, 2012 at 8:07 PM, Albert Hopkins mar...@letterboxes.orgwrote: On Sun, Dec 30, 2012, at 01:57 PM, Nicholas Cole wrote: Dear List, I'm hoping to use the tarfile module in the standard library to move some files between computers. I can't see documented anywhere what this

Re: Tarfile and usernames

2012-12-30 Thread Hans Mulder
On 30/12/12 19:57:31, Nicholas Cole wrote: Dear List, I'm hoping to use the tarfile module in the standard library to move some files between computers. I can't see documented anywhere what this library does with userids and groupids. I can't guarantee that the computers involved will

Re: instructor's solutions manual for Understanding Analysis by Stephen Abbott

2012-12-30 Thread santoshlinkha
On Saturday, September 3, 2011 4:47:43 AM UTC+5:45, peter kalvin wrote: I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com and let me know its title, author and edition. Please this service

Re: Python lists

2012-12-30 Thread Hans Mulder
On 28/12/12 18:46:45, Alex wrote: Manatee wrote: On Friday, December 28, 2012 9:14:57 AM UTC-5, Manatee wrote: I read in this: ['C100, C117', 'X7R 0.033uF 10% 25V 0603', '0603-C_L, 0603-C_N', '10', '2', '', '30', '15463-333', 'MURATA', 'GRM188R71E333KA01D', 'Digi-Key', '490-1521-1-ND',

Re: Re: Python lists

2012-12-30 Thread Evan Driscoll
On 12/30/2012 4:19 PM, Hans Mulder wrote: If it's okay to modify the original list, you can simply do: l[0] = split(l[0], , ) If modifying the original is not okay, the simple solution would be to copy it first: l2 = l l2[0] = split(l2[0], , ) Um, that doesn't copy the list: l =

Beginner: Trying to get REAL NUMBERS from %d command

2012-12-30 Thread Alvaro Lacerda
The code I wrote is supposed to ask the user to enter a number; Then tell the user what's going to happen to that number (x / 2 + 5) ; Then give the user an answer; I succeeded getting results from even numbers, but when I try diving an uneven number (i.e. 5) by 2, I get only the whole number

Re: Beginner: Trying to get REAL NUMBERS from %d command

2012-12-30 Thread Joel Goldstick
On Sun, Dec 30, 2012 at 5:37 PM, Alvaro Lacerda alacerda...@gmail.comwrote: The code I wrote is supposed to ask the user to enter a number; Then tell the user what's going to happen to that number (x / 2 + 5) ; Then give the user an answer; Try x / 2.5 + 5 I succeeded getting results from

Re: Beginner: Trying to get REAL NUMBERS from %d command

2012-12-30 Thread Irmen de Jong
On 30-12-2012 23:37, Alvaro Lacerda wrote: I'm trying to get full number result using the %d command Try %f instead. %d is the formatting symbol for integer numbers. See http://docs.python.org/2/library/stdtypes.html#string-formatting-operations Or have a look at what string.format() can do:

Re: Beginner: Trying to get REAL NUMBERS from %d command

2012-12-30 Thread Vlastimil Brom
2012/12/30 Alvaro Lacerda alacerda...@gmail.com: The code I wrote is supposed to ask the user to enter a number; Then tell the user what's going to happen to that number (x / 2 + 5) ; Then give the user an answer; I succeeded getting results from even numbers, but when I try diving an

Re: Beginner: Trying to get REAL NUMBERS from %d command

2012-12-30 Thread Peter Otten
Alvaro Lacerda wrote: The code I wrote is supposed to ask the user to enter a number; Then tell the user what's going to happen to that number (x / 2 + 5) ; Then give the user an answer; I succeeded getting results from even numbers, but when I try diving an uneven number (i.e. 5) by 2, I

Re: Beginner: Trying to get REAL NUMBERS from %d command

2012-12-30 Thread Hans Mulder
Hello, Python does not support REAL numbers. It has float number, which are approximations of real numbers. They behave almost, but not quite, like you might expect. It also has Decimal numbers. They also approximate real numbers, but slightly differently. They might behave more like you'd

Re: Python lists

2012-12-30 Thread Hans Mulder
On 30/12/12 23:25:39, Evan Driscoll wrote: On 12/30/2012 4:19 PM, Hans Mulder wrote: If it's okay to modify the original list, you can simply do: l[0] = split(l[0], , ) If modifying the original is not okay, the simple solution would be to copy it first: l2 = l l2[0] = split(l2[0], , )

Re: Beginner: Trying to get REAL NUMBERS from %d command

2012-12-30 Thread Alvaro Lacerda
%s got the job done!!! Thank you all for the info and links, I appreciate it! -- http://mail.python.org/mailman/listinfo/python-list

Re: ignore case only for a part of the regex?

2012-12-30 Thread Cameron Simpson
On 30Dec2012 12:32, Roy Smith r...@panix.com wrote: | In article mailman.1467.1356885520.29569.python-l...@python.org, | Vlastimil Brom vlastimil.b...@gmail.com wrote: | you may check the new regex implementation for python | http://pypi.python.org/pypi/regex [...] | I'm not sure I like the

Python 3.3, gettext and Unicode problems

2012-12-30 Thread Marcel Rodrigues
I'm using Python 3.3 (CPython) and am having trouble getting the standard gettext module to handle Unicode messages. My problem can be isolated as follows: I have 3 files in a folder: greeting.py, greeting.po and msgfmt.py. -- greeting.py -- import gettext t = gettext.translation(greeting,

Re: Python 3.3, gettext and Unicode problems

2012-12-30 Thread Terry Reedy
On 12/30/2012 7:39 PM, Marcel Rodrigues wrote: I'm using Python 3.3 (CPython) and am having trouble getting the standard gettext module to handle Unicode messages. I have never even looked at the doc before, but I will take a look. My problem can be isolated as follows: I have 3 files in a

Re: Python 3.3, gettext and Unicode problems

2012-12-30 Thread Terry Reedy
On 12/30/2012 8:48 PM, Terry Reedy wrote: On 12/30/2012 7:39 PM, Marcel Rodrigues wrote: I'm using Python 3.3 (CPython) and am having trouble getting the standard gettext module to handle Unicode messages. Addition to previous response. import gettext t = gettext.translation(greeting,

Re: Python 3.3, gettext and Unicode problems

2012-12-30 Thread Marcel Rodrigues
Thank you Terry! I was trying to follow the documentation but somehow didn't payed attention to the lgettext/gettext distinction until I read your first response. Changing lgettext to gettext solved the problem. It prints correctly to my console because I have to environmental variable

father class name

2012-12-30 Thread contro opinion
here is my haha class class haha(object): def theprint(self): print i am here haha().theprint() i am here haha(object).theprint() Traceback (most recent call last): File stdin, line 1, in module TypeError: object.__new__() takes no parameters why haha(object).theprint() get wrong

Re: father class name

2012-12-30 Thread Roy Smith
In article mailman.1483.1356927535.29569.python-l...@python.org, contro opinion contropin...@gmail.com wrote: here is my haha class class haha(object): def theprint(self): print i am here haha().theprint() i am here haha(object).theprint() Traceback (most recent call last):

Re: father class name

2012-12-30 Thread Andrew Berg
On 2012.12.30 22:18, contro opinion wrote: here is my haha class class haha(object): def theprint(self): print i am here haha().theprint() i am here haha(object).theprint() Traceback (most recent call last): File stdin, line 1, in module TypeError: object.__new__() takes no

Re: how to get the source of html in lxml?

2012-12-30 Thread Chris Rebert
On Sun, Dec 30, 2012 at 10:32 PM, contro opinion contropin...@gmail.com wrote: import urllib import lxml.html down='http://blog.sina.com.cn/s/blog_71f3890901017hof.html' file=urllib.urlopen(down).read() root=lxml.html.document_fromstring(file) body=root.xpath('//div[@class=articalContent

Re: how to get the source of html in lxml?

2012-12-30 Thread Dave Angel
On 12/31/2012 01:32 AM, contro opinion wrote: import urllibimport lxml.html down='http://blog.sina.com.cn/s/blog_71f3890901017hof.html' file=urllib.urlopen(down).read() root=lxml.html.document_fromstring(file) body=root.xpath('//div[@class=articalContent ]')[0]print body.text_content()

Re: class problem

2012-12-30 Thread Dave Angel
On 12/31/2012 01:36 AM, contro opinion wrote: here is my haha class You posted the same question twice before, and it was answered two hours ago. Read the first thread, instead of starting spurious ones. -- DaveA -- http://mail.python.org/mailman/listinfo/python-list

Re: class problem

2012-12-30 Thread Chris Rebert
On Sun, Dec 30, 2012 at 10:36 PM, contro opinion contropin...@gmail.com wrote: here is my haha class class haha(object): def theprint(self): print i am here haha().theprint() i am here haha(object).theprint() Traceback (most recent call last): File stdin, line 1, in module

Re: father class name

2012-12-30 Thread Chris Rebert
On Sun, Dec 30, 2012 at 8:18 PM, contro opinion contropin...@gmail.com wrote: here is my haha class class haha(object): def theprint(self): print i am here haha().theprint() i am here haha(object).theprint() Traceback (most recent call last): File stdin, line 1, in module

[issue16819] IDLE b method completion incorrect

2012-12-30 Thread Ramchandra Apte
New submission from Ramchandra Apte: To reproduce, type b. and then press TAB. The encode method is listed, that means that IDLE is listing the methods of (it should list the methods of b). -- components: IDLE messages: 178558 nosy: ramchandra.apte priority: normal severity: normal

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2012-12-30 Thread Ramchandra Apte
Ramchandra Apte added the comment: Bump. @neologix I have a 64-bit laptop with 2 GB memory so I don't think I can do so. (though one could use swap) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13555

[issue14597] Cannot unload dll in ctypes until script exits

2012-12-30 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/issue14597 ___

[issue13951] Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2012-12-30 Thread Ramchandra Apte
Ramchandra Apte added the comment: Bump. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13951 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13951] Document that Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2012-12-30 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: Seg Fault in .so called by ctypes causes the interpreter to Seg Fault - Document that Seg Fault in .so called by ctypes causes the interpreter to Seg Fault ___ Python tracker

[issue13951] Document that Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2012-12-30 Thread Georg Brandl
Georg Brandl added the comment: The reference to faulthandler is a good addition. The other added sentence reads repetitive and can be left out. Proposal: There are, however, enough ways to crash Python with :mod:`ctypes`, so you should be careful anyway. The :mod:`faulthandler` module can

[issue16688] Backreferences make case-insensitive regex fail on non-ASCII strings.

2012-12-30 Thread Georg Brandl
Georg Brandl added the comment: I think you will, Matthew being MRAB on the mailing lists :) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16688 ___

[issue16818] Couple of mistakes in PEP 431

2012-12-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +lregebro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16818 ___ ___ Python-bugs-list mailing

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

2012-12-30 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: This is not a `make' tutorial... I find the latest patch to be a great compromise though. Many people would be grateful to learn about the -C option. I am one of them. -- ___ Python tracker

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2012-12-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I may tackle this but rare 2.7-only bugs are pretty low on my priorities list. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13555 ___

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

2012-12-30 Thread Georg Brandl
Georg Brandl added the comment: Well, I'm not -1 about the patch. But there is something to be said for conciseness, and sprinkling the docs with endless alternate routes will not make it easier to read quickly and get the information you need. --

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2012-12-30 Thread Charles-François Natali
Charles-François Natali added the comment: I have a 64-bit laptop with 2 GB memory so I don't think I can do so. (though one could use swap) AFAICT, a binary string a little longer than 1GB should be enough to reproduce the bug. Just make sure Python isn't built with '-fwrapv'. --

[issue16816] Bug in hash randomization

2012-12-30 Thread Domen Kožar
Domen Kožar added the comment: I believe this is not the case, I have updated example to use ordereddict, same effect: https://gist.github.com/4409304 -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org

[issue16816] Bug in hash randomization

2012-12-30 Thread Charles-François Natali
Charles-François Natali added the comment: What exactly are you trying to demonstrate? As explained by Benjamin, the output can differ from one invokation to another because the iteration order depends on the hash value (position in the buckets). Running your script on Python 2.7 or curent

[issue16816] Bug in hash randomization

2012-12-30 Thread Domen Kožar
Domen Kožar added the comment: That would mean there is a bug in OrderedDict, since iterator of item in OrderedDict should keep the order? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16816

[issue16816] Bug in hash randomization

2012-12-30 Thread Charles-François Natali
Charles-François Natali added the comment: No, there's a bug in your code: nest_variables(collections.OrderedDict({'foo.bar': '1', 'foo': '2'})) You pass the OrderedDict *and already constructed dict*, so entries are inserted in a random order. Just use this and it'll work properly:

[issue16816] Bug in hash randomization

2012-12-30 Thread Charles-François Natali
Charles-François Natali added the comment: There's actually a parenthesis missing: nest_variables(collections.OrderedDict((('foo.bar', '1'), ('foo', '2' -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python

[issue16816] Bug in hash randomization

2012-12-30 Thread Domen Kožar
Domen Kožar added the comment: Ah, works much better if you pass tuple to ordereddict. Seems like a bug in my program indeed (I was using ordereddict, but not correctly). Sorry for the noise! -- ___ Python tracker rep...@bugs.python.org

[issue14373] C implementation of functools.lru_cache

2012-12-30 Thread Alexey Kachayev
Alexey Kachayev added the comment: Thread-safe implementation for cache cleanup. -- Added file: http://bugs.python.org/file28490/14373.v7.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread R. David Murray
R. David Murray added the comment: Hmm. What if we made import_fresh_module a context manager, so that the restore of the original module in sys.modules only happened at the end of the context? -- ___ Python tracker rep...@bugs.python.org

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread Eli Bendersky
Eli Bendersky added the comment: David, how would this help pickle not find _elementtree though? It's already in sys.modules *before* fresh_import is used, because test___all__ put it there. I'm experimenting with just deleting _elementtree from sys.modules before running the tests, so far

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- Removed message: http://bugs.python.org/msg178576 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16817 ___

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread Eli Bendersky
Eli Bendersky added the comment: David, how would this help pickle not find _elementtree though? It's already in sys.modules *before* fresh_import is used, because test___all__ put it there. I'm experimenting with just deleting _elementtree from sys.modules before running the tests, so far

[issue15948] Unchecked return value of I/O functions

2012-12-30 Thread Marek Šuppa
Marek Šuppa added the comment: Any update on this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15948 ___ ___ Python-bugs-list mailing list

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

2012-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71508fc738bb by Eli Bendersky in branch '3.3': For Issue #16076: make sure that pickling of Element objects is tested, and do http://hg.python.org/cpython/rev/71508fc738bb New changeset 5a38f4d7833c by Eli Bendersky in branch 'default': For issue

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

2012-12-30 Thread Eli Bendersky
Eli Bendersky added the comment: I've added some (currently pyET specific) pickling tests. Daniel, could you re-generate the patch? Note that for the C version of pickling you can now enable the pickle test. Point to consider - can elements pickled in C be unpickled in Python and vice versa?

[issue16672] improve tracing performances when f_trace is NULL

2012-12-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16672 ___ ___ Python-bugs-list mailing list

[issue16817] test___all__ has to save and restore sys.modules while it does all the importing

2012-12-30 Thread R. David Murray
R. David Murray added the comment: It would help because import_fresh_module would have updated sys.modules to be the module under test, and would not restore the previously existing entry in sys.modules until after your test had completed. -- ___

[issue16819] IDLE b method completion incorrect

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Same for u'' on 2.7. Completion list doesn't contain isdecimal and isnumeric. -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

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

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW even if I heard about the one-liner a few times already I can't really seem to remember it, and prefer to do cd Doc anyway. Using cd Doc also makes all the subsequent commands shorter (e.g. opening files, running other make targets). The patch proposed by

[issue15948] Unchecked return value of I/O functions

2012-12-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15948 ___ ___

[issue16819] IDLE b method completion incorrect

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes this issue. It is applicable for all version, except uU can be removed from string of string prefix characters in 3.2. -- nosy: +kbk stage: - patch review ___ Python tracker

[issue16819] IDLE b method completion incorrect

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file28491/idle_bytes_completion.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16819

[issue6010] unable to retrieve latin-1 encoded data from sqlite3

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: While trying to reproduce the issue I noticed this while inserting values: import sqlite3 db = sqlite3.connect(':memory:') cur = db.cursor() cur.execute(create table foo (x)) # this works fine cur.execute(uinsert into foo values ('café').encode('latin1')) # this

[issue16804] python3 -S -m site fails

2012-12-30 Thread Meador Inge
Meador Inge added the comment: Yeah, it is a result of the fix for issue11591 (changeset a364719e400a). Incidentally, the decision was made to forgo writing a testcase in favor of proof by inspection :-) There are also other consequences of that change: ./python.exe -S Python 3.4.0a0

[issue16783] sqlite3 accepts strings it cannot (by default) return

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: Treating invalid data as sometimes valid and sometime as invalid is a problem. What is valid is defined by your application. AFAIU sqlite3 defaults to utf-8, but it's able to work with latin1 data as well. The fact that you are mixing utf-8 and latin1 is

[issue15083] Rewrite ElementTree tests in a cleaner and safer way

2012-12-30 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15083 ___ ___

[issue16741] `int()`, `float()`, etc think python strings are null-terminated

2012-12-30 Thread Matthew Barnett
Matthew Barnett added the comment: I've attached a small additional patch for truncating the UTF-8. I don't know whether it's strictly necessary, but I don't know that it's unnecessary either! (Better safe than sorry.) -- Added file: http://bugs.python.org/file28492/issue16741#2.patch

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread Wolfgang Scherer
New submission from Wolfgang Scherer: configparser.ConfigParser.clean() always fails: cfg = configparser.ConfigParser() if not hasattr(configparser.ConfigParser, 'clear'): ... configparser.ConfigParser.clear = configparser_clear_compat cfg.clear() #doctest: +ELLIPSIS

[issue14373] C implementation of functools.lru_cache

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Alexey, as I see, you have missed some Antoine's comments (and my comments about whitespaces). Please, be more careful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

[issue16741] `int()`, `float()`, etc think python strings are null-terminated

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16741 ___

[issue2350] 'exceptions' import fixer

2012-12-30 Thread Berker Peksag
Berker Peksag added the comment: I've converted Benjamin's patch to extended diff format, fixed some PEP 8 violations and typos, removed the {get, set}_prefix usage, added more tests and updated the documentation. -- nosy: +berker.peksag Added file:

[issue2350] 'exceptions' import fixer

2012-12-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is something people can easily convert in there 2.x code, so I don't think the need for it is great. -- assignee: collinwinter - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2350

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16645 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- Removed message: http://bugs.python.org/msg178416 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16645 ___

[issue16820] configparser.ConfigParser.clean and .update bugs

2012-12-30 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16820 ___ ___

[issue16773] int() half-accepts UserString

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: Not sure this is worth fixing, unless the fix is trivial. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16773 ___

[issue16804] python3 -S -m site fails

2012-12-30 Thread Meador Inge
Meador Inge added the comment: Whoops, the 'quit' case is actually intended and is documented (http://docs.python.org/3.4/library/site.html): or additions to the builtins. To explicitly trigger the usual site-specific additions, call the site.main() function. I think the right way to fix

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 503b889668fc by Serhiy Storchaka in branch '2.7': Issue #16645: Fix hardlink extracting test for tarfile. http://hg.python.org/cpython/rev/503b889668fc New changeset d42bf4faf3d1 by Serhiy Storchaka in branch '3.2': Issue #16645: Fix hardlink

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16645

[issue7300] Unicode arguments in str.format()

2012-12-30 Thread Pedro Algarvio
Pedro Algarvio added the comment: This is not a 2.7 issue only: import sys sys.version_info (2, 6, 5, 'final', 0 'Foo {0}'.format(u'bár') Traceback (most recent call last): File stdin, line 1, in module UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 1:

[issue16379] SQLite error code not exposed to python

2012-12-30 Thread Daniel Shahaf
Daniel Shahaf added the comment: New patch, with better docs and less error leaks, per Ezio's review. -- Added file: http://bugs.python.org/file28496/i16379-v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16379

[issue16379] SQLite error code not exposed to python

2012-12-30 Thread Daniel Shahaf
Daniel Shahaf added the comment: A couple of random eyebrow-raisers I noticed while working on v2: - sqlite3.Warning is a subclass of Exception, rather than sqlite3.Error or builtins.Warning. (Also, the docs say will raise a Warning, intending to refer to sqlite3.Warning, but the lack of

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-12-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548 ___

[issue7300] Unicode arguments in str.format()

2012-12-30 Thread Ezio Melotti
Ezio Melotti added the comment: 2.6 only gets security fixes. My patch converts the format string to unicode using the default encoding. It's inconsistent with str%args: str%args converts str to unicode using the ASCII charset (if a least one argument is an unicode string), not the

[issue15861] ttk.Treeview unmatched open brace in list

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Have you reviewed the patch? Is it good? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15861 ___ ___

[issue16379] SQLite error code not exposed to python

2012-12-30 Thread Daniel Shahaf
Daniel Shahaf added the comment: New patch fixing indentation of versionadded markup. -- Added file: http://bugs.python.org/file28497/i16379-v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16379

[issue8745] zipimport is a bit slow

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Catalin, are you going to continue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8745 ___ ___

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What variant of patches should I commit? Or prepare other? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9720 ___

[issue16061] performance regression in string replace for 3.3

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I going speed up other cases for replace(), but for now I have only this patch. Is it good? Should I apply it to 3.3 as there is a 3.3 regression? -- keywords: +3.3regression ___ Python tracker

  1   2   >