Re: Python equivalent to the A or a output conversions in C

2012-06-20 Thread Aldrich DeMata
Use the binascii module: import numpy as np x = np.float32(3.14) x.dtype dtype('float32') binascii.hexlify(x) 'c3f54840' The final result is little endian so it should be read as 0x4048f5c3 instead. You can verify the conversion using the link below:

Re: Py3.3 unicode literal and input()

2012-06-20 Thread jmfauth
On Jun 20, 1:21 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Mon, 18 Jun 2012 07:00:01 -0700, jmfauth wrote: On 18 juin, 12:11, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Mon, 18 Jun 2012 02:30:50 -0700, jmfauth wrote: On 18 juin, 10:28,

Re: Py3.3 unicode literal and input()

2012-06-20 Thread Christian Heimes
Am 18.06.2012 20:45, schrieb Terry Reedy: The simultaneous reintroduction of 'ur', but with a different meaning than in 2.7, *was* a problem and it should be removed in the next release. FYI: http://hg.python.org/cpython/rev/8e47e9af826e Christian --

Re: Py3.3 unicode literal and input()

2012-06-20 Thread jmfauth
On Jun 20, 11:22 am, Christian Heimes li...@cheimes.de wrote: Am 18.06.2012 20:45, schrieb Terry Reedy: The simultaneous reintroduction of 'ur', but with a different meaning than in 2.7, *was* a problem and it should be removed in the next release.

ANN: Python Meeting Düsseldorf - 17.07.2012

2012-06-20 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Treffen

re.finditer with lookahead and lookbehind

2012-06-20 Thread Christian
Hi, i have some trouble to split a pattern like s. Even have this problems with the first and last match. Some greedy problems? Thanks in advance Christian import re s='v1=pattern1v2=pattern2v3=pattern3v4=pattern4v5=pattern5x1=patternx' pattern =r'(?=[a-z0-9]+=)(.*?)(?=)' regex =

Re: re.finditer with lookahead and lookbehind

2012-06-20 Thread MRAB
On 20/06/2012 14:30, Christian wrote: Hi, i have some trouble to split a pattern like s. Even have this problems with the first and last match. Some greedy problems? Thanks in advance Christian import re s='v1=pattern1v2=pattern2v3=pattern3v4=pattern4v5=pattern5x1=patternx' pattern

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-20 Thread Chris Angelico
On Thu, Jun 21, 2012 at 1:18 AM, elvis-85...@notatla.org.uk wrote: On 2012-06-17, Jon Clements jon...@googlemail.com wrote: I generally find a separate partition with an encrypted file-system (which is fairly straight forward on *nix systems or I think there's a product out there that works

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-20 Thread D'Arcy Cain
On 12-06-20 11:18 AM, elvis-85...@notatla.org.uk wrote: On 2012-06-17, Jon Clementsjon...@googlemail.com wrote: Whatever you do - *do not* attempt to write your own algorithm. very true As they say, random number generation is too important to be left to chance. :-) -- D'Arcy J.M. Cain

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-20 Thread Christian Heimes
Am 20.06.2012 17:25, schrieb D'Arcy Cain: As they say, random number generation is too important to be left to chance. :-) Hilarious! You made my day! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter binding question

2012-06-20 Thread Frederic Rentsch
On Tue, 2012-06-19 at 19:19 -0700, rantingrickjohn...@gmail.com wrote: On Tuesday, June 19, 2012 10:55:48 AM UTC-5, Frederic Rentsch wrote: If I copy your event descriptors into my program, the button-release callback still fails. It works in your code, not in mine. Here is what my code now

fastest method

2012-06-20 Thread david.gar...@gmail.com
I am looking for the fastest way to parse a log file. currently I have this... Can I speed this up any? The script is written to be a generic log file parser so I can't rely on some predictable pattern. def check_data(data,keywords): #get rid of duplicates unique_list = list(set(data))

DirectX Screenshot with python possible?

2012-06-20 Thread Sverre
I'm in need for a function that is able to make a screenshot from a directx full screen. PIL is only able to take a snapshot from the desktop, but not from any directx screen. Has someone a tip for an existing module? -- http://mail.python.org/mailman/listinfo/python-list

