hi,
there are also
ruby.co.uk
lua.co.uk
in my opinion someone who is on the ruby-/lua-malinglist too should warn these
guys
* Steven D'Aprano steve+comp.lang.pyt...@pearwood.info [2013-02-16 06:50]:
Folks,
It seems that people have been sending threats and abuse to the company
claiming a
On Fri, 15 Feb 2013 11:47:33 -0800, Gary Herron wrote:
Floating point calculations on a computer (ANY computer, and ANY
programming language) can *never* be expected to be exact!
never is incorrect. There are many floating-point calculations
which can reasonably be expected be exact[2].
On Sun, Feb 17, 2013 at 12:55 AM, Nobody nob...@nowhere.com wrote:
Furthermore, any such calculation for which the correct answer isn't
exactly representable should produce the same result as if the correct
answer had been calculated to an infinite number of digits then rounded to
the nearest
In article pan.2013.02.16.13.55.31.206...@nowhere.com,
Nobody nob...@nowhere.com wrote:
IOW: floating-point arithmetic is deterministic. It follows rules. Not the
same rules as real arithmetic, but rules nonetheless. Contrary to
common superstition, the least-significant bits are *not* taken
On 15 February 2013 15:49, Chris Angelico ros...@gmail.com wrote:
On Sat, Feb 16, 2013 at 2:36 AM, Tim Golden m...@timgolden.me.uk wrote:
How true. This last time, my team split into two: one half
to handle the display, the other working on the algorithm. We
ended up having to draw a really
I know nothing about this gnuradio thingie, and you didn't supply a
website url. I was wondering if the module is even intended to be run
standalone, but I suppose the if __name__ == __main__ thing is a clue
that it's supposed to.
I found the mixture of trace lines to
On Fri, 15 Feb 2013 22:52:57 -0500, Mitya Sirenef
msire...@lightbird.net wrote:
On 02/15/2013 10:22 PM, eli m wrote:
Any small program ideas? I would prefer to stick to command line ones.
Thanks.
How about these two:
- simulation of a street crossing with green/red lights allowing cars
On Fri, 15 Feb 2013 19:57:35 -0800 (PST), eli m
techgeek...@gmail.com wrote:
On Friday, February 15, 2013 7:52:57 PM UTC-8, Mitya Sirenef wrote:
On 02/15/2013 10:22 PM, eli m wrote:
Any small program ideas? I would prefer to stick to command line ones.
Thanks.
How about these two:
On 02/16/2013 08:55 AM, Nobody wrote:
On Fri, 15 Feb 2013 11:47:33 -0800, Gary Herron wrote:
Floating point calculations on a computer (ANY computer, and ANY
programming language) can *never* be expected to be exact!
never is incorrect. There are many floating-point calculations
which can
Greetings!
There was a recent thread on Python-Ideas about adding an enumeration package
to the stdlib. One idea that seemed to be fairly popular (at least I like it a
lot ;)
was the use of a metaclass to automatically assign values when a name lookup
failed.
It was also fairly unpopular and
hello, i'm having problem coding and running python on my pc...i just
started learning python last month in codeacademy.com but i've not
been able to code offline 'cos i don't knw how to go abt installing
the compiler and all that. Any help please?
--
http://www.youtube.com/watch?v=dFnuK9dlWdk
On Sat, Feb 16, 2013 at 1:40 PM, babatunde akerele babs...@gmail.comwrote:
hello, i'm having problem coding and running python on my pc...i just
started learning python last month in codeacademy.com but i've not
been able to code offline 'cos i don't
On Sat, Feb 16, 2013 at 4:40 PM, babatunde akerele babs...@gmail.com wrote:
hello, i'm having problem coding and running python on my pc...i just
started learning python last month in codeacademy.com but i've not
been able to code offline 'cos i don't knw how to go abt installing
the compiler
I want to tell whether an object is a regular expression pattern.
Python 3.2.3 (default, Oct 19 2012, 20:10:41)
[GCC 4.6.3] on linux2
Type help, copyright, credits or license for more information.
import re
s = hello
type(s)
class 'str'
isinstance(s, str)
True
my_pattern = re.compile(s)
import os
os.system(i=3)
0
os.system(echo $i)
0
why i can not get the value of i?
Each call to os.system starts a new shell. Think about what would
happen if you opened a terminal and typed:
$ i=3
Then, close that terminal and open a new one. You would not be surprised that
$ echo $i
Thank you for reading this.
My adventures with Python have just begun and during the few weeks I
have tried many IDEs. The following piece of code fails under all IDEs,
and the interpreter, except under the Wing IDE.
Why would this code work under the Wing IDE and nowhere else? Could
there
Guido Reina added the comment:
I am attaching a .tgz file with the tests I have performed.
The .tgz file contains also a README.txt file with more detailed information.
I have done the following test:
The script loads the HTML file 'search.html' in 'rawdata' and searches '' in a
loop from the
New submission from Mi Zou:
while urllib following the redirection(302):
urllib.client.HTTPConnection.putrequest raise an error:
#--
File D:\Program Files\Python32\lib\http\client.py, line 1004, in
_send_request
Changes by Sebastian Kraft sebastian_kr...@gmx.de:
Removed file: http://bugs.python.org/file28122/wave_float_issue16525.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16525
___
Sebastian Kraft added the comment:
Thanks for the hint Harvey!
I have updated my patch to include your changes, but only applied the second
hunk for the following reasons:
Wave_read should not assume any wave format, as it is expected to open a file
during initialization. So actually the only
Changes by Mi Zou aaasuoliw...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17214
___
___
Python-bugs-list
Changes by Mi Zou aaasuoliw...@gmail.com:
--
resolution: - invalid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17214
___
___
Python-bugs-list
Changes by Mi Zou aaasuoliw...@gmail.com:
--
title: urllib.client.HTTPConnection.putrequest encode error -
http.client.HTTPConnection.putrequest encode error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17214
Mi Zou added the comment:
while urllib following the redirection(302):
http.client.HTTPConnection.putrequest raise an error:
#--
...
File D:\Program Files\Python32\lib\http\client.py, line 1004, in
_send_request
New submission from July Tikhonov:
library/io.rst
io.open() signature lacks 'opener' argument.
library/importlib.rst
concreate - concrete
--
assignee: docs@python
components: Documentation
files: docs-misprint.diff
keywords: patch
messages: 182219
nosy: docs@python, july
priority:
Stefan Krah added the comment:
I would be willing to write an (alternative) PEP, but I'm not quite satisfied
with my own proposal yet. Also, I'd need to understand the positional-only
part better, but the _cursesmodule.c example does not seem to compile here. :)
So, *disregarding* the
Nick Coghlan added the comment:
Stefan, that proposal definitely looks like it is worth writing up as a PEP to
me. One thing that I particularly like about it is that it should be possible
to pluck out the first element of the {} entries fairly easily in order to get
the ordinary Python
Ramchandra Apte added the comment:
LGTM.
--
nosy: +Ramchandra.Apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17215
___
___
Python-bugs-list
Changes by Stefan Behnel sco...@users.sourceforge.net:
--
nosy: +scoder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16612
___
___
Ramchandra Apte added the comment:
Attached is a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file29087/issue.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17211
___
Roundup Robot added the comment:
New changeset c1b3d25882ca by Serhiy Storchaka in branch '2.7':
Issue #13169: The maximal repetition number in a regular expression has been
http://hg.python.org/cpython/rev/c1b3d25882ca
New changeset 472a7c652cbd by Serhiy Storchaka in branch '3.2':
Issue
Ezio Melotti added the comment:
Patch needs tests.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17211
___
___
Serhiy Storchaka added the comment:
I have committed simplified patches. They don't change an exception type from
OverflowError to re.error (but an error message now is more helpful) and don't
made the code clever enough to not raise an exception when a repetition number
is exceeded
Ramchandra Apte added the comment:
I forget about that. Attached is a patch with tests.
--
Added file: http://bugs.python.org/file29088/issue.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17211
Roundup Robot added the comment:
New changeset c1f846a99c85 by Serhiy Storchaka in branch '3.3':
Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units.
http://hg.python.org/cpython/rev/c1f846a99c85
New changeset 73a16d3c066a by Serhiy Storchaka in branch 'default':
Issue #17193:
Serhiy Storchaka added the comment:
Thank you, Ezio, for your comments.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17193
Roundup Robot added the comment:
New changeset 088a14031998 by Serhiy Storchaka in branch 'default':
Issue #8745: Small speed up zipimport on Windows. Patch by Catalin Iacob.
http://hg.python.org/cpython/rev/088a14031998
--
nosy: +python-dev
___
Serhiy Storchaka added the comment:
Nickolai, are you want to update your patch with fixes for other possible
pointer overflows? Note, that the maximal repetition number has been increased
now.
--
assignee: - serhiy.storchaka
___
Python tracker
New submission from uservorname usernachname:
Greetings,
make fails at:
ar rc libpython3.3m.a Objects/abstract.o Objects/accu.o Objects/boolobject.o
Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o
Objects/cellobject.o Objects/classobject.o Objects/codeobject.o
Changes by Ed Campbell drescampb...@gmail.com:
--
nosy: +esc24
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15730
___
___
Python-bugs-list
Ezio Melotti added the comment:
LGTM.
(Maybe build the doc and double check that all the links are correct before
committing.)
--
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15438
Stefan Krah added the comment:
OK, I'll have a go at the PEP then. In addition to the proposed syntax
in my previous mail, I'm going to suggest this alternative:
/*[preprocessor]
# Declaration
os.stat [PyOs_Stat] (
{ path: [string, bytes, int] = path_converter = path_t },
*,
{ dir_fd:
Giampaolo Rodola' added the comment:
Patch looks ok. Just add the new exception class to all_errors list.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
Michał Jastrzębski added the comment:
Thank you Giampaolo,
I'm attaching patch changed according to your suggestion.
--
Added file: http://bugs.python.org/file29090/ftplib_maxline.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset dc8a11c16021 by Serhiy Storchaka in branch '2.7':
Issue #9669: Protect re against infinite loops on zero-width matching in
http://hg.python.org/cpython/rev/dc8a11c16021
New changeset d40afd489b6a by Serhiy Storchaka in branch '3.2':
Issue #9669:
Serhiy Storchaka added the comment:
{ path: [string, bytes, int] = path_converter = path_t },
*,
{ dir_fd: [int, None] = None = OS_STAT_DIR_FD_CONVERTER = int },
{ follow_symlinks: bool = True = p = int }
Why not just:
path: path_t
*
dir_fd: dir_fd_t = None = DEFAULT_DIR_FD
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10965
___
___
Python-bugs-list
Eric Snow added the comment:
FWIW, I'm working toward making **kwargs an OrderedDict. First step: issue
#16991
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16276
___
Eric Snow added the comment:
At present, I don't see a need to make the C API public.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15003
___
Serhiy Storchaka added the comment:
Thank you for contribution.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8745
Ned Deily added the comment:
For some reason in your build, the first bootstrap use of the compiler (to
generate the sysconfig data) is failing because the runpy module can't be
found. Python should be able to find it in the source directory; the Could
not find platform dependent libraries
Serhiy Storchaka added the comment:
Committed with a test. Thank you, Matthew.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9669
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9669
Serhiy Storchaka added the comment:
Here is an updated patch. Updated documentation, added checks that logout
executed after a with statement, now logout() can be called inside a with
statement.
--
Added file: http://bugs.python.org/file29091/imaplib_with_3.patch
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +brett.cannon, ncoghlan
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14905
___
Serhiy Storchaka added the comment:
This can significant slowdown zipimport. I think we shouldn't support such
broken zip files in zipimport.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14905
Gennadiy Zlobin added the comment:
Hi, here's the patch. Should I provide patches for other branches?
--
keywords: +patch
nosy: +gennad
Added file: http://bugs.python.org/file29092/17203.patch
___
Python tracker rep...@bugs.python.org
Chris Jerdonek added the comment:
Thanks, one patch should be fine, though the change should be applied to all
branches.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17203
___
New submission from Zachary Ware:
test_format is an interesting case in the ongoing test discovery conversion.
It already uses unittest.main(), but still has test_main(), and discovery seems
to work fine on Linux. On Windows, however, test_format and test_non_ascii
both fail with a
Roundup Robot added the comment:
New changeset 3b93ab8c9c20 by Eric Snow in branch 'default':
Issue #15022: Add pickle and comparison support to types.SimpleNamespace.
http://hg.python.org/cpython/rev/3b93ab8c9c20
--
nosy: +python-dev
___
Python
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15022
Roundup Robot added the comment:
New changeset 4e985a96a612 by Antoine Pitrou in branch 'default':
Issue #17170: speed up PyArg_ParseTuple[AndKeywords] a bit.
http://hg.python.org/cpython/rev/4e985a96a612
--
nosy: +python-dev
___
Python tracker
New submission from Chris Jerdonek:
This issue is to add to argparse's add_mutually_exclusive_group() method
support for passing a title and description. From the argparse docs:
Note that currently mutually exclusive argument groups do not support the
title and description arguments of
Roundup Robot added the comment:
New changeset e4c065b2db49 by Eric Snow in branch 'default':
Issue #15022: Ensure all pickle protocols are supported.
http://hg.python.org/cpython/rev/e4c065b2db49
--
___
Python tracker rep...@bugs.python.org
Eric Snow added the comment:
I've yanked the __weakref__ attr--apparently builtins don't have them. I've
also update the test. Is the updated test sufficient? I expect that if
weakref.ref(ns) works, the rest of the weakref functionality works as well.
--
Added file:
Nick Coghlan added the comment:
How common are such broken zip files? Like Serhiy, I'm concerned about the
possible negative impact on the interpreter startup time as we try to second
guess the contents of the zip file manifest.
It seems better to be explicit that we consider such zipfiles
Nick Coghlan added the comment:
OTOH, the scan time should be short relative to the time needed to read the
manifest in the first place - an appropriate microbenchmark may also be
adequate to address my concerns.
--
___
Python tracker
R. David Murray added the comment:
I doubt that 2048 is safer than 1024 for any meaningful value of safer. Either
the sever respects the rfc limits or it does not. If it does not, it is
likely to send very long text lines if the sending mua generates them, which I
suspect happens.
Eric Snow added the comment:
Looking this over, it seems like there were outstanding objections to adding
this to the devguide and to the content. I still think the devguide is the
right place and that something like my second patch would be appropriate.
Before I take any time to update the
Eric Snow added the comment:
I've posted to python-dev about this:
http://mail.python.org/pipermail/python-dev/2013-February/124114.html
At the very least the pickle docs deserve some mention of the behavior. That
way people won't need to spend as much time trying to figure out why things
Eric Snow added the comment:
One proposal would lead to the sys module growing descriptors:
http://mail.python.org/pipermail/python-ideas/2013-January/019075.html
In that case, sys.modules could update the underlying interp-modules.
--
___
Python
Eric Snow added the comment:
+1 on just getting it done with ModuleNotFoundError. FWIW, I'd be glad to do
it. I'm taking a self-imposed break from the nearly finished C-OrderedDict!
--
___
Python tracker rep...@bugs.python.org
David Lam added the comment:
Here's a patch which converts all the Doxygen comments in ElementTree.py to
docstrings!
Something I noticed was that the
from _elementtree import *
...at the bottom of ElementTree.py sort of overwrites the docstrings of the
Python module. So if you did...
Stefan Behnel added the comment:
Updated patch to also fix a little typo in the docstring (lower case python).
--
Added file: http://bugs.python.org/file29096/inspect_sig_3.patch
___
Python tracker rep...@bugs.python.org
74 matches
Mail list logo