Re: Checking homogeneity of Array using List in Python

2013-08-25 Thread Chris Angelico
On Sun, Aug 25, 2013 at 3:50 PM, sahil301...@gmail.com wrote: NOTE: NO INBUILT FUNCTION BE USED. Thank you in advance. You'll have to do your own homework, then. Python strongly favours the use of inbuilt functions. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

multifile programming on python 3

2013-08-25 Thread Mohsen Pahlevanzadeh
Dear all, I need help about multifile programming on python 3 and i questioned on stackoverflow : http://stackoverflow.com/questions/18391230/eclipse-python-nameerror-name-mymodule-is-not-defined I thank you if you answer me. --mohsen -- http://mail.python.org/mailman/listinfo/python-list

typeid(obj).name in C++ vs (python)

2013-08-25 Thread Mohsen Pahlevanzadeh
Dear all, If you C++, I need to (typeid(obj).name) in python. Does python same thing? --mohsen -- http://mail.python.org/mailman/listinfo/python-list

Re: typeid(obj).name in C++ vs (python)

2013-08-25 Thread Mohsen Pahlevanzadeh
On Sun, 2013-08-25 at 13:10 +0430, Mohsen Pahlevanzadeh wrote: Dear all, If you C++, I need to (typeid(obj).name) in python. Does python same thing? --mohsen Of course i need to typeof(). -- http://mail.python.org/mailman/listinfo/python-list

cpmplex function call

2013-08-25 Thread Mohsen Pahlevanzadeh
Dear all, Suppose I have function with with 10 args: def foo(arg1,arg2,arg3,arg4.): I need to call somtimes with arg1 , somtimes arg1, arg4, , somtimes arg 4 , arg7 , my program doesn't specify to type of call. Does python same way to help me? My link:

Re: cpmplex function call

2013-08-25 Thread Chris Angelico
On Sun, Aug 25, 2013 at 7:33 PM, Mohsen Pahlevanzadeh moh...@pahlevanzadeh.org wrote: Dear all, Suppose I have function with with 10 args: def foo(arg1,arg2,arg3,arg4.): I need to call somtimes with arg1 , somtimes arg1, arg4, , somtimes arg 4 , arg7 , my program doesn't specify to

Re: typeid(obj).name in C++ vs (python)

2013-08-25 Thread Ian Kelly
type(obj).__name__ On Sun, Aug 25, 2013 at 2:40 AM, Mohsen Pahlevanzadeh moh...@pahlevanzadeh.org wrote: Dear all, If you C++, I need to (typeid(obj).name) in python. Does python same thing? --mohsen -- http://mail.python.org/mailman/listinfo/python-list --

Which DLL did fail to load

2013-08-25 Thread Александров Петр
Hello. When DLL load is failed, Python doesn't writes the DLL name. Wouldn't it better to add a feature to Python to write the name of DLL which load has been failed? -- http://mail.python.org/mailman/listinfo/python-list

Re: multifile programming on python 3

2013-08-25 Thread Dave Angel
Mohsen Pahlevanzadeh wrote: Dear all, I need help about multifile programming on python 3 and i questioned on stackoverflow : http://stackoverflow.com/questions/18391230/eclipse-python-nameerror-name-mymodule-is-not-defined I thank you if you answer me. --mohsen You have a response

Re: Help in Nltk

2013-08-25 Thread Joel Goldstick
On Sat, Aug 24, 2013 at 5:41 PM, projectf...@gmail.com wrote: Can anyone help me for the tasks below in nltk 1. The system mustdemonstrate false positiveand false negativeexamples using any stemmer (Task 1.1) 2. The system mustdemonstrate

Re: Checking homogeneity of Array using List in Python

2013-08-25 Thread Joel Goldstick
On Sun, Aug 25, 2013 at 2:03 AM, Chris Angelico ros...@gmail.com wrote: On Sun, Aug 25, 2013 at 3:50 PM, sahil301...@gmail.com wrote: NOTE: NO INBUILT FUNCTION BE USED. Thank you in advance. You don't make it easy to help you with your homework by leaving out information about what you have

PyPI and TestPyPI registration problems

