SQLObject 1.6.0
Hello! I'm pleased to announce version 1.6.0, the first stable release of branch 1.6 of SQLObject. What's new in SQLObject === Features Interface * Python 2.4 is no longer supported. The minimal supported version is Python 2.5. * Support for Python 2.5 is declared obsolete and will be removed in the next release. * Upgrade ez_setup to 1.4.2. * Adapt duplicate error message strings for SQLite 3.8. Contributor for this release is Neil Muller. For a more complete list, please see the news: http://sqlobject.org/News.html What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and quick to get started with. SQLObject supports a number of backends: MySQL, PostgreSQL, SQLite, Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB). Where is SQLObject == Site: http://sqlobject.org Development: http://sqlobject.org/devel/ Mailing list: https://lists.sourceforge.net/mailman/listinfo/sqlobject-discuss Archives: http://news.gmane.org/gmane.comp.python.sqlobject Download: https://pypi.python.org/pypi/SQLObject/1.6.0 News and changes: http://sqlobject.org/News.html Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Nikola v7.0.0 released!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Nikola team, I am pleased to announce the release of Nikola v7.0.0 (after 10 days of testing in RC1). What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2 templates, and input in many popular markup formats, such as reStructuredText and Markdown — and can even turn IPython Notebooks into blog posts! It also supports image galleries, and is multilingual. Nikola is flexible, and page builds are extremely fast, courtesy of doit (which is rebuilding only what has been changed). Find out more at the website: http://getnikola.com/ - --- Nikola v7.0.0 is the first major release since 8 months. As such, we had many things that could be changed. There are some things that you might need to change on your site, especially if you have a custom theme. Here is a short and incomplete list of the most important changes: Key Changes since v6.4.0 * New dependencies: ``natsort`` (natural sorting in galleries) and ``dateutil`` (replaces ``pytz``) * Many deprecated options were removed. * SCHEDULE_FORCE_TODAY, EXTRA_PLUGINS and ENABLED_EXTRAS are now removed and have no effect. * Two options were changed: - HIDE_SOURCELINK → SHOW_SOURCELINK (inverted) - HIDE_UNTRANSLATED_POSTS → SHOW_UNTRANSLATED_POSTS (inverted) * READ_MORE_LINK is split into INDEX_READ_MORE_LINK and RSS_READ_MORE_LINK. Moreover, new tags, like ``(remaining_)reading_time`` and ``(remaining_)paragraph_count``, were added. * Added options: FORCE_ISO8601, LOGO_URL, SHOW_BLOG_TITLE (logo support), GENERATE_RSS, ROBOTS_EXCLUSIONS, CONTENT_FOOTER_FORMATS, RSS_PLAIN, UNSLUGIFY_TITLES (for meta extraction from filenames). * Certain settings are now translatable. As of now, the settings are: BLOG_AUTHOR, BLOG_TITLE, BLOG_DESCRIPTION, LICENSE, CONTENT_FOOTER, SOCIAL_BUTTONS_CODE, SEARCH_FORM, BODY_END, EXTRA_HEAD_DATA, NAVIGATION_LINKS, READ_MORE_LINK. * There are many changes to themes. The ``base`` theme now offers a stylish look and is usable on sites, through a new stylesheet. The HTML code is now more semantic and sectioned, making it easier to style sites. Some templates are also renamed or removed. * The basic Jinja themes (base-jinja, bootstrap-jinja, bootstrap3-jinja) are now shipped with Nikola. Please remove any leftover copies from your themes/ folders. * You now can (and should!) specify a timezone offset in post dates, using a ``UTC±00:00`` syntax. (warning: ``UTC-03:00`` means *3 hours east of UTC* and not *west*, as is done in some Unix tools!) You can also use ISO 8601 dates (and if you want to do that, you should set ``FORCE_ISO8601=True`` to get those in new_post and new_page) * You now can use the reST metadata format in .meta files, allowing for greater flexibility. Get it! === Nikola v7.0.0 is available for download at `GitHub`_ and `PyPI`_. .. _GitHub: https://github.com/getnikola/nikola/releases/tag/v7.0.0 .. _PyPI: https://pypi.python.org/pypi/Nikola Changelog = Features - * Added ``UNSLUGIFY_TITLES`` option for making titles fetched via the filename regexp prettier (Issue #1282) * New dependencies: ``natsort`` (natural sorting in galleries) and ``dateutil`` (replaces ``pytz``) * Nikola.commands are now the user-friendly wrappers from console (Issue #1177) * Add a ``github_deploy`` command to deploy to GitHub pages (Issue #1208) * Remove tidy filter (it was broken due to tidy being ancient) (Issue #1164) * Added ``GENERATE_RSS`` setting to allow disabling RSS in Nikola (Issue #1236) * Link listings raw sources if COPY_SOURCES is True (Issue #1214) * Much more powerful ``nikola plugin`` command (Issue #1189) * More powerful console mode allows access to all nikola commands (Issue #830) * New ```ROBOTS_EXCLUSIONS``` option listing resources to exclude from sitemap and include in new generated /robots.txt (Issue #804) * Generate sitemapindex containing RSS and sitemap files (Issue #804) * Support hooks in templates, for use by plugins (Issue #896) * Use readline if available (Issue #1238) * Replaced ``READ_MORE_LINK`` with ``INDEX_READ_MORE_LINK`` and ``RSS_READ_MORE_LINK`` (Issue #1222) * Added reading_time, remaining_reading_time, paragraph_count, remaining_paragraph_count tags for READ_MORE_LINK (Issue #1220) * Add canonical link in listings. * Added support for new meta files that are the same format as 1-file metadata, allowing for greater flexibility (Issue #954) * Colorbox is now internationalized (Issue #1205) * Added LOGO_URL and SHOW_BLOG_TITLE=True settings to facilitate showing off logos (Issue #1122) * Create automatic story index pages for subfolders, too (Issue #793) * New Slovak translation by Tomáš Prékop * Created a MarkdownExtension plugin class (Issue #1175) * The base theme produces properly sectioned and semantic HTML5 (Issues #1123,
Eliot: a framework for Logging as Storytelling
Eliot provides a structured logging and tracing system for Python that generates log messages describing a forest of nested actions. Actions start and eventually finish, successfully or not. Log messages thus tell a story: what happened and what caused it. Here's what your logs might look like before using Eliot: Going to validate http://example.com/index.html. Started download attempted. Download succeeded! Missing title element in /html/body. Bad HTML entity in /html/body/p[2]. 2 validation errors found! After switching to Eliot you'll get a tree of messages with both message contents and causal relationships encoded in a structured format: * {action_type: validate_page, action_status: started, url: http://example.com/index.html} o {action_type: download, action_status: started} o {action_type: download, action_status: succeeded} o {action_type: validate_html, action_status: started} + {message_type: validation_error, error_type: missing_title, xpath: /html/head} + {message_type: validation_error, error_type: bad_entity, xpath: /html/body/p[2]} o {action_type: validate_html, action_status: failed, exception: validator.ValidationFailed} * {action_type: validate_page, action_status: failed, exception: validator.ValidationFailed} Features: * Structured, typed log messages. * Ability to log actions, not just point-in-time information: log messages become a trace of program execution. * Excellent support for unit testing your logging code. * Emphasis on performance, including no blocking I/O in logging code path. * Optional Twisted support. * Designed for JSON output, usable by Logstash/Elasticsearch. * Supports CPython 2.7, 3.3 and PyPy. Eliot is released by HybridCluster https://hybridcluster.github.io under the Apache 2.0 License. To install: $ pip install eliot Downloads are available on PyPI https://pypi.python.org/pypi/eliot. Documentation can be found on Read The Docs https://eliot.readthedocs.org/. Bugs and feature requests should be filed at the project Github page https://github.com/hybridcluster/eliot. -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[RELEASED] Python 2.7.7 release candidate 1
Greetings Python users, Python 2.7.7 release candidate 1 is now available for download. Python 2.7.7 is a regularly scheduled bugfix release for the Python 2.7 series. The 2.7.7 release contains fixes for two severe, if arcane, potential security vulnerabilities. The first was the possibility of reading arbitrary process memory using JSONDecoder.raw_decode. [1] (No other json APIs are affected.) The second security issue is an integer overflow in the strop module. [2] (If you don't know what the strop module is, go ahead and forget it now.) This release also includes months of accumulated normal bugfixes. All the changes in Python 2.7.7 are described in detail in the Misc/NEWS file of the source tarball. You can view it online at http://hg.python.org/cpython/raw-file/e32e3a9f3902/Misc/NEWS Downloads are at https://python.org/download/releases/2.7.7/ This is a testing release. Assuming no horrible bugs are found, 2.7.7 final will be released in two weeks time. Please consider testing your applications and libraries with the release candidate and reporting bugs to http://bugs.python.org/ Enjoy, Benjamin Peterson 2.7 Release Manager [1] http://bugs.python.org/issue21529 [2] http://bugs.python.org/issue21530 -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of same n
Hi, Consider /src/alias/a.c /src/alias/b.c /src/xml/p.xml /src/xml/c.xml /src/h.c as source directory and /dest/alias /dest/xml /dest as destination directory. These are given in a csv file like /src/alias/a.c, /dest/alias /src/alias/b.c, /dest/alias /src/xml/p.xml, /dest/xml /src/xml/c.xml, /dest/xml /src/h.c, /dest Python code should read csv file. Copy files from source to destination(files in /src/alias should be copied to /dest/alias and not to /dest/xml i.e., directory names should be the same). If /dest contains same files as /src, then they code should give us a warning and such files shouldn't be copied. Other files should only be copied. Could you kindly help? -- https://mail.python.org/mailman/listinfo/python-list
Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa
On Mon, May 19, 2014 at 4:53 PM, satishmlwiz...@gmail.com wrote: Could you kindly help? Sure. Either start writing code and then post when you have problems, or investigate some shell commands (xcopy in Windows, cp in Linux, maybe scp) that can probably do the whole job. Or pay someone to do the job for you. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: [python-committers] [RELEASED] Python 3.4.1
It's not easy to find the changelog. I found this page: https://docs.python.org/3.4/whatsnew/changelog.html Victor 2014-05-19 8:00 GMT+02:00 Larry Hastings la...@hastings.org: On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.1. Python 3.4.1 has over three hundred bugfixes and other improvements over 3.4.0. One notable change: the version of OpenSSL bundled with the Windows installer no longer has the HeartBleed vulnerability. You can download it here: https://www.python.org/download/releases/3.4.1 /arry ___ python-committers mailing list python-committ...@python.org https://mail.python.org/mailman/listinfo/python-committers -- https://mail.python.org/mailman/listinfo/python-list
Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa
On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: On Mon, May 19, 2014 at 4:53 PM, satishmlwiz...@gmail.com wrote: Could you kindly help? Sure. Either start writing code and then post when you have problems, or investigate some shell commands (xcopy in Windows, cp in Linux, maybe scp) that can probably do the whole job. Or pay someone to do the job for you. ChrisA Consider xls file contains source and destination directory paths. import xlrd, sys, subprocess file_location = C:\Users\User1\Desktop\input.xls workbook = xlrd.open_workbook(file_location) sheet = workbook.sheet_by_index(0) sheet.cell_value(0, 0) for row in range(sheet.nrows): values = [] values.append(sheet.cell_value(row, 1)) destination = [] destination.append(sheet.cell_value(row, 2)) for s in values: for d in destination: What next after this? shutil.copy(src, dest) doesn't work because it overwrites dest files. -- https://mail.python.org/mailman/listinfo/python-list
Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa
On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: On Mon, May 19, 2014 at 4:53 PM, satishmlwiz...@gmail.com wrote: Could you kindly help? Sure. Either start writing code and then post when you have problems, or investigate some shell commands (xcopy in Windows, cp in Linux, maybe scp) that can probably do the whole job. Or pay someone to do the job for you. ChrisA Hi ChrisAngelico, Consider that source and destination directories are given in a .xls(excel) file. This is the code import xlrd, sys, subprocess file_location = C:\Users\salingeg\Desktop\input.xls workbook = xlrd.open_workbook(file_location) sheet = workbook.sheet_by_index(0) sheet.cell_value(0, 0) for row in range(sheet.nrows): values = [] values.append(sheet.cell_value(row, 1)) destination = [] destination.append(sheet.cell_value(row, 2)) for s in values: for d in destination: If I am using cp or xcopy command, it will copy all files from s to d. shutil.copy(s, d) can't be used here because it overwrites files in d. Kindly help. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
Hi everyone, I am new on this forum (I come from IDL and am starting to learn python) This thread perfectly illustrates why Python is so scary to newcomers: one question, three answers: yes, no, maybe. Python-fans sure would argue freedom of choice is the most important, but being able to find the right tool for me in less than three days surely is important too. The paradox of choice ;-) Fabien -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
On 19/05/2014 11:15, Fabien wrote: Hi everyone, I am new on this forum (I come from IDL and am starting to learn python) This thread perfectly illustrates why Python is so scary to newcomers: one question, three answers: yes, no, maybe. Welcome to the Python world, Fabien. But I'm sure you realise that question as general-purpose as is Python good for Maths? is pretty much *bound* to generate different kinds of answers. I'm not sure why it should be seen as scary. If anything, the variety of responses reflects the diversity of Python's userbase. The casual mathematician sees Python as perfectly adequate using built-in tools alone. The more advanced mathematician sees it as helpful with the addition of some specialist libraries. The most advanced user would prefer some specialised language or toolset more entirely devoted to this one area of interest. And you could repeat the same situation with any number of other areas: Image Processing, Websites, Network-based message passing, Data mining, financial market management, web-scraping, etc. For some, Python has more or less useful built-in support. For some, there are well-established or highly-regarded 3rd-party libraries and communities. For some, you might be better advised to look at a different toolset, especially if you want something which comes ready-made. As I say, though, welcome to Python! TJG -- https://mail.python.org/mailman/listinfo/python-list
Re: [RELEASED] Python 2.7.7 release candidate 1
(If you don't know what the strop module is, go ahead and forget it now.) +1 QOTW :) -- https://mail.python.org/mailman/listinfo/python-list
Re: [RELEASED] Python 2.7.7 release candidate 1
On 19/05/2014 13:20, Miki Tebeka wrote: (If you don't know what the strop module is, go ahead and forget it now.) +1 QOTW :) IIRC the strop module was targetted at users such as myself :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
On Monday, May 19, 2014 3:45:22 PM UTC+5:30, Fabien wrote: Hi everyone, I am new on this forum (I come from IDL and am starting to learn python) This thread perfectly illustrates why Python is so scary to newcomers: one question, three answers: yes, no, maybe. Python-fans sure would argue freedom of choice is the most important, but being able to find the right tool for me in less than three days surely is important too. The paradox of choice ;-) Point taken. So let me try to give pointwise answers to the OP's questions Expanding and factoring equations of all degrees: http://docs.sympy.org/dev/modules/polys/wester.html Numpy for gaussian elimination: https://gist.github.com/tkralphs/7554375 illustrates some of numpy's array-level features. One thing about numpy that bugs me is that the docs never say how much is taken straight from APL. So here is the APL (which I dont claim to understand): http://dfns.dyalog.com/n_gauss_jordan.htm Here is an online APL you can run straight from the browser: http://baruchel.hd.free.fr/apps/apl/ The more general question: On Sunday, May 18, 2014 9:10:46 PM UTC+5:30, Grant Edwards wrote: On 2014-05-18, Bill Cunningham wrote: Does Python have good mathematical capabilities? No. It has very good numerical computation capabilities, but it does not really do math (at least not what a mathemetician would consider math). vs Robert's Many mathematicians would disagree. http://sagemath.org/ Traditionally mathematicians do two kinds of things - calculating and proving. Normal mathematicians dont make too much of a distinction between the two. The more extremists in the one camp look down - as usual - on the other thus: The provers call the calculators as Just applied not pure mathematicians The calculators say of the provers: They are not mathematicians but logicians (or philosophers) [Chris had a funny quote on this a few weeks ago] After computers, a new area emerged - explorers - which straddles proving and calculating. In short, Grant is speaking from the prover angle whereas Robert is speaking from the calculator angle. There is one more point here: Does language-X (in this case python) have a theoretically sound (ie mathematical) foundation? Mathematicians coming to CS never bother with this whereas computer scientists, especially theoretical CSists, at some point or other invariably come to this. Since its not clear whether this question is being asked, I'm not saying anything more on it. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
On Mon, May 19, 2014 at 10:46 PM, Rustom Mody rustompm...@gmail.com wrote: The provers call the calculators as Just applied not pure mathematicians The calculators say of the provers: They are not mathematicians but logicians (or philosophers) [Chris had a funny quote on this a few weeks ago] Which Chris? I don't remember either reading or writing such a quote, and would like to. There are a good few Chrises on this list :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
On Monday, May 19, 2014 6:39:49 PM UTC+5:30, Chris Angelico wrote: On Mon, May 19, 2014 at 10:46 PM, Rustom Mody wrote: The provers call the calculators as Just applied not pure mathematicians The calculators say of the provers: They are not mathematicians but logicians (or philosophers) [Chris had a funny quote on this a few weeks ago] Which Chris? I don't remember either reading or writing such a quote, and would like to. There are a good few Chrises on this list :) You!! Something about mathematicians philosophers and waste-paper baskets -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
On Mon, May 19, 2014 at 11:15 PM, Rustom Mody rustompm...@gmail.com wrote: On Monday, May 19, 2014 6:39:49 PM UTC+5:30, Chris Angelico wrote: On Mon, May 19, 2014 at 10:46 PM, Rustom Mody wrote: The provers call the calculators as Just applied not pure mathematicians The calculators say of the provers: They are not mathematicians but logicians (or philosophers) [Chris had a funny quote on this a few weeks ago] Which Chris? I don't remember either reading or writing such a quote, and would like to. There are a good few Chrises on this list :) You!! Something about mathematicians philosophers and waste-paper baskets Oh! Yes, I remember now. Old joke I found someplace. Physicists need heaps of sensitive (and expensive) equipment... mathematicians need only pencils, paper, and waste-paper baskets. And philosophers don't even need waste-paper baskets. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Problem in writing demands to the xml file
Hello Friends, I am still working on the script to write data onto the xml file and now I've got a problem. This is how my xml file looks now but I intend to add attributes to demands. I am not able to do it properly. substrate nodes node Name=u'Aachen' ProcessingCapacity=20 StorageCapacity=38 SwitchingCapacity=45 TotalDemands=5 nodenum=1 xCoordinate=u'6.04' yCoordinate=u'50.76' demands/ /node node Name=u'Augsburg' ProcessingCapacity=21 StorageCapacity=39 SwitchingCapacity=46 TotalDemands=2 nodenum=2 xCoordinate=u'10.9' yCoordinate=u'48.33' demands/ /node My class for nodes. I have a class for DEMAND but I don't want to populate the post with all of it. class PHY_NODES: def __init__(self, nodeID, nodenum, x, y, capacity_proc, capacity_stor, capacity_switch, totaldemand, demands): self.id = nodeID self.nodenum = nodenum self.x = x self.y = y self.capacity_proc = capacity_proc self.capacity_stor = capacity_stor self.capacity_switch = capacity_switch self.totaldemand = totaldemand self.demands = demands def addDemand (self, demand): self.demands.append( demand ) The problem I have is in writing the demands. I generate the necessary stuff for it but when I try and append it, it doesn't seem to work. I'd be glad to share my files if you need them. Could you please help me fix this? Thank You -- https://mail.python.org/mailman/listinfo/python-list
[ANN]: distlib 0.1.9 released on PyPI
I've just released version 0.1.9 of distlib on PyPI [1]. For newcomers, distlib is a library of packaging functionality which is intended to be usable as the basis for third-party packaging tools. The main changes in this release are as follows: Fixed issue #47: Updated binary launchers to fix double-quoting bug where script executable paths have spaces. Added ``keystore`` keyword argument to signing and verification APIs. A more detailed change log is available at [2]. Please try it out, and if you find any problems or have any suggestions for improvements, please give some feedback using the issue tracker! [3] Regards, Vinay Sajip [1] https://pypi.python.org/pypi/distlib/0.1.9 [2] http://pythonhosted.org/distlib/overview.html#change-log-for-distlib [3] https://bitbucket.org/pypa/distlib/issues/new -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
Le lundi 19 mai 2014 12:15:22 UTC+2, Fabien a écrit : Hi everyone, I am new on this forum (I come from IDL and am starting to learn python) This thread perfectly illustrates why Python is so scary to newcomers: one question, three answers: yes, no, maybe. Python-fans sure would argue freedom of choice is the most important, but being able to find the right tool for me in less than three days surely is important too. The paradox of choice ;-) Fabien -- Yesterday, I spent one hour attemepting to install IPython for Py3.3 (win 7), I failed. I do not even succeed to understand how. Pip, setuptools, whl or manualy with from the zip... completely lost. There is always something not working. This morning I installed Py 3.4.1. I do not even succeed to put it to work. I know Python since v 1.5.6 ! I'm able to write Numerical Recipes in Python, (I did it in Py2 and Py3), I'm unable to install a piece of software (like Python) to work with. I'm just wondering if finally the better solution is not to stick with an MS C#. jmf -- https://mail.python.org/mailman/listinfo/python-list
ANN: pdb-clone 1.6 - a fast clone of pdb with the remote debugging and attach features
pdb-clone 1.6 has been released at Pypi: https://pypi.python.org/pypi/pdb-clone Features: * Improve significantly pdb performance. With breakpoints, pdb-clone runs just above the speed of the interpreter while pdb runs at 10 to 100 times the speed of the interpreter. * Instrument the code with a `set_trace_remote()` hard-coded breakpoint and run the `pdb-attach` script from another terminal to start a remote debugging session. Or, when the code has not been instrumented, run `pdb-attach` with the `--pid` option to start the remote debugging session at any time and attach to the process main thread. * Fix pdb long standing bugs entered in the python issue tracker. * Add a bdb comprehensive test suite (more than 70 tests) and run both the Python pdb and pdb-clone bdb test suites. * Three versions of pdb-clone are supported: * The _py3_ version of pdb-clone runs on python3 from python 3.2 onward. * The _py2.7_ vesion runs on python 2.7. * The _py2.4_ version runs on all python versions from 2.4 to 2.7 included. The pdb command line interface remains unchanged except for the new `detach` pdb command. All the versions of pdb-clone implement the most recent python3 features of pdb. -- https://mail.python.org/mailman/listinfo/python-list
[RELEASED] Python 3.4.1
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.1. Python 3.4.1 has over three hundred bugfixes and other improvements over 3.4.0. One notable change: the version of OpenSSL bundled with the Windows installer no longer has the HeartBleed vulnerability. You can download it here: https://www.python.org/download/releases/3.4.1 //arry/ -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
On Monday 19 May 2014 09:24:18 Chris Angelico did opine And Gene did reply: On Mon, May 19, 2014 at 11:15 PM, Rustom Mody rustompm...@gmail.com wrote: On Monday, May 19, 2014 6:39:49 PM UTC+5:30, Chris Angelico wrote: On Mon, May 19, 2014 at 10:46 PM, Rustom Mody wrote: The provers call the calculators as Just applied not pure mathematicians The calculators say of the provers: They are not mathematicians but logicians (or philosophers) [Chris had a funny quote on this a few weeks ago] Which Chris? I don't remember either reading or writing such a quote, and would like to. There are a good few Chrises on this list :) You!! Something about mathematicians philosophers and waste-paper baskets Oh! Yes, I remember now. Old joke I found someplace. Physicists need heaps of sensitive (and expensive) equipment... mathematicians need only pencils, paper, and waste-paper baskets. And philosophers don't even need waste-paper baskets. ChrisA I gotta grin and like it, that does boil it down to the pure essence. Cheers, Gene Heskett -- There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) Genes Web page http://geneslinuxbox.net:6309/gene US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS -- https://mail.python.org/mailman/listinfo/python-list
Re: [Distutils] [ANN]: distlib 0.1.9 released on PyPI
On 19 May 2014 15:24, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: Fixed issue #47: Updated binary launchers to fix double-quoting bug where script executable paths have spaces. Note that this issue affects pip / virtualenv in that creating a virtualenv in a path with spaces can result in pip not working in that virtualenv. We should revendor distlib for the next pip/virtualenv release (if one of the Unix devs could do that, that would be safer, I've managed to break line endings trying to do a revendor on Windows in the past :-() Paul -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
On Monday, May 19, 2014 8:26:11 PM UTC+5:30, jmf wrote: Yesterday, I spent one hour attemepting to install IPython for Py3.3 (win 7), I failed. I do not even succeed to understand how. Pip, setuptools, whl or manualy with from the zip... completely lost. There is always something not working. This morning I installed Py 3.4.1. I do not even succeed to put it to work. I know Python since v 1.5.6 ! I'm able to write Numerical Recipes in Python, (I did it in Py2 and Py3), I'm unable to install a piece of software (like Python) to work with. So what're you waiting for? Ask here and someone or other will help you get your system running. -- https://mail.python.org/mailman/listinfo/python-list
Re: Bug in Decimal??
pleasedontspam at isp.com writes: I've tested on all platforms I know of and confirmed it. The wrong digit occurs in the middle of the number. Propagation error would have a bad digit near the end, and garbage after that. Here there's a perfect sequence of numbers, but with one single digit changed in the middle of the number. No error propagation in a series expansion can do that. I can see how it might be surprising if you don't think about it too hard, but I'm afraid that you're wrong here: error propagation is *exactly* what's causing the effects you're seeing. Here's another way of looking at it: if you truncate the Taylor series about 0 for (1 + x) / (1 - x) to k (= 1) terms, you get the polynomial (1 + x - 2x^k) / (1 - x). For example, taking k to be 3, we're getting (1 + x - 2x^3) / (1 - x). Given that the particular value of x you're testing with has the form 10**negative, rounding your intermediate result to the working precision has exactly the effect of truncating the series at some k. Now you can compute and compare (by hand, via Wolfram alpha, or however you like) the Taylor series expansions for log((1 + x) / (1 - x)) and log((1 + x - 2x^3) / (1 - x)). For the first you'll see: 2x + 2/3 x^3 + 2/5 x^5 - 2/7 x^7 + 2/9 x^9 - ... and for the second you'll get: 2x - 4/3 x^3 + 2 x^4 - 8/5 x^5 + 16/7 x^7 - ... The difference between the two series is: -2x^3 + 2x^4 - 2x^5 + 2x^7 - 4x^8 + ... So again with x a small power of 10, you're going to see a single-digit error from the -2x^3 term, and another single-digit error further along from the 2x^3 term, and so on. Here's a simpler example of the same phenomenon. Note how the error propagation leads to a single incorrect digit in the *middle* of the digit string. Python 3.4.0 (default, Mar 25 2014, 11:07:05) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)] on darwin Type help, copyright, credits or license for more information. from decimal import Decimal x = Decimal('1e-15') y = (1 - 2 * x) / (1 - x) 2 * x + (y - 1) * (1 - x) # Mathematically, expect to get 'x' back. Decimal('1.001E-15') x Decimal('1E-15') -- Mark -- https://mail.python.org/mailman/listinfo/python-list
Re: Loading modules from files through C++
On 05/19/2014 03:40 AM, Chris Angelico wrote: On Mon, May 19, 2014 at 5:41 AM, Roland Plüss rol...@rptd.ch wrote: This exec source_code in module.__dict__ , should this not also be doable with PyEval_EvalCode? General principle: The more code you write in Python and the less in C/C++, the happier and more productive you will be. Drop into Python as soon as you can, and do all the work from there. You won't have to worry about RAM (de)allocation, Unicode (especially if you use Python 3 rather than 2), integer overflow, etc, etc, etc. Only write lower-level code for the bits that actually demand it; and as Stefan has pointed out, Cython is a great help there. (Which reminds me. I still need some excuse project to justify my learning Cython. It's good-looking tech but everything I can imagine writing seems to already exist.) ChrisA Cython is out of question since link time dependencies has to be kept at an utmost minimum. An concerning doing things from python code it's simply not possible (or I don't know how this should work). Python is fully embedded including any file actions (virtual file system). The launch comes from C++ land. No interpreter is involved. The main work is done outside Python and only dropped in python to do higher logic. This also means the very first python code run requires a C++ script file loading before this first code can ever run. I can't run code that doesn't yet exist in the reach of the python VM. That's the main problem. This is why I need to figure out how to push that first code into Python in a way I can construct an object (from a predefined class). From there on all calls into Python land are solely done trough function calls on this one object obtained in the beginning. I see no other way to handle the problem. -- Yours sincerely Plüss Roland Leader and Head Programmer - Game: Epsylon ( http://www.indiedb.com/games/epsylon ) - Game Engine: Drag[en]gine ( http://www.indiedb.com/engines/dragengine , http://dragengine.rptd.ch/wiki ) - Normal Map Generator: DENormGen ( http://epsylon.rptd.ch/denormgen.php ) - As well as various Blender export scripts und game tools signature.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-list
Python CGI
Hi, I'd like to use Python for CGI-Scripts. Is there a manual how to setup Python with Fast-CGI? I'd like to make sure that Python scripts aren't executed by www-user, but the user who wrote the script. -- Gruß, Christian -- https://mail.python.org/mailman/listinfo/python-list
Re: Python CGI
On 05/19/14 21:32, Christian wrote: Hi, I'd like to use Python for CGI-Scripts. Is there a manual how to setup Python with Fast-CGI? Look for Mailman fastcgi guides. Here's one for gentoo, but I imagine it'd be easily applicable to other disros: https://www.rfc1149.net/blog/2010/12/30/configuring-mailman-with-nginx-on-gentoo/ hth, burak -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
Le lundi 19 mai 2014 18:09:24 UTC+2, Rustom Mody a écrit : On Monday, May 19, 2014 8:26:11 PM UTC+5:30, jmf wrote: Yesterday, I spent one hour attemepting to install IPython for Py3.3 (win 7), I failed. I do not even succeed to understand how. Pip, setuptools, whl or manualy with from the zip... completely lost. There is always something not working. This morning I installed Py 3.4.1. I do not even succeed to put it to work. I know Python since v 1.5.6 ! I'm able to write Numerical Recipes in Python, (I did it in Py2 and Py3), I'm unable to install a piece of software (like Python) to work with. So what're you waiting for? Ask here and someone or other will help you get your system running. You know. You are right. I can only agree. Just ask. The problem I see, is why I only succeded to just find on Google, so many people who are just asking... -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
On 19/05/2014 20:07, wxjmfa...@gmail.com wrote: Yesterday, I spent one hour attemepting to install IPython for Py3.3 (win 7), I failed. I do not even succeed to understand how. Pip, setuptools, whl or manualy with from the zip... completely lost. There is always something not working. This morning I installed Py 3.4.1. I do not even succeed to put it to work. I realise that this probably isn't very helpful, but I've just successfully installed ipython on Python 3.3 and Python 3.4 (Win7 32-bit) by simply doing: py -3.3 -mpip install ipython py -3.4 -mpip install ipython Since I don't have the various c:\pythonxx\scripts folders on my path, I did then have to launch it explictly: c:\python33\scripts\ipython but it was no harder than that. What problems are you experiencing? TJG -- https://mail.python.org/mailman/listinfo/python-list
Need help with executing DB query in two different places in a test
I am trying to automate an ecom website. I need to run DB query after placing each order. I don't know how to run different queries after each order. Can someone help me out with having queries after each order submission or test? If you notice, I'm calling self.database_verification() after test 1. So for the second test the query would be different, something like, Select * from PORTFOLIO_ORDER where MEMBER = 'USA' AND SYMBOL = 'TOP' OR SYMBOL = 'Sweater. Basically for the sequence of orders, i would have different queries. So what is the best way to write the code? class OrderInputScreen(unittest.TestCase): def setUp(self):self.driver = webdriver.Firefox()driver = self.driver driver.get(http://testserver:8080/OrderInputScreen/login#/;) driver.maximize_window() def database_verification(self):con = cx_Oracle.connect('user/user@testDB123') cur = con.cursor() cur.execute(Select * from US_ORDER where SYMBOL = 'TOP' and SIZE = 'M') for result in cur: print result[2:8] cur.close() #USA single Order and verification def __test_single_order(self):driver = self.driverelem = driver.find_element_by_name(username)elem.send_keys(TEST) elemPassword = driver.find_element_by_name(password) elemPassword.send_keys(TEST) elem.submit()member = driver.find_element_by_xpath(//form/div/dl/dd[1]/input)member.click() member.send_keys(USA)PayType = driver.find_element_by_xpath (//form/div/dl/dd[2]/input)PayType.click() PayType.send_keys(USD)clickPayType = driver.find_element_by_xpath (//form/div/dl/dd/ul/li/a)clickPayType.click()Symbol = driver.find_element_by_xpath (//form/div/dl/dd[3]/input) Symbol.click()Symbol.send_keys(TOP)Quantity = driver.find_element_by_name (quantity)Quantity.click() Quantity.send_keys(10)Price = driver.find_element_by_name (price) Price.click()Price.send_keys(56.99)Size = driver.find_element_by_xpath (//form/div/dl/dd[6]/select/option[text()='M']) Size.click()SubmitButton = driver.find_element_by_xpath (//form/div/dl/dd[11]/div[2])SubmitButton.click() ActualOrderMsg = driver.find_element_by_xpath (//span/p).text print ActualOrderMsgtextPresent = driver.find_element_by_xpath (//span/p[contains(text(), 'Successfuly added to processing!')]) self.database_verification() #USA -multiple orders and verification def test_Multiple_order(self): #Order0 driver = self.driverelem = driver.find_element_by_name(username) elem.send_keys(TEST) elemPassword = driver.find_element_by_name(password) elemPassword.send_keys(TEST) elem.submit()member = driver.find_element_by_xpath(//form/div/dl/dd[1]/input)member.click() member.send_keys(USA)PayType = driver.find_element_by_xpath (//form/div/dl/dd[2]/input)PayType.click() PayType.send_keys(USD)clickPayType = driver.find_element_by_xpath (//form/div/dl/dd/ul/li/a)clickPayType.click()Symbol = driver.find_element_by_xpath (//form/div/dl/dd[3]/input) Symbol.click()Symbol.send_keys(TOP)Quantity = driver.find_element_by_name (quantity)Quantity.click() Quantity.send_keys(1)Price = driver.find_element_by_name (price) Price.click()Price.send_keys(16.99)Size = driver.find_element_by_xpath (//form/div/dl/dd[6]/select/option[text()='S']) Size.click()SubmitButton = driver.find_element_by_xpath (//form/div/dl/dd[11]/div[2])SubmitButton.click() ActualOrderMsg = driver.find_element_by_xpath (//span/p).text print ActualOrderMsgtextPresent = driver.find_element_by_xpath (//span/p[contains(text(), 'Successfuly added to processing!')] #Order1 AddOrder1 = driver.find_element_by_xpath(//div/div[2]/form/div[2]/button[1]) AddOrder1.click()member = driver.find_element_by_xpath(//form/div/dl/dd[1]/input)member.click() member.send_keys(USA)PayType = driver.find_element_by_xpath (//form/div/dl/dd[2]/input)PayType.click() PayType.send_keys(USD)clickPayType = driver.find_element_by_xpath (//form/div/dl/dd/ul/li/a)clickPayType.click()Symbol = driver.find_element_by_xpath (//form/div/dl/dd[3]/input) Symbol.click()Symbol.send_keys(Sweater)Quantity = driver.find_element_by_name (quantity)Quantity.click() Quantity.send_keys(2)Price = driver.find_element_by_name (price) Price.click()Price.send_keys(26.99)Size = driver.find_element_by_xpath (//form/div/dl/dd[6]/select/option[text()='M']) Size.click()SubmitButton = driver.find_element_by_xpath
Re: Problem in writing demands to the xml file
On Mon, 19 May 2014 14:42:02 +0100, varun...@gmail.com wrote: The problem I have is in writing the demands. I generate the necessary stuff for it but when I try and append it, it doesn't seem to work. I'd be glad to share my files if you need them. Could you please help me fix this? When you say, It doesn't seem to work, what do you mean? What are you expecting it to do? What does it actually do? Is there a traceback? -- Rhodri James *-* Wildebeest Herder to the Masses -- https://mail.python.org/mailman/listinfo/python-list
Re: Python and Math
On 19May2014 12:07, wxjmfa...@gmail.com wxjmfa...@gmail.com wrote: Le lundi 19 mai 2014 18:09:24 UTC+2, Rustom Mody a écrit : Yesterday, I spent one hour attemepting to install IPython for Py3.3 (win 7), I failed. I do not even succeed to understand how. Pip, setuptools, whl or manualy with from the zip... completely lost. There is always something not working. [...] So what're you waiting for? Ask here and someone or other will help you get your system running. You know. You are right. I can only agree. Just ask. The problem I see, is why I only succeded to just find on Google, so many people who are just asking... I have the same core skill: finding others with my question, not others with my needed answer. That the SO can usually find others with the answer when I cannot shows that there may be a mindset issue here. Cheers, Cameron Simpson c...@zip.com.au Did microsoft take you today? Where do you want them to go? -- https://mail.python.org/mailman/listinfo/python-list
RE: Exception problem with module
Well I am not sure what advantage this has for the user, not my code as I don't advocate the import to begin with it, its fine spelled as it was from where it was... The advantage for the user is: /snip Hey Steven, Sorry for the late reply (travelling). My comment wasn't clear, I was ranting against the import of the exception in the second module, non the less how it was imported and not why it was not ok. Basically, it was no better than leaving it where it was, spelled as it was and requiring the user to import it from where it was defined. It turned out to be some faulty logic in the second module where the __setattr__ call was made that was preventing it from being set... jlc -- https://mail.python.org/mailman/listinfo/python-list
Clip Raster Image Pair by Overlapping Area using Python
Hello, I have a set of aerial images which I am trying to clip by their overlapping areas, for use in a more involved program I am writing with PIL. What would be the best method with Python to extract the overlapping area from a pair of images? I know there are libraries out there that could do this, but I couldn't find any so far. I need to execute this through Python as it will be part of a batch processing script. Any ideas/advice would be great! Thanks so much in advance. -- https://mail.python.org/mailman/listinfo/python-list
Re: Clip Raster Image Pair by Overlapping Area using Python
On Tue, May 20, 2014 at 11:05 AM, mikejohnrya...@gmail.com wrote: I have a set of aerial images which I am trying to clip by their overlapping areas, for use in a more involved program I am writing with PIL. What would be the best method with Python to extract the overlapping area from a pair of images? I know there are libraries out there that could do this, but I couldn't find any so far. The problem is that they won't absolutely perfectly match, so you need some sort of similarity check. That's hard - very hard. I suggest you find a stand-alone program that will do that part of the job; it'll be easier than finding a Python library for it. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Clip Raster Image Pair by Overlapping Area using Python
On Monday, May 19, 2014 9:17:05 PM UTC-4, Chris Angelico wrote: On Tue, May 20, 2014 at 11:05 AM, mikejohnrya...@gmail.com wrote: I have a set of aerial images which I am trying to clip by their overlapping areas, for use in a more involved program I am writing with PIL. What would be the best method with Python to extract the overlapping area from a pair of images? I know there are libraries out there that could do this, but I couldn't find any so far. The problem is that they won't absolutely perfectly match, so you need some sort of similarity check. That's hard - very hard. I suggest you find a stand-alone program that will do that part of the job; it'll be easier than finding a Python library for it. ChrisA Chris, Thanks for your response. For my purpose, the images won't have to be 'perfectly' matched, but hopefully as close as possible. Registration algorithms won't work for this reason--the images aren't identical to each other because of the different perspectives. -- https://mail.python.org/mailman/listinfo/python-list
Re: Clip Raster Image Pair by Overlapping Area using Python
On Tue, May 20, 2014 at 11:30 AM, mikejohnrya...@gmail.com wrote: Thanks for your response. For my purpose, the images won't have to be 'perfectly' matched, but hopefully as close as possible. Registration algorithms won't work for this reason--the images aren't identical to each other because of the different perspectives. Yeah, and that's what makes it hard. This is outside my area of expertise, so all I can say is that these sorts of programs do exist, but restricting yourself to Python libraries may make your life unnecessarily hard. On a separate topic, you're posting through Google Groups with its abhorrent bugs. Can you please either edit your posts before sending (removing the blank lines, wrapping to a sane width, and trimming the quoted text), or switch to a better newsreader (or the mailing list)? You'll find that a lot of people here either filter your message to /dev/null automatically, or take one look and just move on to the next post. Remember, never offend people with form when you can offend them with substance :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Python CGI
On 2014-05-19 20:32, Christian wrote: I'd like to use Python for CGI-Scripts. Is there a manual how to setup Python with Fast-CGI? I'd like to make sure that Python scripts aren't executed by www-user, but the user who wrote the script. While Burak addressed your (Fast-)CGI issues, once you have a test-script successfully giving you output, you can use the standard-library's getpass.getuser() function to tell who your script is running as. -tkc -- https://mail.python.org/mailman/listinfo/python-list
Re: Loading modules from files through C++
On 05/17/2014 08:01 AM, Stefan Behnel wrote: please avoid top-posting. Trimming quoted material where appropriate is always welcome too! -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Internet Database
On 9 May 2014 22:06, Chris Angelico ros...@gmail.com wrote: On Sat, May 10, 2014 at 6:45 AM, jun...@gmail.com wrote: 2 - Jit compiler for using from a web server. I mean, one has a web server running under Apache in a hosting service like Hostgator, Daddy Host or another inexpensive service. I decide to run a few applications in Racket, but the application requires number crunching. I install the Jit Racket in the hosting service, and call it from my dynamic generated page. My programs will run almost at the speed of optimised C. For number crunching, you can use the numpy library, which is highly efficient. For general JIT compilation of actual Python code, PyPy will do that. AFAIK there's no standard module for that, though. There's also Numba for JIT compilation of Numpy code inside CPython. -- https://mail.python.org/mailman/listinfo/python-list
Re: Clip Raster Image Pair by Overlapping Area using Python
On Tuesday, May 20, 2014 7:13:42 AM UTC+5:30, Chris Angelico wrote: On a separate topic, you're posting through Google Groups with its abhorrent bugs. Can you please either edit your posts before sending (removing the blank lines, wrapping to a sane width, and trimming the quoted text), or switch to a better newsreader (or the mailing list)? You'll find that a lot of people here either filter your message to /dev/null automatically, or take one look and just move on to the next post. Remember, never offend people with form when you can offend them with substance :) This https://wiki.python.org/moin/GoogleGroupsPython shows the problems and possible solutions -- https://mail.python.org/mailman/listinfo/python-list
Re: Psycopg2 : error message.
dandrigo laurent.cel...@gmail.com wrote: I'm writing a python script for a web service. I have to connect to my postgres/postgis databases via Psycopg2. I writed a little first script just to connect to my pg/postgis db and drop a test db. But when i execute the python file, i have several error messages. Really, this wouldn't have been so hard to figure out if you had read the documentation. conn=psycopg2.connect(dbname='busard_test' user='laurent' host='localhost' password='cactus') Psycopg2 has two ways to specify the parameters. You can either do them as individual Python parameters, in which case each parameter is a string that needs to be quited, OR you can use a single connection string, in which case you do NOT quote the individual parameters. So, you can either do this: conn=psycopg2.connect(dbname=busard_test user=laurent host=localhost password=cactus) or do this: conn=psycopg2.connect(database='busard_test', user='laurent', host='localhost', password='cactus') -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. -- https://mail.python.org/mailman/listinfo/python-list
Re: Need help with executing DB query in two different places in a test
Sunitha Byju sunitha_b...@hotmail.com wrote: I am trying to automate an ecom website. I need to run DB query after placing each order. I don't know how to run different queries after each order. Can someone help me out with having queries after each order submission or test? Well, what's your primary key? After each test, you need to fetch the record that should have been created, and verify that the fields contain the information you provided. For example, if you're doing a shopping cart, then you must have some kind of key associated with this session. So, you could just fetch all of the record for the session after each transaction, and make sure the contents match what you expect. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. -- https://mail.python.org/mailman/listinfo/python-list
[issue12546] builtin __format__ methods cannot fill with \x00 char
STINNER Victor added the comment: I don't understand why it works with , = or : {0:\x006d}.format(123) '123\x00\x00\x00' But not without: {0:\x006d}.format(123) Traceback (most recent call last): File stdin, line 1, in module ValueError: Invalid format specifier Compare it to: {0:6d}.format(123) ' 123' {0:06d}.format(123) '000123' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19979] Missing nested scope vars in class scope (bis)
Armin Rigo added the comment: Terry: I meant exactly what I wrote, and not some unrelated examples: def f(): n = 1 class A: n = n doesn't work, but the same two lines (n = 1; class A: n = n) work if written at module level instead of in a function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19979 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21533] built-in types dict docs - construct dict from iterable, not iterator
New submission from Wolfgang Maier: The docs for Python3.4 havethis to say about the arguments to the dict constructor: class dict(**kwarg) class dict(mapping, **kwarg) class dict(iterable, **kwarg) Return a new dictionary initialized from an optional positional argument and a possibly empty set of keyword arguments. If no positional argument is given, an empty dictionary is created. If a positional argument is given and it is a mapping object, a dictionary is created with the same key-value pairs as the mapping object. Otherwise, the positional argument must be an iterator object. Each item in the iterable must itself be an iterator with exactly two objects. The first object of each item becomes a key in the new dictionary, and the second object the corresponding value. If a key occurs more than once, the last value for that key becomes the corresponding value in the new dictionary. This paragraph uses the term iterator twice when it should talk about an iterable instead. I'm attaching the patch for this. Best, Wolfgang -- assignee: docs@python components: Documentation files: dict_doc.patch keywords: patch messages: 218784 nosy: docs@python, wolma priority: normal severity: normal status: open title: built-in types dict docs - construct dict from iterable, not iterator Added file: http://bugs.python.org/file35292/dict_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21533 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12546] builtin __format__ methods cannot fill with \x00 char
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7
Marc-Andre Lemburg added the comment: Some comments: * Python 2.7 ships with OpenSSL 0.9.8 on Windows, so the Python version will always get used on that platform, so it needs to be fast. * The iterations loop should use xrange instead of range * The .encode('ascii') in _long_to_bin() is not necessary in Python 2 * Given that _long_to_bin() and _bin_to_long() are only used once in the function, it's better to inline the code directly. * bytes(buffer()) should not be necessary in Python 2, since objects with a buffer interface will usually also implement the tp_str slot used by bytes(). -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21304 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7
Christian Heimes added the comment: Sorry that I join the party rather late. How about you take my back port from https://bitbucket.org/tiran/backports.pbkdf2/ and remove all Python 3.x related code? :) I spent a lot of time to make the code as fast as possible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21304 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7
Marc-Andre Lemburg added the comment: On 19.05.2014 12:24, Christian Heimes wrote: How about you take my back port from https://bitbucket.org/tiran/backports.pbkdf2/ and remove all Python 3.x related code? :) I spent a lot of time to make the code as fast as possible. Could you perhaps compare this to the proposed patch ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21304 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14776] Add SystemTap static markers
Bohuslav Slavek Kabrda added the comment: Hi, I'd like to take this over after Dave Malcolm. I don't see any issues that haven't been resolved, so my question is: What else can I do to make this patch acceptable? I'm attaching a rebased version of this patch that applies to current default branch (FWIW, we use this patch downstream in Fedora in our python3-debug build and it works well) -- Added file: http://bugs.python.org/file35293/cpython-systemtap-2014-05-19.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14710] pkgutil.get_loader is broken
Pavel Aslanov added the comment: This function is broken again in version 3.4 The way it should look is: Python 2.7.6 (default, Feb 26 2014, 12:07:17) [GCC 4.8.2 20140206 (prerelease)] on linux2 Type help, copyright, credits or license for more information. import pkgutil pkgutil.get_loader('no_such_module') # returns None How it really looks: Python 3.4.0 (default, Apr 27 2014, 23:33:09) [GCC 4.8.2 20140206 (prerelease)] on linux Type help, copyright, credits or license for more information. import pkgutil pkgutil.get_loader('no_such_module') Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python3.4/pkgutil.py, line 467, in get_loader return find_loader(fullname) File /usr/lib/python3.4/pkgutil.py, line 488, in find_loader return spec.loader AttributeError: 'NoneType' object has no attribute 'loader' find_loader is at fault (change return spec.loader - return spec and spec.loader). Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14710 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7856] cannot decode from or encode to big5 \xf9\xd8
Inndy added the comment: I'm Taiwanese, F9D8 in big5 should be mapped to E8A38F in UTF-8. -- nosy: +Inndy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7856 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21528] Fix a number of typos in the documentation
Georg Brandl added the comment: Looks all good to me. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21528 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21534] 404 on documentation download links
New submission from Zachary Ware: docs@ has received several reports from people unable to download documentation from docs.python.org/[23]/download.html since the release of 3.4.1rc1 and 2.7.7rc1. -- assignee: docs@python components: Documentation messages: 218792 nosy: benjamin.peterson, docs@python, georg.brandl, larry, zach.ware priority: high severity: normal status: open title: 404 on documentation download links type: behavior versions: Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21534 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14776] Add SystemTap static markers
Dave Malcolm added the comment: On Mon, 2014-05-19 at 11:10 +, Bohuslav Slavek Kabrda wrote: Bohuslav Slavek Kabrda added the comment: Hi, I'd like to take this over after Dave Malcolm. I don't see any issues that haven't been resolved, so my question is: What else can I do to make this patch acceptable? I'm attaching a rebased version of this patch that applies to current default branch (FWIW, we use this patch downstream in Fedora in our python3-debug build and it works well) -- Added file: http://bugs.python.org/file35293/cpython-systemtap-2014-05-19.patch Is this attachment missing the instrumentation.rst? There are also a couple of example scripts we ship in the RPMs, iirc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14776] Add SystemTap static markers
Dave Malcolm added the comment: On Mon, 2014-05-19 at 14:15 +, Dave Malcolm wrote: Dave Malcolm added the comment: On Mon, 2014-05-19 at 11:10 +, Bohuslav Slavek Kabrda wrote: Bohuslav Slavek Kabrda added the comment: Hi, I'd like to take this over after Dave Malcolm. I don't see any issues that haven't been resolved, so my question is: What else can I do to make this patch acceptable? I'm attaching a rebased version of this patch that applies to current default branch (FWIW, we use this patch downstream in Fedora in our python3-debug build and it works well) -- Added file: http://bugs.python.org/file35293/cpython-systemtap-2014-05-19.patch Is this attachment missing the instrumentation.rst? FWIW I see it within http://bugs.python.org/file26074/cpython-systemtap-2012-06-21-001.patch There are also a couple of example scripts we ship in the RPMs, iirc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19217] Calling assertEquals for moderately long list takes too long
Changes by Ankur Ankan ankuran...@gmail.com: -- nosy: +ankurankan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19217 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19217] Calling assertEquals for moderately long list takes too long
Changes by Ankur Ankan ankuran...@gmail.com: -- nosy: +Ankur.Ankan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19217 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21535] test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error code
New submission from Matthias Klose: == FAIL: test_license_exists_at_url (test.test_site.ImportSideEffectTests) -- Traceback (most recent call last): File /scratch/packages/python/3.4/python3.4-3.4.1/Lib/test/test_site.py, line 438, in test_license_exists_at_url self.assertEqual(code, 200, msg=Can't find + url) AssertionError: 404 != 200 : Can't find http://www.python.org/download/releases/3.4.1/license -- components: Tests messages: 218795 nosy: doko priority: normal severity: normal status: open title: test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error code versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14776] Add SystemTap static markers
Bohuslav Slavek Kabrda added the comment: As usual, I forgot to hg add the new files before running hg diff, so the newly created files didn't get added to the patch. Attaching a fixed version that hopefully has everything. AFAICS all the scripts that Fedora has are 1:1 copy of documentation in instrumentation.rst, so I don't think it's necessary to add them here (there are enough files attached here already ;)). -- Added file: http://bugs.python.org/file35294/cpython-systemtap-2014-05-19-all-files.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12546] builtin __format__ methods cannot fill with \x00 char
Eric V. Smith added the comment: For int, the spec is: [[fill]align][sign][#][0][width][,][.precision][type] So, for 06d, 0 is matched as the literal 0, 6 is matched as width, and d is matched as type. For \x006d, \x00 is matched as fill, as align, 6 as width, and d as type. For \x006d, there's no align. So \x00 cannot match as fill. \x00 doesn't match anything else, so it's an invalid format specifier, thus the exception. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14776] Add SystemTap static markers
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21532] 2.7.7rc1 msi is lacking libpython27.a
Steve Dower added the comment: Thanks for catching this. Do I need a specific version of Cygwin or will the latest version suffice? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21532 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21531] Sending a zero-length UDP packet to asyncore invokes handle_close()
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21531 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21531] Sending a zero-length UDP packet to asyncore invokes handle_close()
Giampaolo Rodola' added the comment: That doesn't surprise me as asyncore does not natively support UDP protocol in the first place. -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21531 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21532] 2.7.7rc1 msi is lacking libpython27.a
Martin v. Löwis added the comment: I think any version should do. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21532 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7856] cannot decode from or encode to big5 \xf9\xd8
Martin v. Löwis added the comment: I'm still looking for an official source of that. u\u88cf.encode(big5hkscs) '\xf9\xd8' works fine (and always has been working fine), and the character clearly is in big5hkscs. According to http://en.wikipedia.org/wiki/Big5 F9D8 is Reserved for user-defined characters, so this suggests that the character does *not* have a fixed meaning in BIG-5. However, it is part of the Hong Kong Supplementary Character Set. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7856 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21532] 2.7.7rc1 msi is lacking libpython27.a
Steve Dower added the comment: I installed mingw32-binutils and it seems to work fine. 2.7.7 will have the file again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21532 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14710] pkgutil.get_loader is broken
Brett Cannon added the comment: I'll take a look the next time I have some Python time (in a week or two) and make sure this gets dealt with. -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14710 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7856] cannot decode from or encode to big5 \xf9\xd8
Martin v. Löwis added the comment: Inndy, you might also be talking about big5-2003, from http://www.csie.ntu.edu.tw/~r92030/project/big5/ Python currently does not support big5-2003, but a contribution of such an encoding would surely be welcome. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7856 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21535] test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error code
Berker Peksag added the comment: This is probably related to issue 21534. -- nosy: +berker.peksag, larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21529] JSON module: reading arbitrary process memory
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21536] extension built with a shared python cannot be loaded with a static python
New submission from Antoine Pitrou: When a C extension is built (using distutils) with a shared library Python, it cannot be loaded with an otherwise identical statically linked Python. The other way round works fine. Trivial example using the _ssl module: import sys sys.path.insert(0, '/home/antoine/cpython/shared/build/lib.linux-x86_64-3.5/') import _ssl Traceback (most recent call last): File stdin, line 1, in module ImportError: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory This is probably because of an additional -L flag that is passed when linking a C extension with a shared library Python. I don't think the flag is useful under Linux (or perhaps under any other OS at all), since the relevant symbols are already loaded when the interpreter tries to load the C extension. (AFAIK, systems notorious for providing shared library Pythons are RedHat-alike systems, while Debian/Ubuntu provide statically linked Pythons) -- components: Library (Lib) messages: 218806 nosy: dstufft, eric.araujo, loewis, ncoghlan, pitrou priority: normal severity: normal status: open title: extension built with a shared python cannot be loaded with a static python type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21536 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21530] Integer overflow in strop
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21530 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21529] JSON module: reading arbitrary process memory
Jesús Cea Avión added the comment: Fixed also in 3.2 (b9913eb96643), 3.3 (4f15bd1ab28f), 3.4 (7b95540ced5c) and 3.5 (3a414c709f1f). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21529 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21537] functools.lru_cache does not cache exceptions
New submission from Stephen Paul Chappell: While examining the implementation for lru_cache, it came to my attention that the wrappers ignore the possibility of exceptions. Is this on purpose? If the cache is designed to reduce the overhead of running certain functions, it seems like lru_cache should handle returned values along with raised exceptions. -- components: Library (Lib) messages: 218808 nosy: Zero priority: normal severity: normal status: open title: functools.lru_cache does not cache exceptions type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21537 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14710] pkgutil.get_loader is broken
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14710 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21536] extension built with a shared python cannot be loaded with a static python
Antoine Pitrou added the comment: Actually, it's not a -L flag but a -l flag. Removing the -lpython3.5m flag from the linker line works fine under Linux, and allows the resulting extension to be loaded with both a shared libary Python and a statically-linked Python. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21536 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21537] functools.lru_cache does not cache exceptions
Raymond Hettinger added the comment: Is this on purpose? The short answer is yes. It is a can of worms and there isn't much of a payoff. -- nosy: +rhettinger resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21537 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21507] memory used by frozenset created from set differs from that of frozenset created from other iterable
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21507 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21507] memory used by frozenset created from set differs from that of frozenset created from other iterable
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21507 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2506] Add mechanism to disable optimizations
Raymond Hettinger added the comment: There has been no activity on this for several year. Marking as rejected for the reasons originally listed. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21484] More clarity needed about difference between x += e and x = x + e
Raymond Hettinger added the comment: I agree with Josh. If anything this belongs in a wiki entry, faq page, or stack overflow question. -- nosy: +rhettinger resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21484 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21536] extension built with a shared python cannot be loaded with a static python
Martin v. Löwis added the comment: I think you are right. It would IMO be useful to research a few comparable systems. E.g. Apache modules don't link a shared library, but still refer to apr_ functions as undefined symbols - but then, there isn't an APR shared library in the first place (at least not on Debian - how about Redhat?) PHP might be close to our case: Debian includes a libphp5.so (in /usr/lib/php5), yet neither /usr/bin/php5 nor the Apache libphp5.so link against it, and all the PHP modules (in /usr/lib/php5/20100525+lfs/) don't link with the shared library - on Debian. I wonder how it is on systems that actually use the PHP shared library. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21536 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2506] Add mechanism to disable optimizations
Ned Batchelder added the comment: Raymond, thanks for keeping us honest! I am still hoping to convince people that this is a good idea. I think Guido's +1 (https://mail.python.org/pipermail/python-dev/2012-December/123099.html) should help in that regard. Part of your reason for today's rejection is the lack of activity. Can I assume that with a patch you would be supportive? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14776] Add SystemTap static markers
Jesús Cea Avión added the comment: I would like to point out that if this patch gets accepted, maybe issue #13405 (updated, I keep an up to date version in my mercurial repo) should too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2506] Add mechanism to disable optimizations
Trip Volpe added the comment: I found this issue just the other day while researching why we were getting false gaps in our test coverage reports (using Ned's coverage module, natch!). I agree that this seems like a fairly minor nuisance, but it's a nuisance that anybody who has tests and measures test coverage will run into sooner or later -- and that's *everybody*, right? I think some kind of fix ought to be discussed. After all, it should be possible to have accurate coverage results is a proposition that seems fairly reasonable to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2506] Add mechanism to disable optimizations
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14776] Add SystemTap static markers
Martin v. Löwis added the comment: I still wish there was a patch that combined both dtrace and systemtap support, und used as much code sharing between them as feasible. I'd be +1 on such a patch, and -0 on two separate patches that achieve the same functionality, but on different code paths. For example, the systemtap version has a helper function get_frame_marker_info that covers more cases than the dtrace version; OTOH, the dtrace version has more trace points. If consensus on functionality is not easily achieved, I propose to have the intersection on functionality first, i.e. only use the function-entry/exit trace points even in the dtrace version. Or else you agree on what trace points both systems ought to provide. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20620] Update the min()/max() docs for the new default argument
Roundup Robot added the comment: New changeset b60258f4499c by Raymond Hettinger in branch '3.4': Issue 20620: Update the min()/max() docs for the new default argument. http://hg.python.org/cpython/rev/b60258f4499c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20620 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20620] Update the min()/max() docs for the new default argument
Raymond Hettinger added the comment: Thanks for the patch. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20620 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21535] test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error code
Ned Deily added the comment: The license file page for 3.4.1 now exists. -- nosy: +ned.deily stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21535] test_license_exists_at_url fails with 3.4.1, wrong/unexpected http error code
Changes by Ned Deily n...@acm.org: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7776] http.client.HTTPConnection tunneling is broken
Changes by Senthil Kumaran sent...@uthcode.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21538] plistlib unable to load iOS7 Safari History.plist
New submission from John Lehr: plistlib has key error when attempting to load the iOS7 var/mobile/Applications/com.apple.mobilesafari/Library/Safari/History.plist. No detected issues with other iOS7 plists. In [8]: with open('cases/vitale_test_iphone/unback/AppDomain-com.apple.mobilesafari/Library/Safari/History.plist', 'rb') as f: ...: plist = plistlib.lo plistlib.load plistlib.loads ...: plist = plistlib.load(f) ...: --- KeyError Traceback (most recent call last) ipython-input-8-7824ac03848c in module() 1 with open('cases/vitale_test_iphone/unback/AppDomain-com.apple.mobilesafari/Library/Safari/History.plist', 'rb') as f: 2 plist = plistlib.load(f) 3 /usr/lib/python3.4/plistlib.py in load(fp, fmt, use_builtin_types, dict_type) 993 p = _FORMATS[fmt]['parser'](use_builtin_types=use_builtin_types) 994 -- 995 return p.parse(fp) 996 997 /usr/lib/python3.4/plistlib.py in parse(self, fp) 620 ) = struct.unpack('6xBBQQQ', trailer) 621 self._fp.seek(offset_table_offset) -- 622 offset_format = '' + _BINARY_FORMAT[offset_size] * num_objects 623 self._ref_format = _BINARY_FORMAT[self._ref_size] 624 self._object_offsets = struct.unpack( KeyError: 3 -- messages: 218821 nosy: slo.sleuth priority: normal severity: normal status: open title: plistlib unable to load iOS7 Safari History.plist type: crash versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21538 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10510] distutils upload/register should use CRLF in HTTP requests
Éric Araujo added the comment: Patch looks good, will apply. Thanks. -- stage: needs patch - commit review versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10510 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks
Santoso Wijaya added the comment: I think you should use codecs.BOM_UTF8 rather than using hardcoded string \xef\xbb\xbf directly. And why special casing UTF-8 while we're at it? What about other encodings and their BOMs? -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21509 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com