Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread Alister
On Thu, 16 Aug 2012 15:09:47 -0700, Charles Jensen wrote: Everyone knows that the python command ord(u'…') will output the number 8230 which is the unicode character for the horizontal ellipsis. How would I use ord() to find the unicode value of a string stored in a variable?

Re: remote read eval print loop

2012-08-17 Thread Alister
On Fri, 17 Aug 2012 02:27:42 +, Steven D'Aprano wrote: On Fri, 17 Aug 2012 08:43:50 +1000, Chris Angelico wrote: On Fri, Aug 17, 2012 at 6:54 AM, Eric Frederich eric.freder...@gmail.com wrote: Hello, I have a bunch of Python bindings for a 3rd party software running on the server

Re: remote read eval print loop

2012-08-17 Thread Chris Angelico
On Fri, Aug 17, 2012 at 12:27 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: There is already awesome protocols for running Python code remotely over a network. Please do not re-invent the wheel without good reason. See pyro, twisted, rpyc, rpclib, jpc, and probably many

Re: Top-posting c. (was Re: [ANNC] pybotwar-0.8)

2012-08-17 Thread rusi
On Aug 17, 3:36 am, Chris Angelico ros...@gmail.com wrote: On Fri, Aug 17, 2012 at 1:40 AM, Ramchandra Apte maniandra...@gmail.com wrote: On 16 August 2012 21:00, Mark Lawrence breamore...@yahoo.co.uk wrote: and bottom reads better than top Look you are the only person complaining about

Re: Top-posting c. (was Re: [ANNC] pybotwar-0.8)

2012-08-17 Thread Jurko Gospodnetić
Hi. As a lurker, I agree completely with Chris's sentiments. +1 Best regards, Jurko Gospodnetić -- http://mail.python.org/mailman/listinfo/python-list

Re: Top-posting c.

2012-08-17 Thread Ulrich Eckhardt
I that Outlook Co are guilty. That and the fact that few people even think about this. Even today that makes sense, because it provides an exact context. Without that, you wouldn't be able to really understand what exactly a person is referring to. Also, it helps people to structure their