2013-08-25 Thread Lele Gaifax
Hi all, I tried registering myself on the TestPyPI site, but all the methods failed: * the manual method terminates with an Internal Error: Error... Internal Server Error Traceback (most recent call last): File /data/testpypi/src/pypi/webui.py, line 324, in run

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread David M. Cotter
i'm sorry this is so confusing, let me try to re-state the problem in as clear a way as i can. I have a C++ program, with very well tested unicode support. All logging is done in utf8. I have conversion routines that work flawlessly, so i can assure you there is nothing wrong with logging

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread Vlastimil Brom
2013/8/25 David M. Cotter m...@davecotter.com: i'm sorry this is so confusing, let me try to re-state the problem in as clear a way as i can. I have a C++ program, with very well tested unicode support. All logging is done in utf8. I have conversion routines that work flawlessly, so i can

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread Terry Reedy
On 8/25/2013 1:57 PM, David M. Cotter wrote: i'm sorry this is so confusing, let me try to re-state the problem in as clear a way as i can. I have a C++ program, with very well tested unicode support. All logging is done in utf8. I have conversion routines that work flawlessly, so i can

Re: Which DLL did fail to load

2013-08-25 Thread Terry Reedy
On 8/25/2013 7:23 AM, Александров Петр wrote: When DLL load is failed, Python doesn't writes the DLL name. Wouldn't it better to add a feature to Python to write the name of DLL which load has been failed? If Python initiates a dll load and Python knows the name of the dll and Python writes

Re: multifile programming on python 3

2013-08-25 Thread Mohsen Pahlevanzadeh
On Sun, 2013-08-25 at 12:13 +, Dave Angel wrote: Mohsen Pahlevanzadeh wrote: Dear all, I need help about multifile programming on python 3 and i questioned on stackoverflow : http://stackoverflow.com/questions/18391230/eclipse-python-nameerror-name-mymodule-is-not-defined I

About executable

2013-08-25 Thread Luis José Novoa
Hi All. I am trying to create an executable file containing an optimization code using the pyomo package for optimization modeling along with ither packages like Numpy. When using py2exe to perform the task it generates the executable file, but when I try to run it it reports: Import Error: No

Re: Checking homogeneity of Array using List in Python

2013-08-25 Thread Dave Angel
sahil301...@gmail.com wrote: I am unable to check homogeneity of Array. I have take Array type Int to be default for my code. Instead of getting Error on NON-INT Values. But none of them below are int values. I want to take input as string. Then check if all input is in (0-9) form, I

Re: Python and mysql 3 tier programming

2013-08-25 Thread Gary Roach
On 08/23/2013 08:38 AM, Jason Friedman wrote: System Debian Wheezy Linux Python 2.7 Mysql 5.5.31 Apache Server I am somewhat conversant with html, css, SQL, mysql, Apache and Debian Linux. Actually I have been using Debian for over 10 year. I spent over 5 year, prior to retirement, programming

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread David M. Cotter
fair enough. I can provide further proof of strangeness. here is my latest script: this is saved on disk as a UTF8 encoded file, and when viewing as UTF8, it shows the correct characters. == # -*- coding: utf-8 -*- import time, kjams, kjams_lib def log_success(msg, successB,

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread David M. Cotter
i got it!! OMG! so sorry for the confusion, but i learned a lot, and i can share the result: the CORRECT code *was* what i had assumed. the Python side has always been correct (no need to put u in front of strings, it is known that the bytes are utf8 bytes) it was my run script function

Imaplib gmail move email from inbox to another folder then delete from inbox not working

2013-08-25 Thread rob
I am using imaplib to copy a message from inbox to another folder. I then use /Deleted on the message. When I use expunge it does not remove the message from the inbox. I still have the 'Inbox' and 'newfolder' labels on the message. I want to only have the 'newfolder' label on the message.

python eval function

2013-08-25 Thread Mohsen Pahlevanzadeh
Dear all, eval doesn't run my code at the following link: http://stackoverflow.com/questions/18432198/eval-function-doesnt-work-in-python Thank you before your answer... --mohsen -- http://mail.python.org/mailman/listinfo/python-list

Re: python eval function