Re: fastest method

2012-06-20 Thread david.gar...@gmail.com
I see one issue;) # if last doesn't exist or is greater than current This else doesn't catch the last greater than current: This is a little messy. with open(filename) as f: print Here is filename:%s %filename f.seek(0, 2) eof = f.tell() print Here is eof:%s %eof if last

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-20 Thread Roy Smith
In article mailman.1344.1340205892.4697.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Well, for communication it's even easier. Pick up an SSL or SSH library and channel everything through that! +1 on this. Actually, plus a whole bunch more than 1. I worked on a project

Custom build of Python

2012-06-20 Thread KACVINSKY Tom
I had reason to build Python 2.6.8 with Microsoft Visual Studio 2010. I was able to get the pcbuild solution to build, and I have the necessary exes/dlls/pyds in the amd64 build directory. What is not clear to is how to complete the build and make an installation. I could not find any

Re: Py3.3 unicode literal and input()

2012-06-20 Thread Steven D'Aprano
On Wed, 20 Jun 2012 01:12:00 -0700, jmfauth wrote: Python 3.3.0a4 (v3.3.0a4:7c51388a3aa7+, May 31 2012, 20:15:21) [MSC v. 1600 32 bit (Intel)] on win32 --- running smidzero.py... ...smidzero has been executed What is smidzero.py, and what is it doing? --- input(':') :éléphant

execnet-1.1: cross-interpreter distributed execution library

2012-06-20 Thread holger krekel
execnet-1.1 is a backward compatible beta release of the popular (53000 pypi downloads of 1.0.9) cross-interpreter execution library. If you are in need of connecting Python2 and Python3 and/or want to throw PyPy in your deployment mix, then you might want to join Quora and many others and try

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-20 Thread Paul Rudin
elvis-85...@notatla.org.uk writes: On 2012-06-17, Jon Clements jon...@googlemail.com wrote: Whatever you do - *do not* attempt to write your own algorithm. very true If everyone took that advice then we'd have a problem -- http://mail.python.org/mailman/listinfo/python-list

Re: Custom build of Python

2012-06-20 Thread Terry Reedy
On 6/20/2012 2:24 PM, KACVINSKY Tom wrote: I had reason to build Python 2.6.8 with Microsoft Visual Studio 2010. I was able to get the pcbuild solution to build, and I have the necessary exes/dlls/pyds in the amd64 build directory. What is not clear to is how to complete the build and make an

Re: DirectX Screenshot with python possible?

2012-06-20 Thread Terry Reedy
On 6/20/2012 2:24 PM, Sverre wrote: I'm in need for a function that is able to make a screenshot from a directx full screen. PIL is only able to take a snapshot from the desktop, but not from any directx screen. Has someone a tip for an existing module? Perhaps pygame has (or wraps) such a

RE: Custom build of Python

2012-06-20 Thread KACVINSKY Tom
Terry, At this stage, I don't want or need an MSI. I just want something that will bundle the executables/dynamic load libraries + compiled Python files and stick them into a compliant directory structure. Regards, Tom -Original Message- From:

Re: Py3.3 unicode literal and input()

2012-06-20 Thread Ian Kelly
On Jun 18, 2012 8:07 AM, jmfauth wxjmfa...@gmail.com wrote: A string is a string, a piece of text, period. I do not see why a unicode literal and an (well, I do not know how the call it) a normal class str should behave differently in code source or as an answer to an input(). Strings are a

xlrd 0.7.9 released!

2012-06-20 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.9: http://pypi.python.org/pypi/xlrd/0.7.9 This release fixes an annoying merge bug on my part that resulted in a NameError: global name 'BYTES_X00' is not defined error where opening certain Excel files. Barring any more brown bag

Is python a interpreted or compiled language?

2012-06-20 Thread gmspro
Hi, Is python a interpreted or compiled language? What does happen after this command: python f.py I knew python makes file.pyc file to store the bytecode. For java , .class file is the bytecode file, someone can run that file from any machine. So is the .pyc file executale like java? Can

