Re: [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread prilisauer
Hey :-P I think I should rename the threads name into a new Doc project, I'm sure It won't take much time to fill a book with our knowledge. Thanks to Rick, you have Posted exactly what I wanted to ask. I know the that __variable = 'xyz' _variable = 'xyz' are used to make them private, but I

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread Steven D'Aprano
On Mon, 24 Dec 2012 00:19:18 -0500, Dave Angel wrote: Nobody's going to be able to understand your code if you persist in using self in unpythonic ways. It's used as the first argument of a class method. Period. To be pedantic, self is the conventional argument for *instance* methods, not

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread prilisauer
Hello Steven, to learn python I've bought a book, and it's not a thin one :-) it's more a 788p. long documentation about python. BUT! I have to say: The autor started using the self. argument at the chapter classes. So You've shown me the book descr. non correct way. Better using this

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread Dave Angel
On 12/25/2012 09:41 AM, prilisa...@googlemail.com wrote: Hello Steven, to learn python I've bought a book, and it's not a thin one :-) it's more a 788p. long documentation about python. BUT! I have to say: The autor started using the self. argument at the chapter classes. So You've

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread prilisauer
By the way i haven't add the Title because it's a german only book named Python 3: Das umfangreiche Handbuch, Published by Galileo Computing and also, because I've registered to first check if the Autor has allready published a update. Too many information's could ocurre in an avalanche I see

Re: Scrapy/XPath help