2013-08-25 Thread Terry Reedy
On 8/25/2013 3:18 PM, Mohsen Pahlevanzadeh wrote: eval doesn't run my code at the following link: http://stackoverflow.com/questions/18432198/eval-function-doesnt-work-in-python Already answered there (code is statememt, not expression) -- Terry Jan Reedy --

Re: python eval function

2013-08-25 Thread Ned Batchelder
On 8/25/13 7:49 PM, Terry Reedy wrote: On 8/25/2013 3:18 PM, Mohsen Pahlevanzadeh wrote: eval doesn't run my code at the following link: http://stackoverflow.com/questions/18432198/eval-function-doesnt-work-in-python Already answered there (code is statememt, not expression) The larger

Re: can't get utf8 / unicode strings from embedded python

2013-08-25 Thread MRAB
On 25/08/2013 23:32, David M. Cotter wrote: i got it!! OMG! so sorry for the confusion, but i learned a lot, and i can share the result: the CORRECT code *was* what i had assumed. the Python side has always been correct (no need to put u in front of strings, it is known that the bytes are

Re: python eval function

2013-08-25 Thread Steven D'Aprano
On Sun, 25 Aug 2013 23:48:34 +0430, Mohsen Pahlevanzadeh wrote: Dear all, eval doesn't run my code at the following link: http://stackoverflow.com/questions/18432198/eval-function-doesnt-work- in-python Are you asking a question or just sharing a useful link? Thank you before your

Re: Help in Nltk

2013-08-25 Thread projectfack
im a beginner so im trying to code using python ,Here system is just the program ,as the program can be done in any language i chose to do in nltk lib in python -- http://mail.python.org/mailman/listinfo/python-list

[issue11973] kevent does not accept KQ_NOTE_EXIT (and other (f)flags)

2013-08-25 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11973 ___ ___ Python-bugs-list mailing

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-25 Thread Charles-François Natali
Charles-François Natali added the comment: The test is failing on Tiger buildbots: == FAIL: test_parse_cert_CVE_2013_4238 (test.test_ssl.BasicSocketTests) --

[issue12869] PyOS_StdioReadline is printing the prompt on stderr

2013-08-25 Thread Drekin
Drekin added the comment: Related stackoverflow question: http://stackoverflow.com/questions/18419787/where-does-pythons-interactive-prompt-output-to . -- nosy: +Drekin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12869

[issue18808] Thread.join returns before PyThreadState is destroyed

2013-08-25 Thread Charles-François Natali
Charles-François Natali added the comment: The first patch looks good, as for the second one, it'll take some time :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18808 ___

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-25 Thread Donald Stufft
Changes by Donald Stufft don...@stufft.io: -- nosy: +dstufft ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18709 ___ ___ Python-bugs-list mailing

[issue17741] event-driven XML parser

2013-08-25 Thread Stefan Behnel
Stefan Behnel added the comment: 1. Why have the event builder wrap a tree builder? Can't it just be a separate target? You need a TreeBuilder in order to build the tree for the events. If you want to use a different target than a TreeBuilder, you're free to do so. That's the idea of

[issue18643] implement socketpair() on Windows

2013-08-25 Thread Charles-François Natali
Charles-François Natali added the comment: Alright, I think I know what's happening. The Python implementation uses a TCP socket, whereas the native implementation uses AF_UNIX socket. The maximum size of data that can be written to a socket without blocking is given by its send/receive

[issue18643] implement socketpair() on Windows

2013-08-25 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: Added file: http://bugs.python.org/file31458/sendall_write.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18643 ___

[issue18819] tarfile fills devmajor and devminor fields even for non-devices

2013-08-25 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +lars.gustaebel versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18819 ___

[issue17234] python-2.7.3-r3: crash in visit_decref()

2013-08-25 Thread Martin Mokrejs
Martin Mokrejs added the comment: Hi Ramchandra and Christian, I am using numpy, matplotlib, expat/cElementTree, doing a lot of os.Popen calls. But I think the problem is taht I have huge lists and when I do not need them I do del(_mylist) in the code ASAP. That probably causes a lot of

[issue17234] python-2.7.3-r3: crash in visit_decref()

2013-08-25 Thread Ramchandra Apte
Ramchandra Apte added the comment: Here is one stacktrace I just got with the faulthandler installed. It does not show in the trace any 3rd-party module so can I conclude it is a core python bug? Just recompiling with -ggdb so eventually will have better stacktraces. I'm a C noob but I

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2013-08-25 Thread Drekin
Drekin added the comment: Why are there actually more codepaths which may raise this issue? My naive idea would be that input() is just thin wrapper around sys.stdout.write() (for prompt) and sys.stdin.readline() which leads to sys.stdin.buffer.raw.read* where is the place where some low

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 004743d210e4 by Christian Heimes in branch '3.3': Issue #18709: Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger http://hg.python.org/cpython/rev/004743d210e4 New changeset 577e9402cadd by Christian Heimes in branch 'default': Issue

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-08-25 Thread Christian Heimes
Christian Heimes added the comment: Tiger has OpenSSL 0.9.7 which doesn't support IPv6 addresses. I have added a workaround. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18709 ___

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8b962e831ff0 by Christian Heimes in branch '3.3': Issue #18747: Fix spelling errors in my commit message and comments, http://hg.python.org/cpython/rev/8b962e831ff0 New changeset 7b1da249ab6d by Christian Heimes in branch 'default': Issue #18747:

[issue11973] kevent does not accept KQ_NOTE_EXIT (and other (f)flags)

2013-08-25 Thread Christian Heimes
Christian Heimes added the comment: The patch looks good to me. -- nosy: +christian.heimes versions: +Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11973

[issue18828] urljoin behaves differently with custom and standard schemas

2013-08-25 Thread Mher Movsisyan
New submission from Mher Movsisyan: urljoin('redis://localhost:6379/0', '/1') '/1' urljoin('http://localhost:6379/0', '/1') 'http://localhost:6379/1' -- messages: 196125 nosy: mher.movsisyan priority: normal severity: normal status: open title: urljoin behaves differently with custom

[issue18829] csv produces confusing error message for unexpected string encoding

2013-08-25 Thread Thibault Kruse
New submission from Thibault Kruse: To reproduce $ python --version Python 2.7.3 $ python -c 'from __future__ import unicode_literals; import csv; reader = csv.reader(foo, delimiter=,)' Traceback (most recent call last): File string, line 1, in module TypeError: delimiter must be an

[issue11973] kevent does not accept KQ_NOTE_EXIT (and other (f)flags)

2013-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5334d8907dc by Christian Heimes in branch '3.3': Issue #11973: Fix a problem in kevent. The flags and fflags fields are now http://hg.python.org/cpython/rev/d5334d8907dc New changeset 8345fb616cbd by Christian Heimes in branch 'default': Issue

[issue11973] kevent does not accept KQ_NOTE_EXIT (and other (f)flags)

2013-08-25 Thread Christian Heimes
Christian Heimes added the comment: Does somebody want to write a test for the issue, too? -- resolution: - fixed stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11973

[issue18323] 'GzipFile' object has no attribute 'extrastart'

2013-08-25 Thread Gökcen Eraslan
Changes by Gökcen Eraslan gokcen.eras...@gmail.com: -- nosy: +gkcn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18323 ___ ___ Python-bugs-list

[issue13397] Option for XMLRPC clients to automatically transform Fault exceptions into standard exceptions

2013-08-25 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's a basic patch. I have two issues with it: the flag name used for enabling the exceptions seems too verbose (use_python_exceptions, I'm opened to new suggestions) and I don't know if the fallback to Fault exception if the remote exception is not known is