Re: Is python a interpreted or compiled language?

2012-06-20 Thread Ian Kelly
On Wed, Jun 20, 2012 at 5:30 PM, gmspro gms...@yahoo.com wrote: Hi, Is python a interpreted or compiled language? Like other languages that use a VM bytecode, it's a little bit of both. The actual Python code is compiled into Python bytecode. The bytecode is interpreted. What does happen

Jython and PYTHONSTARTUP

2012-06-20 Thread Steven D'Aprano
Does Jython 2.5 honour the PYTHONSTARTUP environment variable? According to my testing, it doesn't. There used to be a page describing the differences between Jython and CPython here: http://www.jython.org/docs/differences.html but it appears to have been eaten by the 404 Monster. --

Re: Is python a interpreted or compiled language?

2012-06-20 Thread Dave Angel
On 06/20/2012 07:30 PM, gmspro wrote: Hi, Is python a interpreted or compiled language? What does happen after this command: python f.py I knew python makes file.pyc file to store the bytecode. For java , .class file is the bytecode file, someone can run that file from any machine. So is

Re: Tkinter binding question

2012-06-20 Thread rantingrickjohnson
On Wednesday, June 20, 2012 12:07:04 PM UTC-5, Frederic Rentsch wrote: [...] Googling I chanced on an excellent introduction Thinking in Tkinter [...] He sets out identifying a common problem with tutorials: The problem is that the authors of the books want to rush into telling me about all

Re: Is python a interpreted or compiled language?

2012-06-20 Thread Chris Angelico
On Thu, Jun 21, 2012 at 10:53 AM, Dave Angel d...@davea.name wrote: With java, one has to explicitly compile the java code, while with CPython, the runtime logic compiles imported modules if they're not already compiled. Putting it another way: Java's bytecode and source code are two distinct

Re: Is python a interpreted or compiled language?

2012-06-20 Thread Steven D'Aprano
On Wed, 20 Jun 2012 18:27:53 -0600, Ian Kelly wrote: On Wed, Jun 20, 2012 at 5:30 PM, gmspro gms...@yahoo.com wrote: Hi, Is python a interpreted or compiled language? Like other languages that use a VM bytecode, it's a little bit of both. The actual Python code is compiled into Python

Re: Re: Is python a interpreted or compiled language?

2012-06-20 Thread Evan Driscoll
On 6/20/2012 19:53, Dave Angel wrote: But since you mention java, I'd like to point out a few things that are different between the two environments. He and I are describing CPython; jython and other implementations don't use .pyc files, and they behave differently. There's one more

Re: Is python a interpreted or compiled language?

2012-06-20 Thread Ian Kelly
On Wed, Jun 20, 2012 at 7:27 PM, Chris Angelico ros...@gmail.com wrote: Java's bytecode and source code are two distinct languages, both well documented and separately usable (and with their own distinct limitations - there are things you can do in Java bytecode that you cannot do in Java

Re: Is python a interpreted or compiled language?

2012-06-20 Thread Stefan Behnel
Dave Angel, 21.06.2012 02:53: On 06/20/2012 07:30 PM, gmspro wrote: Is python a interpreted or compiled language? Ian has given you a good answer. But since you mention java, I'd like to point out a few things that are different between the two environments. He and I are describing

Can parellelized program run slower than single process program?

2012-06-20 Thread Yesterday Paid
from multiprocessing import Pool from itertools import product def sym(lst): x,y=lst tmp=x*y if rec(tmp): return tmp else: return None def rec(num): num=str(num) if num == .join(reversed(num)):return True else:return False if __name__ ==

Re: Can parellelized program run slower than single process program?

2012-06-20 Thread Aldrich DeMata
The multiprocessing module allows the programmer to fully leverage *multiple * processors on a given machine (python docs). This allows the operating system to take advantage of any parallelism inherent in the hardware design. If you are using the module on non-multiprocessor machines, I think

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: delattr(__builtins__,getattr) causes shell to stop working if you type some code in nothing gets printed back if you press enter without typing any code you get a traceback Exception in thread SockThread: Traceback (most recent call

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Running the delattr(__builtins__,getattr) in Python from the cmd line doesn't create any problems though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Another note: this bug is reproducable in the IDLE Shell with the python subprocess feature enabled (the python process that runs your commands and the python process that manages IDLE's windows are different). --

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why do you think this is a bug? It is expected behavior. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113 ___

