Charles-François Natali neolo...@free.fr added the comment:
I think that the problem is that fdopendir() is not defined. If a function is
not defined, C uses int as the result type. An int is not enough to store a
64-bit pointer. See in gdb output: dirp is 0x0afb0e80 whereas other pointers
STINNER Victor victor.stin...@haypocalc.com added the comment:
I tried AC_DEFINE(_POSIX_C_SOURCE, 200809L, Define to activate features
from IEEE Stds 1003.1-2008) but it doesn't work.
You mean that the patch you attached doesn't work, correct?
I ran autoconf, re-ran configure and it
STINNER Victor victor.stin...@haypocalc.com added the comment:
Would it be better to put this note in a different place?
You may just say that StreamReader.readline() uses unicode.splitlines(), and so
point to unicode.splitlines() doc (use :meth:`unicode.splitlines` syntax).
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
components: +Unicode
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12855
___
Changes by honglei jiang jhong...@gmail.com:
--
nosy: +honglei.jiang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7171
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
I think that we should process in two steps:
* Expose low level C functions
* Write a high level reusing the best low level function depending on the OS
Low level functions:
* Expose clock_gettime() into the time module, with
STINNER Victor victor.stin...@haypocalc.com added the comment:
Note: it would be very pratical if time.monotonic() has always the same unit on
all platforms. clock_gettime() uses seconds (and nanoseconds), time.clock()
uses also seconds.
--
___
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12857
___
___
Python-bugs-list
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12850
___
___
Python-bugs-list
Remi Pointel pyt...@xiri.fr added the comment:
Hi,
this is the result of gcc -E on Modules/posixmodule.o, asked by haypo.
Thanks for your help,
Cheers,
Remi.
--
Added file: http://bugs.python.org/file23072/gcc-E-Modules_posixmodule_output
___
Nick Coghlan ncogh...@gmail.com added the comment:
Nothing specific, just a reflexive C++ induced dislike for linker-accessible
globals in general.
However, while I slightly prefer the function driven API, I wouldn't actively
oppose direct linker access if someone else wanted to check it in
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
The problem with QueryPerformanceCounter is that it drifts. It has high
resolution, but can drift far out of sync with GetTickCount64.
The best solutions on windows combine the two, but that's tricky to impolement.
QPC will wrap,
Nick Coghlan ncogh...@gmail.com added the comment:
The pep380 branch in my bitbucket repo has been updated with the refactored
tests that Ryan Kelly put together at the PyconAU sprints (as well as being
brought up to speed with 3.x tip).
The update depends on the new dis.get_opinfo() API
Armin Rigo ar...@users.sourceforge.net added the comment:
Ok, I followed Nick's suggestion, and I finally found out how to write the code
in order to avoid all (or most?) deadlocks without any change in the rest of
CPython. It requires a way to be sure that some callback function is invoked
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 326a7e44bb66 by Éric Araujo in branch '3.2':
Make bdist_* commands respect --skip-build passed to bdist (#10946)
http://hg.python.org/cpython/rev/326a7e44bb66
New changeset 2f69b4f3df2e by Éric Araujo in branch
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4ff92eb1a915 by Éric Araujo in branch '2.7':
Make bdist_* commands respect --skip-build passed to bdist (#10946)
http://hg.python.org/cpython/rev/4ff92eb1a915
--
___
Meador Inge mead...@gmail.com added the comment:
That is a good question. While it is true that errors other than
'PyExc_OverflowError', will be mapped onto a 'TypeError' I don't think that is
a bad thing. Any errors that come out of 'PyFloat_AsDouble' should be handled
on a case-by-case
New submission from STINNER Victor victor.stin...@haypocalc.com:
A salt doesn't need to be strong random bits, but I'm not sure that Mersenne
Twister is a best candidate to generate salt. It would be nice to use
ssl.RAND_pseudo_bytes() if available.
Problem: implement random.choice() from a
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +jafo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12858
___
___
Python-bugs-list mailing list
STINNER Victor victor.stin...@haypocalc.com added the comment:
Before trying to find the best (CS)PRNG, can't we start with ssl.RAND_bytes()
and ssl.RAND_pseudo_bytes()? I would be nice to use ssl.RAND_pseudo_bytes() to
generate crypt.mksalt(): see issue #12858
--
Matthew Boehm boehm.matt...@gmail.com added the comment:
I can fix the patch to list all the unicode line boundaries. The three places
I've considered putting it are:
1. On the howto/unicode.html
2. Somewhere in the stdtypes.html#typesseq description (maybe with other notes
at the bottom)
Éric Araujo mer...@netwok.org added the comment:
I simplified my patch and pushed it. I had to discover again that I needed to
inject customized command objects into dist.command_obj, like you found out a
few months ago when we had a private email discussion :)
Using set_undefined_options
Éric Araujo mer...@netwok.org added the comment:
Great! Feel free to ask any questions here or through the core-mentorship
mailing list. Remember to read the devguide and work from a Mercurial clone of
Python 3.2. Thanks!
--
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
1. On the howto/unicode.html
2. Somewhere in the stdtypes.html#typesseq description (maybe with other
notes at the bottom)
3. As a note to the stdtypes.html#str.splitlines method description (where it
is in the previous
Éric Araujo mer...@netwok.org added the comment:
Even thought bdist_rpm is gone from distutils2, this is a bug that can be fixed
in distutils. Adding the easy keyword to let potential contributors find this
bug; hint: look at how bdist_dumb registers distributions with dist.dist_files.
Éric Araujo mer...@netwok.org added the comment:
Does it work if you replace r with result?
--
versions: -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12853
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: -eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9041
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, haypo
versions: +Python 3.3 -Python 2.6, Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1215
Terry J. Reedy tjre...@udel.edu added the comment:
My understanding is that what you did:
import xml.parsers.expat
is now the proper way to use expat. After some searching, it seems the sentence
about direct use of pyexpat being deprecated refers to
Terry J. Reedy tjre...@udel.edu added the comment:
This seems to be a Mac-only issue.
Barry, does this seem to be a security issue to you, or should we delete 2.6
from the versions?
--
assignee: - ronaldoussoren
components: +Macintosh
nosy: +barry, ned.deily, ronaldoussoren
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file23074/8a0e40f4f004.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12555
___
Antoine Pitrou pit...@free.fr added the comment:
Here is a new patch implementing the latest PEP changes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12555
___
New submission from Albert Zeyer alb...@googlemail.com:
Modules/readline.c 's `call_readline` doesn't release the GIL while reading.
--
messages: 143226
nosy: Albert.Zeyer
priority: normal
severity: normal
status: open
title: readline implementation doesn't release the GIL
versions:
New submission from Lang Martin lang.mar...@gmail.com:
on line 765 of client/http.py, the client loops over the read method, sending
it's content to the web server. It appears as though the send method should
return at this point; instead it falls through and attempts to send the data
object
Albert Zeyer alb...@googlemail.com added the comment:
Whoops, sorry, invalid. It doesn't need to. It is handled in PyOS_Readline.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Albert Zeyer alb...@googlemail.com:
In Parser/myreadline.c PyOS_Readline uses a single lock (`_PyOS_ReadlineLock`).
I guess it is so that we don't have messed up stdin reads. Or are there other
technical reasons?
However, it should work to call this function from multiple
New submission from Daniel Fortunov pythonbugtrac...@danielfortunov.com:
ConfigParser does not implement comments need to be preceded by a whitespace
character correctly and in most cases will treat a value beginning with a
comment character as a comment, even though it is not preceded by a
Changes by Brett Cannon br...@python.org:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12844
___
___
Python-bugs-list
Albert Zeyer alb...@googlemail.com added the comment:
Ok, it seems that the Modules/readline.c implementation is also not really
threadsafe... (Whereby, I think it should be.)
--
___
Python tracker rep...@bugs.python.org
Changes by Charles-François Natali neolo...@free.fr:
--
resolution: - invalid
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1462440
New submission from GPU Group gpugr...@gmail.com:
Py32 Lib xml.dom.minidom usage feedback overrides
I like the minidom. I use it -and over-ride the Element.writexml() and
_write_data() methods for a few of my Blender.org B259 personal export scripts
to formats:
.x3d - a www.web3d.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4aa00f465b4f by Amaury Forgeot d'Arc in branch '2.7':
Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
http://hg.python.org/cpython/rev/4aa00f465b4f
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5df1609fbd8f by Amaury Forgeot d'Arc in branch '3.2':
Issue #9651: Fix a crash when ctypes.create_string_buffer(0) was passed to
http://hg.python.org/cpython/rev/5df1609fbd8f
New changeset d8c73a7d65f8 by Amaury
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5e23532f694d by Amaury Forgeot d'Arc in branch '3.2':
Issue #11241: subclasses of ctypes.Array can now be subclassed.
http://hg.python.org/cpython/rev/5e23532f694d
--
nosy: +python-dev
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9651
STINNER Victor victor.stin...@haypocalc.com added the comment:
def handler(signal, stackframe):
print OUCH
stdout.flush()
_exit(1)
What do you want to do on a SIGSEGV? On a real fault, you cannot rely on
Python internal state, you cannot use any Python object. To handle a real
New submission from simohe sim...@besonet.ch:
When the current module is in a package and imports submodules, the following
lines are converted to illegal code.
-import sub.subsub
+from . import sub.subsub
-import sub, sub.subsub, sub2
+from . import sub, sub.subsub, sub2
A valid
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
resolution: accepted - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11241
New submission from Andrey Men menan...@gmail.com:
In russian windows seven SP1, x32, installed from 2.7.1/2.7.2 MSI installer:
import SimpleHTTPServer
Traceback (most recent call last):
File pyshell#0, line 1, in module
import SimpleHTTPServer
File C:\Python\lib\SimpleHTTPServer.py,
New submission from Peder Jørgensen peder.jorgen...@gmail.com:
Hi,
I'm working with audio in python 2.7 and I needed Audioop to work with
24bit files, it currently only supports 8 16 and 32 bit sound files.
(24bit files are very common in the audio world)
My brother knows c quite well, so he
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This is a duplicate of issue9291.
--
nosy: +amaury.forgeotdarc
resolution: - duplicate
status: open - closed
superseder: - mimetypes initialization fails on Windows because of non-Latin
characters in registry
Ned Deily n...@acm.org added the comment:
This is the same issue as highlighted by Issue6676. The root cause is
attempting to reuse a parser instance and that is known to not work with the
version of expat included with Python. Whether the test program crashes with a
memory access violation
Ned Deily n...@acm.org added the comment:
I agree that, at a minimum, the documentation should be updated to include a
warning about not reusing a parser instance. Whether it's worth trying to plug
all the holes in the expat library is another issue (see, for instance,
issue12829). David,
Ned Deily n...@acm.org added the comment:
Also, note issue1208730 proposes a feature to expose a binding for
XML_ParserReset and has the start of a patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6676
Martin Pool m...@sourcefrog.net added the comment:
On 31 August 2011 07:56, STINNER Victor rep...@bugs.python.org wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
def handler(signal, stackframe):
print OUCH
stdout.flush()
_exit(1)
What do you want to do
Matthew Boehm boehm.matt...@gmail.com added the comment:
I've attached a patch for 2.7 and will attach one for 3.2 in a minute.
I built the docs for both 2.7 and 3.2 and verified that there were no warnings
and that the resulting web pages looked okay.
Things to consider:
* Placement of
Changes by Matthew Boehm boehm.matt...@gmail.com:
Added file: http://bugs.python.org/file23077/linebreakdoc.v2.py32.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12855
___
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12409
___
___
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11176
___
___
Meador Inge mead...@gmail.com added the comment:
Thanks a lot for committing this for me Amaury.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11241
___
New submission from Jordan Meyer jordanmeyer1...@gmail.com:
In trying to use the linecache.getline() function to extra data from a
plain-text database format that I'm building. Every time I make a call to it
(even from the interpreter directly) I get an error like the one below. I
believe the
Eric Snow ericsnowcurren...@gmail.com added the comment:
Thanks for the review, Nick. I'll be uploading a new patch in a couple hours
with your recommended fixes.
Regarding the comments on python-ideas, would it be better to use a weakref
proxy around the function, to help with the reference
Eric Snow ericsnowcurren...@gmail.com added the comment:
On second thought, I probably won't be able to get an updated patch tonight. I
need to mull over the PyEval_EvalFunction implementation and the interaction
with fast_function.
--
___
Python
63 matches
Mail list logo