[issue13397] Option for XMLRPC clients to automatically transform Fault exceptions into standard exceptions

2013-08-25 Thread Donald Stufft
Donald Stufft added the comment: -1 This essentially gives the ability for an XMLRPC server to crash any python code that interfaces with them unless you catch _every_ single exception including ones like SystemExit, KeyboardInterupt, SyntaxError, StopIteration etc. An XMLRPC server is not

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-08-25 Thread R. David Murray
R. David Murray added the comment: I agree that the 2.7 message is somewhat confusing, but I'm not sure it is worth changing at this point in 2.7's life cycle. For Python3, the message is correct and unambiguous: a bytes object is not a string. However, in 3.3, we have a regression:

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-08-25 Thread R. David Murray
R. David Murray added the comment: I forgot to address the comment about accepting bytes in python3: the delimiter really is a unicode character. In python3, non-ASCII delimiters are handled correctly. So no, it isn't a byte anymore, it really is a string. Terry's comment about 'char' in

[issue17741] event-driven XML parser

2013-08-25 Thread Eli Bendersky
Eli Bendersky added the comment: Looking at this more, the Parser/Builder abstraction in ET leaks badly, especially when it comes to incremental parsing. This manifests in (at least) two ways: 1. The parser accepted by iterparse has to use the ET-provided TreeBuilder, because the C