[issue15110] strange Tracebacks with importlib

2012-06-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I agree that this is not helpful at all in the usual case, i.e. when you *don't* want to debug importlib. The one frame in actual user code (distutils in this case) in the middle is kind of hard to spot, but it is what you want to know. Note

[issue15110] strange Tracebacks with importlib

2012-06-20 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15110 ___ ___ Python-bugs-list

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Leon Zhang
Changes by Leon Zhang leozh...@cisco.com: Removed file: http://bugs.python.org/file26015/pygen.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15076 ___

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Leon Zhang
Leon Zhang leozh...@cisco.com added the comment: No people help me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15076 ___ ___

[issue14769] Add test to automatically detect missing format units in skipitem()

2012-06-20 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Changes incorporated from Benjamin's feedback. Thanks, Benjamin! Is this ready to go? -- Added file: http://bugs.python.org/file26060/larry.test_skipitem_parity.3.diff ___ Python tracker

[issue14225] _cursesmodule compile error in OS X 32-bit-only installer build

2012-06-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: And will you fix it for beta1, or do you think it can be done later? BTW, what is the syntax error here? I don't really see it... -- ___ Python tracker rep...@bugs.python.org

[issue15038] Optimize python Locks on Windows

2012-06-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Thanks. The comments remain as the last bit of the original Condition Variable emulation code that was put in place for the new GIL. -- ___ Python tracker rep...@bugs.python.org

[issue15096] Drop support for the ur string prefix

2012-06-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8e47e9af826e by Christian Heimes in branch 'default': Issue #15096: Drop support for the ur string prefix http://hg.python.org/cpython/rev/8e47e9af826e -- nosy: +python-dev

[issue15096] Drop support for the ur string prefix

2012-06-20 Thread Christian Heimes
Christian Heimes li...@cheimes.de added the comment: Thanks for you review, Serhiy. I removed the last remains from test_tokenize and even found another missing sentence in the docs. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue15114] Deprecate strict mode of HTMLParser

2012-06-20 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: The deprecation plan for the strict mode of HTMLParser might be as follow: 3.3 (before the beta) strict=False default strict arg deprecated in the doc strict=True deprecated (raises a warning) HTMLParseError deprecated HTMLParser.error

[issue15114] Deprecate strict mode of HTMLParser