sqlalchemy.exc.ProgrammingError: (ProgrammingError) ('42000', [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]'f2f68'

2012-08-17 Thread nepaul
===case1==: import sqlalchemy test1 = 631f2f68-8731-4561-889b-88ab1ae7c95a cmdTest1 = select * from analyseresult where uid = + test1 engine = sqlalchemy.create_engine(mssql+pyodbc://DumpResult:123456@localhost/DumpResult) c =

Re: sqlalchemy.exc.ProgrammingError: (ProgrammingError) ('42000', [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]'f2f68'

2012-08-17 Thread Alain Ketterlin
nepaul xs.nep...@gmail.com writes: ===case1==: import sqlalchemy test1 = 631f2f68-8731-4561-889b-88ab1ae7c95a cmdTest1 = select * from analyseresult where uid = + test1 engine =

Re: sqlalchemy.exc.ProgrammingError: (ProgrammingError) ('42000', [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]'f2f68'

2012-08-17 Thread Peter Otten
nepaul wrote: ===case1==: import sqlalchemy test1 = 631f2f68-8731-4561-889b-88ab1ae7c95a cmdTest1 = select * from analyseresult where uid = + test1 engine = sqlalchemy.create_engine(mssql+pyodbc://DumpResult:123456@localhost/DumpResult) c =

Re: remote read eval print loop

2012-08-17 Thread rusi
On Aug 17, 12:25 pm, Chris Angelico ros...@gmail.com wrote: On Fri, Aug 17, 2012 at 12:27 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: There is already awesome protocols for running Python code remotely over a network. Please do not re-invent the wheel without good

Re: Dynamically determine base classes on instantiation

2012-08-17 Thread Richard Thomas
On Thursday, 16 August 2012 19:49:43 UTC+2, Steven D'Aprano wrote: On Thu, 16 Aug 2012 10:03:51 -0700, Richard Thomas wrote: class Foo(object): def __new__(cls, arg): if isinstance(arg, list): cls = FooList elif isinstance(arg, dict):

Re: set and dict iteration

2012-08-17 Thread Ulrich Eckhardt
Am 17.08.2012 03:01, schrieb Paul Rubin: Ian Kelly ian.g.ke...@gmail.com writes: With regard to key insertion and deletion while iterating over a dict or set, though, there is just no good reason to be doing that (especially as the result is very implementation-specific), and I wouldn't mind a

Re: [ANNC] pybotwar-0.8

2012-08-17 Thread Hans Mulder
On 16/08/12 23:34:25, Walter Hurry wrote: On Thu, 16 Aug 2012 17:20:29 -0400, Terry Reedy wrote: On 8/16/2012 11:40 AM, Ramchandra Apte wrote: Look you are the only person complaining about top-posting. No he is not. Recheck all the the responses. GMail uses top-posting by default. It

Re: Top-posting c. (was Re: [ANNC] pybotwar-0.8)

2012-08-17 Thread Grant Edwards
On 2012-08-16, Chris Angelico ros...@gmail.com wrote: On Fri, Aug 17, 2012 at 1:40 AM, Ramchandra Apte maniandra...@gmail.com wrote: On 16 August 2012 21:00, Mark Lawrence breamore...@yahoo.co.uk wrote: and bottom reads better than top Look you are the only person complaining about

Re: remote read eval print loop

2012-08-17 Thread Eric Frederich
What I wanted to implement was a debugging console that runs right on the client rather than on the server. You'd have to be logged into the application to do anything meaningful or even start it up. All of the C functions that I created bindings for respect the security of the logged in user.

[CGI] Why is HTML not rendered?

2012-08-17 Thread Gilles
Hello I'm learning how to call Python scripts through the different solutions available. For some reason, this CGI script that I found on Google displays the contents of the variable but the HTML surrounding it is displayed as-is by the browser instead of being rendered: --

Re: [CGI] Why is HTML not rendered?

2012-08-17 Thread Rob Day
On 17 August 2012 14:27, Gilles nos...@nospam.com wrote: print Content-Type: text/plain;charset=utf-8 print Here's the problem - you're telling the browser to display in plain text. Try 'text/html' instead. -- Robert K. Day robert@merton.oxon.org --

Re: [CGI] Why is HTML not rendered?

2012-08-17 Thread Dan Sommers
On 2012-08-17 at 15:27:59 +0200, Regarding [CGI] Why is HTML not rendered?, Gilles nos...@nospam.com wrote: For some reason, this CGI script that I found on Google displays the contents of the variable but the HTML surrounding it is displayed as-is by the browser instead of being rendered:

Re: [CGI] Why is HTML not rendered?

2012-08-17 Thread Robert Kern
On 8/17/12 2:27 PM, Gilles wrote: Hello I'm learning how to call Python scripts through the different solutions available. For some reason, this CGI script that I found on Google displays the contents of the variable but the HTML surrounding it is displayed as-is by the browser instead

Re: [CGI] Why is HTML not rendered?

2012-08-17 Thread Alexander Blinne
On 17.08.2012 15:27, Gilles wrote: For some reason, this CGI script that I found on Google displays the contents of the variable but the HTML surrounding it is displayed as-is by the browser instead of being rendered: print Content-Type: text/plain;charset=utf-8 With this line you tell the

Re: remote read eval print loop

2012-08-17 Thread Chris Angelico
On Fri, Aug 17, 2012 at 11:28 PM, Eric Frederich eric.freder...@gmail.com wrote: Within the debugging console, after importing all of the bindings, there would be no reason to import anything whatsoever. With just the bindings I created and the Python language we could do meaningful debugging.

Re: Crashes always on Windows 7

2012-08-17 Thread Dave Angel
On 08/17/2012 09:38 AM, zmagi...@gmail.com wrote: Hi, Downloaded ActiveSync ActivePython on my Windows 7 machine. Worked for a little while and now it crashes every time I try to boot the IDLE or open a program, it crashes. Help please? Thanks I'm not aware of any boot option for Windows

pythonic interface to SAPI5?

2012-08-17 Thread Vojtěch Polášek
Hi, I am developing audiogame for visually impaired users and I want it to be multiplatform. I know, that there is library called accessible_output but it is not working when used in Windows for me. I tried pyttsx, which should use Espeak on Linux and SAPI5 on Windows. It works on Windows, on

Re: [CGI] Why is HTML not rendered?

2012-08-17 Thread Gilles
On Fri, 17 Aug 2012 14:44:37 +0100, Robert Kern robert.k...@gmail.com wrote: For some reason, this CGI script that I found on Google displays the contents of the variable but the HTML surrounding it is displayed as-is by the browser instead of being rendered Thanks all. I (obviously) combined

Re: Top-posting c. (was Re: [ANNC] pybotwar-0.8)

2012-08-17 Thread rusi
On Aug 17, 10:19 am, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Thu, 16 Aug 2012 15:42:54 -0700 (PDT), Madison May worldpeaceagentforcha...@gmail.com declaimed the following in gmane.comp.python.general: As a lurker, I agree completely with Chris's sentiments.         I've been

Re: Crashes always on Windows 7

2012-08-17 Thread Ian Kelly
On Aug 17, 2012 8:58 AM, Dave Angel d...@davea.name wrote: Also, please tell us the versions involved, and in the case of ActiveSync, where you got it. http://sourceforge.net/apps/trac/unattended/wiki/ActiveSync seems to be perl related, not Python. Presumably you mean the Microsoft

Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread wxjmfauth
Le vendredi 17 août 2012 01:59:31 UTC+2, Terry Reedy a écrit : a = '…' print(ord(a)) 8230 Most things with unicode are easier in 3.x, and some are even better in 3.3. The current beta is good enough for most informal work. 3.3.0 will be out in a month. -- Terry

Re: set and dict iteration

2012-08-17 Thread Aaron Brady
On Thursday, August 16, 2012 6:07:40 PM UTC-5, Ian wrote: On Thu, Aug 16, 2012 at 4:55 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Aug 16, 2012 at 12:00 PM, Aaron Brady castiro...@gmail.com wrote: The inconsistency is, if we remove an element from a set and add another during

Re: set and dict iteration

2012-08-17 Thread Aaron Brady
On Thursday, August 16, 2012 8:01:39 PM UTC-5, Paul Rubin wrote: Ian Kelly ian.g.ke...@gmail.com writes: With regard to key insertion and deletion while iterating over a dict or set, though, there is just no good reason to be doing that (especially as the result is very

Re: set and dict iteration

2012-08-17 Thread Aaron Brady
On Thursday, August 16, 2012 9:30:42 PM UTC-5, Paul Rubin wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Luckily, Python is open source. If anyone thinks that sets and dicts should include more code protecting against mutation-during-iteration, they are more

Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread Jerry Hill
On Fri, Aug 17, 2012 at 1:49 PM, wxjmfa...@gmail.com wrote: The character '…', Unicode name 'HORIZONTAL ELLIPSIS', is one of these characters existing in the cp1252, mac-roman coding schemes and not in iso-8859-1 (latin-1) and obviously not in ascii. It causes Py3.3 to work a few 100% slower

Re: set and dict iteration

2012-08-17 Thread Aaron Brady
On Thursday, August 16, 2012 9:24:44 PM UTC-5, Steven D'Aprano wrote: On Thu, 16 Aug 2012 19:11:19 -0400, Dave Angel wrote: On 08/16/2012 05:26 PM, Paul Rubin wrote: Dave Angel d...@davea.name writes: Everything else is implementation defined. Why should an implementation be

Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread wxjmfauth
Le vendredi 17 août 2012 20:21:34 UTC+2, Jerry Hill a écrit : On Fri, Aug 17, 2012 at 1:49 PM, wxjmfa...@gmail.com wrote: The character '…', Unicode name 'HORIZONTAL ELLIPSIS', is one of these characters existing in the cp1252, mac-roman coding schemes and not in iso-8859-1 (latin-1)

Re: SSLSocket.getpeercert() doesn't return issuer, serial number, etc

2012-08-17 Thread Gustavo Baratto
Awesome guys! Thank you very much! I ended up using binary_form=True and using M2Crypto to parse the cert. Cheers, g. On Thu, Aug 16, 2012 at 4:48 AM, Antoine Pitrou solip...@pitrou.net wrote: Hello, Gustavo Baratto gbaratto at gmail.com writes: SSL.Socket.getpeercert() doesn't return

Re: ONLINE SERVER TO STORE AND RUN PYTHON SCRIPTS

2012-08-17 Thread Ian Kelly
On Fri, Aug 17, 2012 at 6:46 AM, coldfire amangill.coldf...@gmail.com wrote: I would like to know that where can a python script be stored on-line from were it keep running and can be called any time when required using internet. I have used mechanize module which creates a webbroswer instance

Python 2.7 import socket urllib fails to load, module not found

2012-08-17 Thread wdtate
Just installed python 2.7 and using with web2py. When running python from command line to bring up web2py server, get errors that python socket and urllib modules cannot be found, can't be loaded. This is not a web2py issue. No other python versions are on the my machine. Pythonpath has the

Re: Python 2.7 import socket urllib fails to load, module not found

2012-08-17 Thread Emile van Sebille
On 8/17/2012 12:20 PM wdt...@comcast.net said... Just installed python 2.7 and using with web2py. When running python from command line to bring up web2py server, get errors that python socket and urllib modules cannot be found, can't be loaded. This is not a web2py issue. So, on my system

Re: Python 2.7 import socket urllib fails to load, module not found

2012-08-17 Thread wdtate
So, on my system I get: ActivePython 2.7.0.2 (ActiveState Software Inc.) based on Python 2.7 (r27:82500, Aug 23 2010, 17:18:21) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import urllib import socket What

Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread Dave Angel
On 08/17/2012 02:45 PM, wxjmfa...@gmail.com wrote: Le vendredi 17 août 2012 20:21:34 UTC+2, Jerry Hill a écrit : SNIP I don't understand what any of this has to do with Python. Just output your text in UTF-8 like any civilized person in the 21st century, and none of that is a problem at

Re: Python 2.7 import socket urllib fails to load, module not found

2012-08-17 Thread Emile van Sebille
On 8/17/2012 1:41 PM wdt...@comcast.net said... From cmd prompt - I get this: Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import urllib Traceback (most recent call last): File stdin, line

Re: Python 2.7 import socket urllib fails to load, module not found

2012-08-17 Thread wdtate
So, try the following in both environments: import sys for ii in sys.path: print ii You'll likely find diffferences between the two. In the pythonwin environment, try: import socket print socket.__file__ Chances are the __file__'s directory isn't in the

Re: Python 2.7 import socket urllib fails to load, module not found

2012-08-17 Thread wdtate
On Friday, August 17, 2012 5:15:35 PM UTC-4, (unknown) wrote: So, try the following in both environments: import sys for ii in sys.path: print ii You'll likely find diffferences between the two. In the pythonwin environment, try:

Re: Python 2.7 import socket urllib fails to load, module not found

2012-08-17 Thread wdtate
On Friday, August 17, 2012 3:20:48 PM UTC-4, (unknown) wrote: Just installed python 2.7 and using with web2py. When running python from command line to bring up web2py server, get errors that python socket and urllib modules cannot be found, can't be loaded. This is not a web2py

Re: set and dict iteration

2012-08-17 Thread Chris Angelico
On Sat, Aug 18, 2012 at 4:37 AM, Aaron Brady castiro...@gmail.com wrote: Is there a problem with hacking on the Beta? Nope. Hack on the beta, then when the release arrives, rebase your work onto it. I doubt that anything of this nature will be changed between now and then. ChrisA --

Re: Python 2.7 import socket urllib fails to load, module not found

2012-08-17 Thread Emile van Sebille
On 8/17/2012 2:22 PM wdt...@comcast.net said... Done - tail end of the python path had a missing bit...gr... thanks so much Well it's bizarre - now it doesn't. did an import sys from within interpreter, then did import socket. Worked the first time. Restarted and it happened again.

Re: Python 2.7 import socket urllib fails to load, module not found

2012-08-17 Thread Christian Heimes
Am 17.08.2012 21:20, schrieb wdt...@comcast.net: Just installed python 2.7 and using with web2py. When running python from command line to bring up web2py server, get errors that python socket and urllib modules cannot be found, can't be loaded. This is not a web2py issue. No other

Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread Ian Kelly
On Aug 17, 2012 2:58 PM, Dave Angel d...@davea.name wrote: The internal coding described in PEP 393 has nothing to do with latin-1 encoding. It certainly does. PEP 393 provides for Unicode strings to be represented internally as any of Latin-1, UCS-2, or UCS-4, whichever is smallest and

Re: Top-posting c. (was Re: [ANNC] pybotwar-0.8)

2012-08-17 Thread Steven D'Aprano
On Fri, 17 Aug 2012 09:36:04 -0700, rusi wrote: I was in a corporate environment for a while. And carried my 'triminterleave' habits there. And got gently scolded for seeming to hide things!! Corporate email users are generally incompetent at email no matter what email conventions you use.

Re: Dynamically determine base classes on instantiation

2012-08-17 Thread Steven D'Aprano
On Fri, 17 Aug 2012 04:50:43 -0700, Richard Thomas wrote: On Thursday, 16 August 2012 19:49:43 UTC+2, Steven D'Aprano wrote: On Thu, 16 Aug 2012 10:03:51 -0700, Richard Thomas wrote: class Foo(object): def __new__(cls, arg): if isinstance(arg, list): cls =

Re: Top-posting c. (was Re: [ANNC] pybotwar-0.8)

2012-08-17 Thread Zero Piraeus
: On 17 August 2012 21:43, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: There are cultures that marry five year old girls to sixty year old men, cultures that treat throwing acid in the faces of women as acceptable behaviour, cultures that allow war heroes to die of hunger and

Re: Crashes always on Windows 7

2012-08-17 Thread zmagic11
On Friday, August 17, 2012 9:38:16 PM UTC+8, zmag...@gmail.com wrote: Hi, Downloaded ActiveSync ActivePython on my Windows 7 machine. Worked for a little while and now it crashes every time I try to boot the IDLE or open a program, it crashes. Help please? Thanks Hi Hi, sorry for the

Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread Dave Angel
On 08/17/2012 08:21 PM, Ian Kelly wrote: On Aug 17, 2012 2:58 PM, Dave Angel d...@davea.name wrote: The internal coding described in PEP 393 has nothing to do with latin-1 encoding. It certainly does. PEP 393 provides for Unicode strings to be represented internally as any of Latin-1, UCS-2,

Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread Steven D'Aprano
On Fri, 17 Aug 2012 11:45:02 -0700, wxjmfauth wrote: Le vendredi 17 août 2012 20:21:34 UTC+2, Jerry Hill a écrit : On Fri, Aug 17, 2012 at 1:49 PM, wxjmfa...@gmail.com wrote: The character '…', Unicode name 'HORIZONTAL ELLIPSIS', is one of these characters existing in the cp1252,

Re: How do I display unicode value stored in a string variable using ord()

2012-08-17 Thread Steven D'Aprano
On Fri, 17 Aug 2012 23:30:22 -0400, Dave Angel wrote: On 08/17/2012 08:21 PM, Ian Kelly wrote: On Aug 17, 2012 2:58 PM, Dave Angel d...@davea.name wrote: The internal coding described in PEP 393 has nothing to do with latin-1 encoding. It certainly does. PEP 393 provides for Unicode strings

Regex Question

2012-08-17 Thread Frank Koshti
Hi, I'm new to regular expressions. I want to be able to match for tokens with all their properties in the following examples. I would appreciate some direction on how to proceed. h1@foo1/h1 p@foo2()/p p@foo3(anything could go here)/p Thanks- Frank --

Re: Regex Question

2012-08-17 Thread Chris Angelico
On Sat, Aug 18, 2012 at 2:41 PM, Frank Koshti frank.kos...@gmail.com wrote: Hi, I'm new to regular expressions. I want to be able to match for tokens with all their properties in the following examples. I would appreciate some direction on how to proceed. h1@foo1/h1 p@foo2()/p

[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Eric Snow
Eric Snow added the comment: The following seems to indicate that an ImportError should be raised as expected. I'm guessing that somewhere along the line the exception gets silently eaten. -- (3.2) Python/import.c:ensure_fromlist() [1] submod =

[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Georg Brandl
Georg Brandl added the comment: I agree that we should match 3.2 behavior here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15715 ___ ___

[issue15668] PEP 3121, 384 Refactoring applied to random module

2012-08-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: Sure; I've mentored Robin throughout the summer with this, and this is his GSoC project. As for the specific change: this is primarily to support PEP 3121, and allowing multiple interpreters to use a module without fear of global variables being shared

[issue14977] mailcap does not respect precedence in the presence of wildcards

2012-08-17 Thread Petri Lehtinen
Petri Lehtinen added the comment: Sounds like a bug to me. It's not too straightforward to fix, though. The order of MIME types is lost because they are stored as keys of a dict. AFAICS, it wouldn't help to use OrderedDict and checking for the wildcard type first if its index is smaller.

[issue14977] mailcap does not respect precedence in the presence of wildcards

2012-08-17 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14977 ___ ___ Python-bugs-list

[issue15702] Multiprocessing Pool deadlocks on join after empty map operation

2012-08-17 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15702 ___

[issue15718] Possible OverflowError in __len__ method undocumented (when called via len() function)

2012-08-17 Thread Rostyslav Dzinko
New submission from Rostyslav Dzinko: I've encountered that OverflowError which can happen in __len__ method is still undocumented, though one issue on this problem: http://bugs.python.org/issue12159 ended up with need to be documented comment. Link to documentation:

[issue15718] Possible OverflowError in __len__ method undocumented (when called via len() function)

2012-08-17 Thread Rostyslav Dzinko
Changes by Rostyslav Dzinko rostislav.dzi...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15718 ___ ___

[issue15573] Support unknown formats in memoryview comparisons

2012-08-17 Thread Stefan Krah
Stefan Krah added the comment: There is still one corner case involving NaNs: Released memoryviews always compare equal. I took that over from the 3.2 implementation. import array a = array.array('d', [float('nan')]) m = memoryview(a) m == m False m.release() m == m True I guess we have

[issue15635] memory leak with generators

2012-08-17 Thread Florent Xicluna
Florent Xicluna added the comment: Thank you for digging into this. I close the issue. I discover now that this kind of problem is quite common in the Mac world. Other references: http://news.ycombinator.com/item?id=3879194 http://www.markvanda.net/apple/mac-os-x-memory-issues/ --

[issue15528] Better support for finalization with weakrefs

2012-08-17 Thread Richard Oudkerk
Richard Oudkerk added the comment: Updated patch. -- Added file: http://bugs.python.org/file26879/finalize.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15528 ___

[issue14501] Error initialising BaseManager class with 'authkey' argument of string type.

2012-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 636f75da4b9e by Richard Oudkerk in branch '3.2': Issue #14501: Clarify that authentication keys are byte strings http://hg.python.org/cpython/rev/636f75da4b9e -- nosy: +python-dev ___ Python tracker

[issue14501] Error initialising BaseManager class with 'authkey' argument of string type.

2012-08-17 Thread Richard Oudkerk
Richard Oudkerk added the comment: I have fixed the documentation and examples to say that authentication keys are byte strings. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue15477] test_cmath failures on OS X 10.8

2012-08-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: Without looking into the details of the issue: conditionalizing a work-around on OSX sounds right. On the one hand, it may penalize OSX releases which get it right. OTOH, it's all Apple's fault (IIUC), so they deserve it :-) Further, using a build-time

[issue15412] Note in documentation for weakrefs

2012-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 78b0f294674c by Richard Oudkerk in branch '2.7': Issue #15412: Remove erroneous note about weakrefs http://hg.python.org/cpython/rev/78b0f294674c New changeset 24b13be81d61 by Richard Oudkerk in branch '3.2': Issue #15412: Remove erroneous note

[issue15412] Note in documentation for weakrefs

2012-08-17 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15412 ___

[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Brett Cannon
Brett Cannon added the comment: And this is why we have said people should use the idiom of ``__import__('http.blah'); mod = sys.modules['http.blah']`` if importlib is not used (which is on PyPI and works as far back as Python 2.3), else you will deal with an AttributeError later instead of

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

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

[issue15640] Document importlib.abc.Finder as deprecated

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

[issue15641] Clean up importlib for Python 3.4

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

[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

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

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

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

[issue15650] PEP 3121, 384 refactoring applied to dbm module

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

[issue15651] PEP 3121, 384 refactoring applied to elementtree module

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

[issue15653] PEP 3121, 384 refactoring applied to hashopenssl module

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

[issue15652] PEP 3121, 384 refactoring applied to gdbm module

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

[issue15654] PEP 384 Refactoring applied to bz2 module

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

[issue15655] PEP 384 Refactoring applied to json module

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

[issue15657] Error in Python 3 docs for PyMethodDef

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

[issue15662] PEP 3121 refactoring applied to locale module

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

[issue15665] PEP 3121, 384 refactoring applied to lsprof module

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

[issue15666] PEP 3121, 384 refactoring applied to lzma module

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

[issue15667] PEP 3121, 384 refactoring applied to pickle module

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

[issue15669] PEP 3121, 384 Refactoring applied to sre module

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

[issue15670] PEP 3121, 384 Refactoring applied to ssl module

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

[issue15671] PEP 3121, 384 Refactoring applied to struct module

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

[issue15672] PEP 3121, 384 Refactoring applied to testbuffer module

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

[issue15673] PEP 3121, 384 Refactoring applied to testcapi module

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

[issue15674] PEP 3121, 384 Refactoring applied to thread module

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

[issue15675] PEP 3121, 384 Refactoring applied to array module

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

[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d52f125dd32 by Brett Cannon in branch 'default': Issue #15715: Ignore failed imports triggered by the use of fromlist. http://hg.python.org/cpython/rev/0d52f125dd32 -- nosy: +python-dev ___ Python

[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15715 ___

[issue15653] PEP 3121, 384 refactoring applied to hashopenssl module

2012-08-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: Antoine: Py_DECREF calls tp_dealloc directly, so the type needs to be DECREFed in the course of tp_dealloc. I don't think there is any alternative to that. One may wonder why regular extension types don't do that: this is because of a hack that excludes

[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

2012-08-17 Thread Eric Snow
Eric Snow added the comment: When people want to import modules with runtime names, they regrettably turn to __import__() and likely will for a while. What a source of headaches! If it were less convenient to use __import__(), perhaps fewer people would use it. Could we remove it from

  1   2   >