[issue17741] event-driven XML parser

2013-08-25 Thread Stefan Behnel
Stefan Behnel added the comment: I attached a patch that removes the IncrementalParser class and merges its functionality into the _IterParseIterator. It thus retains most of the refactoring without adding new functionality and/or APIs. I did not take a look if anything else from later

[issue17741] event-driven XML parser

2013-08-25 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the effort, Stefan, but I still think IncrementalParser is worth keeping. It provides functionality that doesn't currently exist in ET, and IMHO this functionality is both important and useful. Renaming its methods to feed close kills the API

[issue17741] event-driven XML parser

2013-08-25 Thread Stefan Behnel
Stefan Behnel added the comment: TreeBuilder has to support an explicit API for collecting and reporting events. XMLParser has to call into this API and either not have _setevents at all or have something public and documented. Note also that event hookup in the parser makes sense in a way,

[issue17741] event-driven XML parser

2013-08-25 Thread Stefan Behnel
Stefan Behnel added the comment: I still think IncrementalParser is worth keeping. If you want to keep it at all cost, I think we should at least hide it behind a function (as with iterparse()). If it's implemented as a class, chances are that people will start relying on internals by

[issue18830] Remove duplicates from a result of getclasstree()

2013-08-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: inspect.getclasstree() produces duplicated entities when it's argument contains duplicated classes. This happened when a module contains class aliases. For example `pydoc zipfile` outputs three entities for BadZipFile (BadZipfile and error are aliases of

[issue17741] event-driven XML parser

2013-08-25 Thread Eli Bendersky
Eli Bendersky added the comment: Stefan Behnel added the comment: I still think IncrementalParser is worth keeping. If you want to keep it at all cost, I think we should at least hide it behind a function (as with iterparse()). If it's implemented as a class, chances are that people will

[issue16611] Cookie.py does not parse httponly or secure cookie flags

2013-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0dbe45697efc by R David Murray in branch '3.3': #16611: BaseCookie now parses 'secure' and 'httponly' flags. http://hg.python.org/cpython/rev/0dbe45697efc New changeset f81846c2b746 by R David Murray in branch 'default': Merge #16611: BaseCookie

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-08-25 Thread Vajrasky Kok
Vajrasky Kok added the comment: This is the preliminary patch to fix the error message. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file31462/fix_error_message_reader_csv.patch ___ Python tracker rep...@bugs.python.org

[issue16611] Cookie.py does not parse httponly or secure cookie flags

2013-08-25 Thread R. David Murray
R. David Murray added the comment: Fix committed. Thanks, Julien. If you want to propose a new patch the makes the behavior more consistent/useful with respect to what browsers and servers actually do, feel free to propose one. I'm going to close this issue, though. -- resolution:

[issue17741] event-driven XML parser

2013-08-25 Thread Stefan Behnel
Stefan Behnel added the comment: Actually, let me revise my rpevious comment. I think we should fake the new interface for now by adding a TreeEventBuilder that requires having its own TreeBuilder internally, instead of wrapping an arbitrary target. That way, we can avoid having to clean up

[issue18831] importlib.import_module() bypasses builtins.__import__