2012-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15114 ___ ___ Python-bugs-list

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread Sergei Stolyarov
New submission from Sergei Stolyarov ser...@regolit.com: Here is the test script: -- from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email import encoders msg = MIMEMultipart() msg['Subject'] = 'Bug test' text_part = MIMEText('actual

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: IDLE should try to mimic Python as much as feasible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113 ___

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: s/Python/Python in cmd -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113 ___ ___

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Well, Python is not able import the linecache module because the file is missing. Check if a file called linecache.py is there in /usr/lib/python2.6 or /usr/local/lib/python2.6 By the way, the python bug tracker doesn't have much

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Try reinstalling Python and see if it works. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15076 ___

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2012-06-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15112 ___ ___ Python-bugs-list

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-06-20 Thread Bohuslav Slavek Kabrda
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com: -- nosy: +bkabrda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14803 ___ ___

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, I don't think that imitating the command line needs to extend to supporting doing unusual things to builtins, so unless someone like Terry disagrees I think we should close this as won't fix. -- nosy: +r.david.murray,

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm afraid it's not feasible. Python (or IDLE) is allowed to rely on Python working correctly, and if commonly used functions are modified there will be unexpected errors. Likewise in 3.3, after a del __builtins__.hasattr, even

[issue15114] Deprecate strict mode of HTMLParser

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Your plan sounds fine to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15114 ___

[issue10053] Don’t close fd when FileIO.__init__ fails

2012-06-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In the test, assertNone is superfluous. Just call os.close(). However, you should probably use assertRaises to check that MyException is raised. -- ___ Python tracker rep...@bugs.python.org

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: First of all, I presume you are running this in python2.7, since it doesn't work in python3. In Python3 MIMEText takes a string as input, not a bytes object, unless you pass it a _charset parameter. If you do that, the encoding is

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Barry: I think we should documentationally deprecate the encoders module. I can't see any utility in a new program calling those functions explicitly, especially if the program ever wants to port to Python3. Or maybe the Python2 docs

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15113 ___ ___

[issue15107] Potential Bug in mpdecimal.c

2012-06-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark has already said it all. -- Ken, I want to add that in the case of _decimal it's pretty easy to test any suspected misbehavior against decimal.py. This would have shown very quickly that there is no bug. --

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jun 20, 2012, at 01:58 PM, R. David Murray wrote: Barry: I think we should documentationally deprecate the encoders module. I can't see any utility in a new program calling those functions explicitly, especially if the program ever wants

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jun 20, 2012, at 01:51 PM, R. David Murray wrote: Note that I don't *like* that the current API is that calling set_charset does the body encode if and only if there are no existing headers, but that is the way it has always worked, and

[issue6727] ImportError when package is symlinked on Windows

2012-06-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 24369f6c4a22 by Jason R. Coombs in branch 'default': Prefer assertEqual to simply assert per recommendation in issue6727. http://hg.python.org/cpython/rev/24369f6c4a22 --

[issue15093] ntpath.isdir returns False for directory symlinks

2012-06-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 24369f6c4a22 by Jason R. Coombs in branch 'default': Prefer assertEqual to simply assert per recommendation in issue6727. http://hg.python.org/cpython/rev/24369f6c4a22 -- nosy: +python-dev

[issue15116] remove out-of-date Mac application scripting documentation

2012-06-20 Thread hhas
New submission from hhas h...@users.sourceforge.net: 1. The entire '4.6. Application Scripting' section should be deleted from the following Python 2 3 pages as appscript (and PyOSA) is no longer developed or supported and its use is not recommended for new projects

[issue15102] Fix 64-bit building for buildbot scripts

2012-06-20 Thread Jeremy Kloth
Jeremy Kloth jeremy.kloth+python-trac...@gmail.com added the comment: Now that my buildbot is up and building (and failing at that) could these changes be committed? It would get the buildbot to at least start testing changes to Python proper. --

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think so, yes. When we have the mimeregistry equivalent of the headerregistry, the new mime Message classes can have a set_charset with a different implementation. I'll want to talk about the API details on email-sig before I do

[issue15102] Fix 64-bit building for buildbot scripts

2012-06-20 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +brian.curtin, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15102 ___ ___

[issue15117] Please document top-level sqlite3 module variables

2012-06-20 Thread wchlm
New submission from wchlm shen...@gmail.com: sqlite3 top-level variables, such as version, sqlite_version, version_info, and sqlite_version_info are all useful for Python users of the module -- even essential at times. Yet there is no mention of them in the Py 2.7.3 documentation.

[issue14973] restore python2 unicode literals in ur strings

2012-06-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Given the resolution of #15096, ISTM this will be a wontfix, though I'll stop short of marking it as such myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14973

[issue14973] restore python2 unicode literals in ur strings

2012-06-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Given the resolution of #15096, ISTM this will be a wontfix, though I'll stop short of marking it as such myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14973

[issue14973] restore python2 unicode literals in ur strings

2012-06-20 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- Removed message: http://bugs.python.org/msg163288 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14973 ___

[issue14393] Incorporate Guide to Magic Methods?

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

[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-06-20 Thread Pranav Ravichandran
Pranav Ravichandran prp.1...@gmail.com added the comment: First-time contributor here, so just to make sure, let me just clarify this - the trunk builds fine, but one of the tests, test_urllib2_localnet, fails, I'm not sure why. Also, the patch is kind of messed up because of changes to

[issue15113] IDLE Shell: delattr(__builtins__, getattr) causes shell to stop working

2012-06-20 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: To put it another way, IDLE is written for standard Python. A standard Python interpreter has a getattr builtin that works as documented in the library manual. Deleting that or any other builtin makes the interpreter non-standard. So would

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2012-06-20 Thread Alexey
Alexey ani...@wayround.org added the comment: This is correct behavior. \x00 is not supported in XML: not in raw form, and not in escaped form last sentence in forth paragraph of section 1.3 in XML 1.1 specification says following: == Due to potential problems with APIs, #x0 is still

[issue8885] markupbase declaration errors aren't recoverable

2012-06-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8885

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2012-06-20 Thread Alexey
Alexey ani...@wayround.org added the comment: What am I trying to say is: if those characters are forbidden, then maybe they need to be escaped rather than ignored? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13648

[issue15116] remove out-of-date Mac application scripting documentation

2012-06-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The entire Using Macintosh section of the documentation set is in need of an update. I plan to have that done for 3.3 release and the next releases of 3.2.x and 2.7.x. The 2.6 and 3.1 releases are in security fix mode only, prior to their

[issue13648] xml.sax.saxutils.escape does not escapes \x00

2012-06-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The characters are forbidden both in raw form *and* in escaped form. So even if they get escaped, they *still* will lead to errors. So there is no point in escaping them. -- resolution: - wont fix status: open - closed

[issue15118] uname c should return a struct sequence instead of a tuple

2012-06-20 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: The trend in the standard library is to get rid of awkward Python-1-style tuple return values and switch to struct sequences. (And perhaps, in the fullness of time, to deprecate the iterability of such objects. But that's for the

[issue15118] uname c should return a struct sequence instead of a tuple

2012-06-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15118 ___

[issue14653] Improve mktime_tz to use calendar.timegm instead of time.mktime

2012-06-20 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: That said, this might be a worthwhile as a bug fix. I think this is a reasonable bug fix. Note that apart from OS-dependent date range, some mktime implementations reportedly don't support tm_isdst values other than -1.

[issue9527] Add aware local time support to datetime module

2012-06-20 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Attached patch implements astimezone() default in both Python and C. -- stage: - patch review Added file: http://bugs.python.org/file26062/issue9527.diff ___ Python tracker

[issue14684] zlib set dictionary support inflateSetDictionary

2012-06-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset dd4f7d5c51c7 by Nadeem Vawda in branch 'default': Issue #14684: Add support for predefined compression dictionaries to the zlib module. http://hg.python.org/cpython/rev/dd4f7d5c51c7 -- nosy: +python-dev

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-06-20 Thread Leon Zhang
Leon Zhang leozh...@cisco.com added the comment: Thank ramchandra.apte for the help. I checked linecache.py, and the file exists. Unfortunately I don't have root perssion to re-install Python. I also checked another bug http://bugs.python.org/issue10496;, I think that may be the truth.

[issue14684] zlib set dictionary support inflateSetDictionary

2012-06-20 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Committed. Once again, thanks for the patch! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15118] uname c should return a struct sequence instead of a tuple

2012-06-20 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: +1. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15118 ___ ___ Python-bugs-list

[issue13463] Fix parsing of package_data

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13463 ___ ___

[issue12779] Update packaging documentation

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12779 ___ ___

[issue5302] Allow package_data specs/globs to match directories

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5302 ___ ___

[issue14790] use packaging in setup.py

2012-06-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14790 ___ ___

[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: os._getdiskusage is an internal helper for shutil.getdiskusage on Windows, which does return a named tuple. The private C function can continue returning a tuple IMO. +1 on changing uname for 3.3! No opinion on times; I don’t use it and don’t

[issue9530] integer undefined behaviors

2012-06-20 Thread John Regehr
John Regehr reg...@cs.utah.edu added the comment: I the tests for today's cpython using IOC and got only the issues below. The on-purpose divide by zero should be OK but the shift by -2 probably wants to be fixed. ARITHMETIC UNDEFINED at /home/regehr/tmp/cpython/Modules/_ctypes/cfield.c,

  1   2   >