2012-12-25 Thread donarb
On Friday, December 21, 2012 1:58:47 PM UTC-8, Always Learning wrote: The errors I get are File C:\python27\lib\site-packages\scrapy-0.16.3-py2.7.egg\scrapy\selector\lxmlsel.py, line 47, in select raise ValueError(Invalid XPath: %s % xpath) exceptions.ValueError: Invalid XPath:

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread Rick Johnson
On Tuesday, December 25, 2012 11:10:49 AM UTC-6, Dave Angel wrote: We all make mistakes, like my referring to class methods when I meant instance methods. This mistake reminded of how people in this group (maybe not you in particular) happily accept the terms instance method and class method

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread Steven D'Aprano
On Tue, 25 Dec 2012 12:16:16 -0800, Rick Johnson wrote: On Tuesday, December 25, 2012 11:10:49 AM UTC-6, Dave Angel wrote: We all make mistakes, like my referring to class methods when I meant instance methods. This mistake reminded of how people in this group (maybe not you in

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread Rick Johnson
On Tuesday, December 25, 2012 3:08:21 PM UTC-6, Dennis Lee Bieber wrote: Only that many of us don't believe Python has /variables/, the use of instance/class as a modifier is thereby moot. What IS a variable Dennis? # #

regarding compiling the Python 2.7 and 3.3 with mingw

2012-12-25 Thread ginzzer
Hi all, For some reason, I have to develop my software with mingw under windows. First of all, I need python installed in the msys but I try all my ways to install 2.6.x, 2.7.x, 3.2.x and 3.3.0, no one succeed. I search all issues and google the related information online, it seems that it

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread Rick Johnson
On Tuesday, December 25, 2012 4:56:44 PM UTC-6, Steven D'Aprano wrote: Rick, what makes you think that this is logically inconsistent? Method is the accepted name for functions attached to classes. They report themselves as methods: [...] There are two built-ins for creating different types

Simple audio library

2012-12-25 Thread Abhas Bhattacharya
Which simple python audio library will you suggest for low level audio creation (for eg I want to create tones of different intensities and frequency continously and then record the whole sequence)? (Although a minimal audio library is ok, it would be better if you can tell me about a

Re: Finding the name of a function while defining it

2012-12-25 Thread Roy Smith
In article c9548d77-ccc3-4b47-b84b-9a9f0c285...@googlegroups.com, Abhas Bhattacharya abhasbhattachar...@gmail.com wrote: While I am defining a function, how can I access the name (separately as string as well as object) of the function without explicitly naming it(hard-coding the name)?

Re: [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread alex23
On 26 Dec, 09:42, Rick Johnson rantingrickjohn...@gmail.com wrote: Python classes CAN and DO have variables, just as Python modules have variables; psst: they're called global variables! Actually, they're called module attributes, but don't let the facts get in the way of your little rant. You

Re: Password hash

2012-12-25 Thread Ramchandra Apte
On Monday, 24 December 2012 08:08:12 UTC+5:30, Robert Montgomery wrote: I am writing a script that will send an email using an account I set up in gmail. It is an smtp server using tls on port 587, and I would like to use a password hash in the (python) script for login rather than

Re: Simple audio library

2012-12-25 Thread Xantipius
On Dec 26, 5:07 am, Abhas Bhattacharya abhasbhattachar...@gmail.com wrote: Which simple python audio library will you suggest for low level audio creation (for eg I want to create tones of different intensities and frequency continously and then record the whole sequence)? (Although a

EOFError why print(e) cannot print out any information ?

2012-12-25 Thread iMath
why print(e) cannot print out any information ? class user: def __init__(self, x,y,z): self.id = x self.name = y self.emailadd=z def dispuser(self): print('User ID: ', self.id) print('User Name : ',

Re: EOFError why print(e) cannot print out any information ?

2012-12-25 Thread Andrew Berg
On 2012.12.25 23:26, iMath wrote: why print(e) cannot print out any information ? If you want to manipulate tracebacks, use sys.exc_info() and the traceback module from the standard library. The logging module also comes with an exception() function and an exception() method for Logger objects

Command Line Progress Bar

2012-12-25 Thread Kevin Anthony
Hello, I'm writing a file processing script(Linux), and i would like to have a progress bar. But i would also like to be able to print messages. Is there a simple way of doing this without implementing something like ncurses? -- Thanks Kevin Anthony www.NoSideRacing.com Do you use Banshee?

Re: Command Line Progress Bar

2012-12-25 Thread Mitya Sirenef
On 12/26/2012 01:17 AM, Kevin Anthony wrote: Hello, I'm writing a file processing script(Linux), and i would like to have a progress bar. But i would also like to be able to print messages. Is there a simple way of doing this without implementing something like ncurses? -- Thanks Kevin

I am facing an issue while decoding json string using json.loads

2012-12-25 Thread sajuptpm
I am facing an issue while decoding json string using json.loads(jstring). Its working, if i do json.dumps(eval(jstring)) before json.loads(jstring). I could not figure out the issue. I want to avoide use of eval here. ## Failing without json.dumps(eval(jstring)) def

[issue16770] Selection in IDLE often skips first character

2012-12-25 Thread Ned Deily
Ned Deily added the comment: Sorry, I'm not able to reproduce the behavior you report, either using a current OS X 10.8.2 system with python.org 2.7.3 and ActiveTcl 8.5.13 or on a virtual 10.6.8 system with an 8.5.12 ActiveTcl. That said, such behavior would almost certainly be due to

[issue16773] int() half-accepts UserString

2012-12-25 Thread Ed Campbell
Changes by Ed Campbell drescampb...@gmail.com: -- nosy: +esc24 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16773 ___ ___ Python-bugs-list

[issue16775] Add test coverage for os.removedirs()

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- components: Library (Lib) keywords: easy nosy: asvetlov priority: normal severity: normal status: open title: Add test coverage for os.removedirs() versions: Python 3.2, Python 3.3, Python 3.4

[issue16775] Add test coverage for os.removedirs()

2012-12-25 Thread Roundup Robot
New submission from Roundup Robot: New changeset c3acc5ead883 by Andrew Svetlov in branch '3.2': Add test coverage for os.removedirs (#16775) http://hg.python.org/cpython/rev/c3acc5ead883 New changeset dbe9413686b3 by Andrew Svetlov in branch '3.3': Add test coverage for os.removedirs (#16775)

[issue16775] Add test coverage for os.removedirs()

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16775 ___

[issue16775] Add test coverage for os.removedirs()

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16775 ___ ___

[issue16644] Wrong code in ContextManagerTests.test_invalid_args() in test_subprocess.py

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

[issue16776] Document PyCFunction_New and PyCFunction_NewEx functions

2012-12-25 Thread Andrew Svetlov
New submission from Andrew Svetlov: c-api docs has no documentation for those public API functions. -- assignee: docs@python components: Documentation keywords: easy messages: 178115 nosy: asvetlov, docs@python priority: normal severity: normal status: open title: Document

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: #16776 created for documenting PyCFunction_New/PyCFunction_NewEx -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15422 ___

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3a86a3f1d89a by Andrew Svetlov in branch 'default': Issue #15422: get rid of PyCFunction_New macro http://hg.python.org/cpython/rev/3a86a3f1d89a -- nosy: +python-dev ___ Python tracker

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15422

[issue16218] Python launcher does not support unicode characters

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Victor, are you done all work for the issue? Can it be closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16218 ___

[issue16765] Superfluous import in cgi module

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f77648af7ff0 by Ezio Melotti in branch '2.7': #16765: remove unused import. http://hg.python.org/cpython/rev/f77648af7ff0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue16765] Superfluous import in cgi module

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! I wasn't sure about the patch format, so I added a unified diff. The best way is to get a clone of CPython and use hg diff patch.diff. You can find more information about it in the devguide. -- assignee: - ezio.melotti

[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2012-12-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16748 ___ ___

[issue16666] docs wrongly imply socket.getaddrinfo takes keyword arguments in 2.x

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e5e7064e872 by Ezio Melotti in branch '2.7': #1: document default values for socket.getaddrinfo in the text to clarify that it doesn't accept keyword args. http://hg.python.org/cpython/rev/1e5e7064e872 -- nosy: +python-dev

[issue16666] docs wrongly imply socket.getaddrinfo takes keyword arguments in 2.x

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org

[issue879399] socket line buffering

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5be3fa83d436 by Kristján Valur Jónsson in branch '2.7': issue #879399 http://hg.python.org/cpython/rev/5be3fa83d436 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue879399] socket line buffering

2012-12-25 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue879399 ___ ___

[issue14574] SocketServer doesn't handle client disconnects properly

2012-12-25 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: So, should I commit this? The change is really trivial. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14574 ___

[issue16765] Superfluous import in cgi module

2012-12-25 Thread Michiel Holtkamp
Michiel Holtkamp added the comment: Thanks, I will do that next time. Happy holidays everyone! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16765 ___

[issue16742] PyOS_Readline drops GIL and calls PyOS_StdioReadline, which isn't thread safe

2012-12-25 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- nosy: +kristjan.jonsson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16742 ___ ___

[issue879399] socket line buffering

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue879399 ___

[issue16677] Hard to find operator precedence in Lang Ref.

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset a0f6c68ea12f by Ezio Melotti in branch '2.7': #16677: rename section header and fix markup. http://hg.python.org/cpython/rev/a0f6c68ea12f New changeset 2eab4f7b7280 by Ezio Melotti in branch '3.2': #16677: rename section header and fix markup.

[issue16777] Evaluation order doc section is wrong about dicts

2012-12-25 Thread Ezio Melotti
New submission from Ezio Melotti: http://docs.python.org/2/reference/expressions.html#evaluation-order says that the dicts are evaluated in this order: {expr1: expr2, expr3: expr4} however each value is evaluated before the respective key: def f(x): print(x) return x {f('k1'): f('v1'),

[issue16677] Hard to find operator precedence in Lang Ref.

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: I think it's better to keep the two sections separate, so I just changed the title from Summary to Operator precedence. While I was at it I also fixed the markup in a few places in the section and noticed a mistake in the Evaluation order (reported in #16777).

[issue16777] Evaluation order doc section is wrong about dicts

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: This has already been reported in #11205. -- resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - Evaluation order of dictionary display is different from reference manual.

[issue16715] Get rid of IOError. Use OSError instead

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16715 ___

[issue16715] Get rid of IOError. Use OSError instead

2012-12-25 Thread Roundup Robot
New submission from Roundup Robot: New changeset 7d69d04522e3 by Andrew Svetlov in branch 'default': Replace IOError with OSError (#16715) http://hg.python.org/cpython/rev/7d69d04522e3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Georg Brandl
Georg Brandl added the comment: I don't think this is the only use of this particular idiom; I recall it is used every time we amend a function with an _Ex version. Why was this change necessary? -- nosy: +georg.brandl, pitrou ___ Python tracker

[issue11205] Evaluation order of dictionary display is different from reference manual.

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: I came across the same problem in #16777. IMHO the current behavior is better, and the documentation should be fixed instead, for the following reasons: 1) it's consistent with assignments, where the RHS is evaluated before the LHS (see also msg128500). This

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Georg Brandl
Georg Brandl added the comment: BTW it would be good if you could have at least one other developer look at issues like this and get a LGTM vote before committing all by yourself. -- ___ Python tracker rep...@bugs.python.org

[issue16772] int() accepts float number base

2012-12-25 Thread Georg Brandl
Georg Brandl added the comment: Can you give examples? I'm unable to guess what exactly you are reporting from quick experiments. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16772

[issue16772] int() accepts float number base

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: 2.7$ ./python -c 'int(5, 12.5)' Traceback (most recent call last): File string, line 1, in module TypeError: integer argument expected, got float 3.2$ ./python -c 'int(5, 12.5)' 3.2$ -- ___ Python tracker

[issue16772] int() accepts float number base

2012-12-25 Thread Georg Brandl
Georg Brandl added the comment: Ah. I was thinking of things like ``int('1.2', 10)``, not the base itself being a float. In this case, looks like a bug to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16772

[issue9022] TypeError in wsgiref.handlers when using CGIHandler

2012-12-25 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Add fixups for encoding problems to wsgiref ___ Python tracker rep...@bugs.python.org

[issue15005] trace corrupts return result on chained execution

2012-12-25 Thread anatoly techtonik
anatoly techtonik added the comment: The trace module helps to gather program flow statistics and see the differences in patterns for large systems when program evolves. In particular, components ported to Python 3 should still behave the same way on Python 2. Right now the behavior under the

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: 1. Yes, you right. We use this idiom also for PyAST_CompileEx, PyErr_WarnEx and bunch of functions in ./Include/pythonrun.h 2. Patch is very simple and was available for review almost 3 months. I assumed that developers looked on this and had no objections.

[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2012-12-25 Thread Stefan Krah
Stefan Krah added the comment: Perhaps I misunderstood something, but test_decimal.py *is* using the exact idiom from PEP-399 and it works. Why do you want to fix the usage of this idiom? -- nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: Should this be considered a new feature or should it be applied to older versions as well? -- keywords: +easy stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org

[issue16684] Unicode property value abbreviated names and long names

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: The script should probably be integrated in Tools/unicode/makeunicodedata.py. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16684 ___

[issue16770] Selection in IDLE often skips first character

2012-12-25 Thread Irwin Jungreis
Irwin Jungreis added the comment: The output of the commands you suggested is below. I've attached a short video showing the problem (listen for the mouse clicks). I also tried with a variety of fonts (proportional and fixed) and font sizes, both bold and not bold, and all had the same

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b11f98872c0f by Ezio Melotti in branch '2.7': #16760: use ref:`match-objects` instead of :class:`MatchObject`. http://hg.python.org/cpython/rev/b11f98872c0f New changeset 7c4ef8faeb4a by Ezio Melotti in branch '3.2': #16760: use ref:`match-objects`

[issue16778] Logger.findCaller needs to be smarter

2012-12-25 Thread Glynn Clements
New submission from Glynn Clements: The current behaviour of logging.Logger.findCaller() makes it awkward to add custom logging interfaces. E.g. suppose that you define a custom logging level (NOTICE) then add a notice() function (analogous to logging.info() etc), the resulting LogRecord

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16760

[issue16778] Logger.findCaller needs to be smarter

2012-12-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16778 ___ ___

[issue16772] int() accepts float number base

2012-12-25 Thread Mark Dickinson
Mark Dickinson added the comment: I agree that this should be fixed. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16772 ___

[issue16766] small disadvantage of htmlentitydefs

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: That's because apos; is not a valid character reference in HTML 4, but only in HTML5/XML/XHTML. A mapping that contains a list of HTML 5 entities has been added from Python 3.3. Modules like HTMLParser also include apos; among the entities while parsing.

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: We need to rename MatchObject to match object than (see #16443) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16760 ___

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3bee420d400f by Andrew Svetlov in branch '3.2': rename MathcObject to match object in doctrings for re module (#16760) http://hg.python.org/cpython/rev/3bee420d400f New changeset 73b24ee09e0a by Andrew Svetlov in branch '3.3': rename MathcObject to

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ca8f965fd65 by Andrew Svetlov in branch '2.7': rename MathcObject to match object in doctrings for re module (#16760) http://hg.python.org/cpython/rev/6ca8f965fd65 -- ___ Python tracker

[issue16443] Add docstrings to regular expression match objects

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in #16760 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16443 ___ ___ Python-bugs-list mailing list

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16760 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16760] Get rid of MatchObject in regex HOWTO

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16760 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14468] Update cloning guidelines in devguide

2012-12-25 Thread Ezio Melotti
Ezio Melotti added the comment: hg graft should also be mentioned. I now use hg graft 2.7 instead of hg export 2.7 | hg import - to copy changeset from 2.7 to 3.2 (and then merge on 3.3/3.x). -- ___ Python tracker rep...@bugs.python.org

[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2012-12-25 Thread Stefan Krah
Stefan Krah added the comment: I finally understood the issue. So this does not work: ./python -m unittest discover Lib/test/ 'test_dec*.py' Neither does this: ./python -m unittest discover Lib/test/ 'test_multipro*.py' And this fails, too (still hanging): ./python -m unittest

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Georg Brandl
Georg Brandl added the comment: There is no silent acceptance. No comment means that nobody reviewed it, which is no surprise given the number of open issues :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15422

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Georg Brandl
Georg Brandl added the comment: So given #1 and #3, I would recommend reverting the part of the patch that removes the macro. Changing caller sites in CPython sources is fine. -- ___ Python tracker rep...@bugs.python.org

[issue15422] Get rid of PyCFunction_New macro

2012-12-25 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: fixed - stage: committed/rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15422 ___

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2012-12-25 Thread Michael Foord
Michael Foord added the comment: It smells like a feature to me (it isn't a direct bug fix anyway). It can be applied to earlier versions of Python through a new unittest2 release. -- versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___

[issue16779] Fix compiler warning when building extension modules on 64-bit Windows

2012-12-25 Thread Jeremy Kloth
New submission from Jeremy Kloth: The 64-bit linker doesn't mangle the dllexport'ed module init function (from PyMODINIT_FUNC) so it causes an exported name conflict. We cannot just remove that name from export_symbols as the module may not have used PyMODINIT_FUNC on its init function. The

[issue14574] SocketServer doesn't handle client disconnects properly

2012-12-25 Thread Charles-François Natali
Charles-François Natali added the comment: So, should I commit this? The change is really trivial. LGTM. This should be applied to 2.7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14574

[issue16773] int() half-accepts UserString

2012-12-25 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16773 ___ ___

[issue16772] int() accepts float number base

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e510e028c486 by Gregory P. Smith in branch 'default': Fixes issue #16772: int() constructor second argument (base) must be an int. http://hg.python.org/cpython/rev/e510e028c486 -- nosy: +python-dev ___

[issue16772] int() accepts float number base

2012-12-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: If someone thinks this should go into 3.2 and 3.3 they're welcome to do it; no objections from me. (The behavior was unintentional and thus a bug, but it is still a minor behavior change) -- nosy: +gregory.p.smith

[issue16774] Additional recipes for itertools docs

2012-12-25 Thread Alexey Kachayev
Alexey Kachayev added the comment: Added: * takelast * droplast -- Added file: http://bugs.python.org/file28433/itertools.doc.v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16774 ___

[issue16780] fail to compile python in msys with mingw

2012-12-25 Thread Lee Long
New submission from Lee Long: Hi all, For some reason, I have to develop my software with mingw under windows. First of all, I need python installed in the msys but I try all my ways to install 2.6.x, 2.7.x, 3.2.x and 3.3.0, no one succeed. I search all issues and google the related

[issue16772] int() accepts float number base

2012-12-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: A test also needs to be added, though I'm sure one will be added as part of issue 16761. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16772 ___

[issue16677] Hard to find operator precedence in Lang Ref.

2012-12-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing 'datum' to 'value' is a nice touch that I overlooked. It is definitely friendlier to people whose native language is not latin-infested. Thanks. -- ___ Python tracker rep...@bugs.python.org

[issue14574] SocketServer doesn't handle client disconnects properly

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset df51cb946d27 by Kristján Valur Jónsson in branch '2.7': Issue #14574: Ignore socket errors raised when flushing a connection on close. http://hg.python.org/cpython/rev/df51cb946d27 -- nosy: +python-dev

[issue14574] SocketServer doesn't handle client disconnects properly

2012-12-25 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14574 ___ ___

[issue14574] SocketServer doesn't handle client disconnects properly

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Not clean to me: has python3 the same bug? -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14574 ___

[issue15990] solidify argument/parameter terminology

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset ecf3cd3af502 by Chris Jerdonek in branch '2.7': Add additional links and index entries for argument and parameter. http://hg.python.org/cpython/rev/ecf3cd3af502 New changeset 31e1f0b7f42e by Chris Jerdonek in branch '3.2': Add additional links and

[issue16218] Python launcher does not support unicode characters

2012-12-25 Thread STINNER Victor
STINNER Victor added the comment: The issue is now fixed on all platforms for Python 3.4. Please keep the issue open until all changes are backported to Python 3.3 or even Python 3.2. -- ___ Python tracker rep...@bugs.python.org

[issue16772] int() accepts float number base

2012-12-25 Thread Mark Dickinson
Mark Dickinson added the comment: Greg: please could you add a test? I think that the new check may be too strict: should we also be prepared to accept any object that implements __index__ as a base? (Similar to the way that round accepts an __index__-aware object for its second argument.)

[issue16218] Python launcher does not support unicode characters

2012-12-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I assign the issue to you than. Is it ok? -- assignee: asvetlov - haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16218 ___

[issue14901] Python Windows FAQ is Very Outdated

2012-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e8793c5f0ebc by Chris Jerdonek in branch '3.2': Fix Sphinx warning (missing setting-envvars reference). http://hg.python.org/cpython/rev/e8793c5f0ebc -- ___ Python tracker rep...@bugs.python.org

[issue16780] fail to compile python in msys with mingw

2012-12-25 Thread Lee Long
Lee Long added the comment: I then try compiling the version 2.7.3, different errors were shown while 'make' ./Modules/posixmodule.c:6151:5: warning: implicit declaration of function 'wait'[-Wimplicit-function-declaration] ./Modules/posixmodule.c: In function 'posix_fdopen':

[issue16780] fail to compile python in msys with mingw

2012-12-25 Thread R. David Murray
R. David Murray added the comment: The bug tracker is not a place to get help, but is rather for reporting bugs and proposing patches. We do not currently support msys/mingw. As you have observed, various patches have been proposed; however, in order for any of them to get committed, we need

  1   2   >