2013-08-25 Thread Brett Cannon
New submission from Brett Cannon: Not sure if anyone really cares about this (I don't, but I figured I should at least let it be known), but I realized that importlib.import_module() bypasses builtins.__import__ by calling directly into the innards of importlib (specifically _gcd_import()

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-08-25 Thread Vajrasky Kok
Vajrasky Kok added the comment: This is the second alternative of the patch to fix the error message using different approach. I am not sure which one is better. -- Added file: http://bugs.python.org/file31463/fix_error_message_reader_csv_alternative_1.patch

[issue17741] event-driven XML parser

2013-08-25 Thread Eli Bendersky
Eli Bendersky added the comment: Stefan, I don't mind looking at a working patch; however, it's not clear to me how you intend to solve the iterparse-accepting-a-custom-XMLParser problem. As for faking the new API, I don't know if that's a good idea because we're not yet sure what that new

[issue18323] 'GzipFile' object has no attribute 'extrastart'

2013-08-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We can add in readline() the check that GzipFile is opened in read mode. However it will slowdown readline(). See alse issue18003. Note that the original example is not correct. zlib.compress() doesn't produce legal Gzip file. -- nosy:

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-08-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18829

[issue17741] event-driven XML parser

2013-08-25 Thread Stefan Behnel
Stefan Behnel added the comment: fully working patches will be considered Let me remind you that it's not me who wants this feature so badly. As for faking the new API, I don't know if that's a good idea because we're not yet sure what that new API is. If that's your concern, then I

[issue18647] re.error: nothing to repeat

2013-08-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18647

[issue17741] event-driven XML parser

2013-08-25 Thread Eli Bendersky
Eli Bendersky added the comment: As for faking the new API, I don't know if that's a good idea because we're not yet sure what that new API is. If that's your concern, then I suggest not adding the feature at all, as long as we don't know if we can (or should) keep up the IncrementalParser

[issue18817] Got resource warning when running Lib/aifc.py

2013-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3eec06aa12e by Serhiy Storchaka in branch '2.7': Issue #18817: Fix a resource warning in Lib/aifc.py demo. http://hg.python.org/cpython/rev/e3eec06aa12e New changeset e0c33e0c0483 by Serhiy Storchaka in branch '3.3': Issue #18817: Fix a resource

[issue18817] Got resource warning when running Lib/aifc.py

2013-08-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch Vajrasky. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue18763] subprocess: file descriptors should be closed after preexec_fn is called

2013-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2b023135b1b by Charles-François Natali in branch '2.7': Issue #18763: subprocess: The file descriptors are now closed after calling the http://hg.python.org/cpython/rev/f2b023135b1b New changeset 4c52d4bac03c by Charles-François Natali in branch

[issue18685] Restore re performance to pre-PEP393 level

2013-08-25 Thread Tal Weiss
Changes by Tal Weiss t...@evature.com: -- nosy: +Tal.Weiss ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18685 ___ ___ Python-bugs-list mailing

[issue18832] New regex module degrades re performance

2013-08-25 Thread Tal Weiss
New submission from Tal Weiss: All tests I ran comparing timing of the new regex module relative to the old re module showed significant slower performance. I'm attaching test code with regular expressions from our production server. Tested on Python 2.7, 64 bit Linux + 64 bit Windows 7. regex

[issue18808] Thread.join returns before PyThreadState is destroyed

2013-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset becbb65074e1 by Antoine Pitrou in branch 'default': Issue #18808: Non-daemon threads are now automatically joined when a sub-interpreter is shutdown (it would previously dump a fatal error). http://hg.python.org/cpython/rev/becbb65074e1 --

[issue17741] event-driven XML parser

2013-08-25 Thread Stefan Behnel
Stefan Behnel added the comment: Also, even if the new approach is implemented in the next release, IncrementalParser can stay as a simple synonym to XMLParser(target=EventBuilder(...)). No it can't. According to your signature, it accepts a parser instance as input. So it can't just create a

[issue18808] Thread.join returns before PyThreadState is destroyed

2013-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've committed the first patch. -- versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18808 ___

[issue18728] Increased test coverage for filecmp.py

2013-08-25 Thread Alex Volkov
Alex Volkov added the comment: HI Vajrasky, I fixed the typo in a comment and removed WIN32 constant definition from the code. I looked at the existing tearDown method, on line 79, it calls shutil.rmtree on a directory above the files/directories I'm writing my test files, so the statements

[issue18833] Increased test coverage for telnetlib

2013-08-25 Thread Alex Volkov
New submission from Alex Volkov: This issue splits up an unrelated patch from issue 18731 http://bugs.python.org/issue18731 Added a test for telnetlib increasing test coverage. Updated with the changes from code review of issue 18731 http://bugs.python.org/review/18731/patch/8923/33000

[issue18763] subprocess: file descriptors should be closed after preexec_fn is called

2013-08-25 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue18832] New regex module degrades re performance

2013-08-25 Thread Matthew Barnett
Matthew Barnett added the comment: The 'regex' module is not part of the CPython distribution, so it's not covered by this tracker. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18832

[issue18832] New regex module degrades re performance

2013-08-25 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18832 ___

[issue18834] Add Clang to distutils to build C/C++ extensions

2013-08-25 Thread Ryan Gonzalez
New submission from Ryan Gonzalez: A have created to patches(for ccompiler.py and cygwinccompiler.py) to add Clang as a compiler in distutils. The patches are here: ccompiler.py: http://pastebin.com/yMGYys0P cygwinccompiler.py: http://pastebin.com/a49qNP6n I used the distutils version from

[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-08-25 Thread Ezio Melotti
Ezio Melotti added the comment: Apparently this has been fixed upstream in glibc: http://sourceware.org/bugzilla/show_bug.cgi?id=15339 There's also a related discussion at http://sourceware.org/bugzilla/show_bug.cgi?id=15726 Barry, can this be closed? -- nosy: +ezio.melotti type: -

[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-08-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Works here on 13.04. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17759 ___ ___

[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-08-25 Thread Yavor
Yavor added the comment: Within this note https://sourceware.org/glibc/wiki/NameResolver about getaddrinfo(): In case there was a *negative* answer it's unclear what should be returned. -- ___ Python tracker rep...@bugs.python.org

[issue18833] Increased test coverage for telnetlib

2013-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b33d786b46d by Ezio Melotti in branch '2.7': #18833: add a test for test_telnetlib. Patch by Alex Volkov. http://hg.python.org/cpython/rev/6b33d786b46d New changeset 1b42e483e520 by Ezio Melotti in branch '3.3': #18833: add a test for

[issue18833] Increased test coverage for telnetlib

2013-08-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! Could you also sign the contributor agreement? http://www.python.org/psf/contrib/contrib-form/ -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open -

[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-08-25 Thread Ezio Melotti
Ezio Melotti added the comment: FTR this got fixed (i.e. the timeout is ignored) in 3.3 (b17662fc41af) and default (6f8fef208958), but on 2.7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17759

[issue17741] event-driven XML parser

2013-08-25 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17741 ___ ___

[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-08-25 Thread Ezio Melotti
Ezio Melotti added the comment: The new tests produce a few warnings: $ ./python -m test -uall test_multiprocessing_spawn [1/1] test_multiprocessing_spawn Using start method 'spawn' Warning -- threading._dangling was modified by test_multiprocessing_spawn Warning --

[issue17741] event-driven XML parser

2013-08-25 Thread Eli Bendersky
Eli Bendersky added the comment: I actually have another idea. Since we all agree that passing a custom parser to iterparse is dubious, IncrementalParser does not have to do that at all. This will make it a much more future-proof API. So its signature can be: class

[issue18803] Fix more typos in .py files

2013-08-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 33b156e118c0 by Ezio Melotti in branch '2.7': #18803: fix more typos. Patch by Févry Thibault. http://hg.python.org/cpython/rev/33b156e118c0 New changeset c57d99a8fc42 by Ezio Melotti in branch '3.3': #18803: fix more typos. Patch by Févry

[issue18803] Fix more typos in .py files

2013-08-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python - ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 2.7, Python 3.3 ___ Python

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-08-25 Thread Vajrasky Kok
Vajrasky Kok added the comment: I realized there was a test that was similar with my test. I merged them into one test. I think the alternative is better than the original patch so I updated the alternative patch only. -- Added file:

[issue13397] Option for XMLRPC clients to automatically transform Fault exceptions into standard exceptions

2013-08-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Do you have a suggestion for white-listing or a fault-to-exception mapper? The current API makes faults difficult to use in Python. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13397

  1   2   >