[issue5023] Segfault in datetime.time.strftime("%z")

2009-01-27 Thread Neal Norwitz
Neal Norwitz added the comment: Can you debug this problem any further? What is the C call stack? Does the problem occur if you build in debug mode (./configure --with-pydebug)? Does the problem occur with a different compiler (if you have access to another one on the same box)? -- n

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread Guido van Rossum
Guido van Rossum added the comment: I'm sorry, but I don't see a significant difference between $10 and $10.00. If you want to display a certain number of digits, use "%.2f" % x. And trust me, I'm not doing this for Fortran's sake. ___ Python tracker

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread David W. Lambert
David W. Lambert added the comment: The value of one of the arguments controls how many digits there are. Certainly if you rounded $10 to the nearest cents you'd expect $10.00. Thus round(10,2) should be 10.00. Without using decimal module, the best we can do is produce 10.0. I'd apply a si

[issue5086] set_daemon does not exist in Thread

2009-01-27 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> duplicate status: open -> closed superseder: -> set_daemon does not exist in Thread ___ Python tracker ___ _

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread Guido van Rossum
Guido van Rossum added the comment: Well, that would leave a function whose return *type* depends on the *value* of one of the arguments, which I find very ugly. I don't know why you think rounding an int to X (X>0) digits after the decimal point should return a float -- it's not like the int h

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread David W. Lambert
David W. Lambert added the comment: I'd prefer round(x,positive_integer) return float. Returning int is a bit of a lie, except that the decimal module is available to avoid this sort of lie. For non-positive integer roundings I'd like an integer return. In my opinion, we'd benefit from this

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread Guido van Rossum
Guido van Rossum added the comment: I think it's fine if it returns an int iff the first arg is an int. In other languages this would be overloaded as follows: round(int)int round(float)float round(int, int)int round(float, int)float -- assignee: gvanrossum -> __

[issue5076] bdist_wininst fails on py3k

2009-01-27 Thread Mark Hammond
Mark Hammond added the comment: Attaching an updated patch against the py3k branch which makes no attempt to work on py2k. Added file: http://bugs.python.org/file12886/wininst_py3k.patch ___ Python tracker

[issue4111] Add DTrace probes

2009-01-27 Thread Ted Leung
Ted Leung added the comment: I didn't run auto(re)conf. After I did that, all was well. However, the ustack provider doesn't appear to be working correctly. I tried running the py_profile.d from the DTrace toolkit, and it doesn't show any stack traces, and when the script starts up it

[issue5084] unpickling does not intern attribute names

2009-01-27 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Oh, you are right. I was looking at py3k's version of pickle, which uses PyDict_Update instead of a while loop; that is why I got confused. ___ Python tracker

[issue5084] unpickling does not intern attribute names

2009-01-27 Thread Jake McGuire
Jake McGuire added the comment: Are you sure? I may not have enough context in my diff, which I should have done against an anonymous svn checkout, but it looks like the slot attributes get set several lines after my diff. "while (PyDict_Next(slotstate, ...))" as opposed to the "while

[issue5084] unpickling does not intern attribute names

2009-01-27 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The patch for cPickle doesn't do the same thing as the pickle one. In the cPickle one, you are only interning slot attributes, which, I believe, is not what you intended. :-) -- assignee: -> alexandre.vassalotti nosy: +alexandre.vassalotti _

[issue5075] bdist_wininst should not depend on the vc runtime?

2009-01-27 Thread Mark Hammond
Mark Hammond added the comment: Thanks for the merging advice! The patch to the build system is indeed trivial - unfortunately it also failed to work correctly due to install.c using freopen, a CRT function, to redirect the output. Interestingly, this probably means that if someone attempted t

[issue5087] set_daemon does not exist in Thread

2009-01-27 Thread Michael Newman
New submission from Michael Newman : This is related to: http://bugs.python.org/issue3628 http://bugs.python.org/issue4808 I found in the example at the bottom of: http://docs.python.org/3.0/library/queue.html "t.set_daemon(True)" won't work. Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v

[issue5086] set_daemon does not exist in Thread

2009-01-27 Thread Michael Newman
New submission from Michael Newman : This is related to: http://bugs.python.org/issue3628 http://bugs.python.org/issue4808 I found in the example at the bottom of: http://docs.python.org/3.0/library/queue.html "t.set_daemon(True)" won't work. Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido, do you have any thoughts on this? Basically, it's a choice between giving round() a weird signature (sometimes returning floats and sometimes int/longs) versus having accurate roundings of integers (which become unrepresentable when divided by powers

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: > > Do you have an HTTP proxy? running at the *same* port? > (!) > > I dont understand this since *I already said* that *I > accessed* my Trac > environment using my web browser (Opera 9.63, I dont know > whether this > is relevant at all ... ), *I sent yo

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-27 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: As far as Twisted is concerned, the two cases Tarek mentioned aren't really relevant. In order for Zooko's use case to be handled ("install Twisted on an OLPC"), what would be ideal is if there were a way to tell distutils about an extension which is optio

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-27 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Tarek: Yes, failure to build an extension module for any reason should definitely cause "build" to fail by default. However, many Python packages seem to come with optional extension modules, typically for a performance speed-up. simplejson, zope.interfa

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-27 Thread Mark Hammond
Mark Hammond added the comment: Checked in to the trunk as as r69038 and svnmerge'd: * release26-maint as 69040 * py3k as 69041 * release30-maint as 69043 -- resolution: accepted -> fixed status: open -> closed ___ Python tracker

[issue4111] Add DTrace probes

2009-01-27 Thread Skip Montanaro
Skip Montanaro added the comment: Ted> I tried building this on my Mac and got this; Forgive me if I'm preaching to the choir here. Did you run autoconf or autoreconf after applying the patch? If not, @DTRACEOBJS@ would not be a substitutable string. It's fairly common (at least in the Pytho

[issue5084] unpickling does not intern attribute names

2009-01-27 Thread Jake McGuire
Changes by Jake McGuire : Added file: http://bugs.python.org/file12882/cPickle.c.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5084] unpickling does not intern attribute names

2009-01-27 Thread Jake McGuire
Changes by Jake McGuire : Removed file: http://bugs.python.org/file12879/cPickle.c.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5084] unpickling does not intern attribute names

2009-01-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: Either my browser got crazy, or you uploaded the same patch (.py) twice. -- nosy: +gagenellina ___ Python tracker ___ ___

[issue5079] time.ctime docs refer to "time tuple" for default

2009-01-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: It's already fixed in 2.6, 2.7 and 3.0 I'm unsure of 2.5 status regarding documentation updates. -- assignee: -> georg.brandl components: +Documentation -Library (Lib) nosy: +gagenellina, georg.brandl versions: -Python 3.0

[issue5077] 2to3 fixer for the removal of operator functions

2009-01-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Review: The mappings should become static to the class or module. The repeat2mul case doesn't handle prefixes. -- nosy: +benjamin.peterson versions: +Python 2.6, Python 2.7 ___ Python tracker

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-27 Thread Mark Hammond
Mark Hammond added the comment: ack - I mis-clicked and accidentally removed message78811 and can't see how to reinstate it. The message isn't critical, but I'm sorry about that! ___ Python tracker

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-27 Thread Mark Hammond
Changes by Mark Hammond : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-b

[issue5085] distutils/test_sdist failure on windows

2009-01-27 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : test_sdist fails on windows with following message. http://www.python.org/dev/buildbot/trunk.stable/x86%20XP-4% 20trunk/builds/1823/step-test/0 == ERROR: test_make_distribution (distutils

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Someone ought to ping Guido on this. He may have some strong thoughts on the signature (having it sometimes return ints and sometimes floats). But in this case, accuracy may be the more important consideration. ___ Pytho

[issue3997] zipfile and winzip

2009-01-27 Thread Brett Cannon
Brett Cannon added the comment: Amaury, did the buildbots verify this worked and thus this bug can be closed? -- nosy: +brett.cannon ___ Python tracker ___ __

[issue4111] Add DTrace probes

2009-01-27 Thread Ted Leung
Ted Leung added the comment: I tried building this on my Mac and got this; ar cr libpython2.7.a Python/_warnings.o Python/Python-ast.o Python/ asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/ compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/ frozenmain.o Python

[issue5084] unpickling does not intern attribute names

2009-01-27 Thread Jake McGuire
Changes by Jake McGuire : Added file: http://bugs.python.org/file12880/pickle.py.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5084] unpickling does not intern attribute names

2009-01-27 Thread Jake McGuire
New submission from Jake McGuire : Instance attribute names are normally interned - this is done in PyObject_SetAttr (among other places). Unpickling (in pickle and cPickle) directly updates __dict__ on the instance object. This bypasses the interning so you end up with many copies of the st

[issue4753] Faster opcode dispatch on gcc

2009-01-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'll take on the two remaining tasks for this: * add configure magic to detect when the compiler supports this so that it can default to --with-computed-gotos on modern systems. * commit the back port to 2.7 trunk. -- assignee: -> gregory.p.smith

[issue3997] zipfile and winzip

2009-01-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file11850/zip-64k-2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue3997] zipfile and winzip

2009-01-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file11841/zip-64k.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12415/round_int_int4.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12414/round_int_int3.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12412/round_int_int2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue4707] round(25, 1) should return an integer, not a float

2009-01-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12407/round_int_int.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue5083] New resource ('gui') for regrtest

2009-01-27 Thread Guilherme Polo
New submission from Guilherme Polo : I would like to add a 'gui' resource in regrtest, this would be nice for the ttk module that I'm planning to do add very soon (after I solve another issue about tests). -- components: Tests files: regrtest_gui_resource.diff keywords: patch messages: 8

[issue874900] threading module can deadlock after fork

2009-01-27 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1717] Get rid of more references to __cmp__

2009-01-27 Thread Mark Dickinson
Mark Dickinson added the comment: Stage 1 committed in r69025 (py3k) and r69026 (release30-maint). ___ Python tracker ___ ___ Python-bugs-list

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Martin v. Löwis
Martin v. Löwis added the comment: I agree that this shouldn't be added to Python. At a minimum, it is clear that there is too much opposition to such a feature that the bug tracker is an inappropriate medium to discuss it. If you want to pursue this idea, discuss it on python-ideas, and, if th

[issue5081] Unable to print Unicode characters in Python 3 on Windows

2009-01-27 Thread Martin v. Löwis
Martin v. Löwis added the comment: Your 2.6 example is incorrect. Try py> print u'\u20ac' If you want the 3.0 equivalent of your 2.6 code: it is py> print(r'\u20ac') \u20ac Closing this as "works for me". -- nosy: +loewis resolution: -> works for me status: open -> closed

[issue5048] Extending itertools.combinations

2009-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Correction to earlier statement. It should have read: Guido disallowed returning a len method on iterators. He expected bool(it) to be always be True. ___ Python tracker _

[issue1754] WindowsError messages are not properly encoded

2009-01-27 Thread Ulrich Eckhardt
Changes by Ulrich Eckhardt : -- nosy: +eckhardt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5075] bdist_wininst should not depend on the vc runtime?

2009-01-27 Thread Martin v. Löwis
Martin v. Löwis added the comment: > My apologies for not being more on top of this, but I couldn't find the > answer in the developer FAQ. This question applies to issue 4566 and > will partially apply to issue 5076. The patches are against the trunk - > after checking in, what action should

[issue5076] bdist_wininst fails on py3k

2009-01-27 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Good question! I'm not really aware of the complexities involved in > merging between the various branches, but given the fairly trivial > nature of the patch I figured there were potential advantages in both > identical source and stubs. I'm happy to work

[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2009-01-27 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: On Tue, Jan 27, 2009 at 12:35 PM, James Cooper wrote: > This may not be a show-stopping bug, but it's non-obvious, annoying, > unnecessary, and very easy to fix. Any chance of getting this into a > release? Considering that the issue is idle for such a

[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2009-01-27 Thread James Cooper
James Cooper added the comment: Our company recently rediscovered this bug in 2.5.2. After a couple hours of debugging, we realized the error message was incorrect and found the bug in the destinsrc function. This may not be a show-stopping bug, but it's non-obvious, annoying, unnecessary, and

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Not being able to figure out where a name came from easily is worse than having to type out the import statement. This feature would negatively impact readability of Python source significantly. -- nosy: +exarkun _

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Andrea Corbellini
Andrea Corbellini added the comment: Well, writing every time 'from X import Y' looks to me uncomfortable. But of course what I'm asking is not essential :-) ___ Python tracker ___ __

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread STINNER Victor
STINNER Victor added the comment: Please, don't do that! Why not using "from framework import debug"? Working example: "from logging import debug". I hate namespace polution and all global symbols. -- nosy: +haypo ___ Python tracker

[issue4111] Add DTrace probes

2009-01-27 Thread John Levon
Changes by John Levon : -- nosy: +movement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Andrea Corbellini
Changes by Andrea Corbellini : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Andrea Corbellini
New submission from Andrea Corbellini : Most of the Python frameworks have some functions and classes that are widely used. For example a 'log.debug' function will be used in almost all modules. It is inconvenient to write 'import log' every time. It would be useful to have a special place (a di

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2009-01-27 Thread Akira Kitada
Akira Kitada added the comment: Any update? Is this patch going to be included in 2.6.x/3.0.x in near future? -- nosy: +tarek ___ Python tracker ___ _

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-27 Thread Olemis Lang
Olemis Lang added the comment: > Quoting Antoine Pitrou ... > I suppose 172.18.2.7:3128 is the address:port of the your proxy, right? Yes ... > In which case, urllib seems to do the right thing. When talking to an HTTP proxy, requests are of the form "GET http://site.com/path";, rather than

[issue1397474] timeit execution enviroment

2009-01-27 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suppose 172.18.2.7:3128 is the address:port of the your proxy, right? In which case, urllib seems to do the right thing. When talking to an HTTP proxy, requests are of the form "GET http://site.com/path";, rather than "GET /path". It's up to the proxy to strip

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2009-01-27 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I've investigated more. I think this is timeout problem. According to following site, http://www.oracle.com/technology/documentation/berkeley- db/db/api_c/rep_timeout.html timeout should be specified in microseconds. This means self.dbenvMaster.rep_set_ti

[issue1293741] doctest runner cannot handle non-ascii characters

2009-01-27 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel : -- nosy: +rbp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-27 Thread Olemis Lang
Olemis Lang added the comment: Actually I am using a proxy hosted in some other machine (i.e. not my PC ... sorry, I didnt mention :S ...) I «debugged» urllib and, when branching at this point (see below ;) in URLopener.open_http : {{{ #!python # urllib,py def open_http(self, url, data=

[issue5081] Unable to print Unicode characters in Python 3 on Windows

2009-01-27 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : While trying to port pyftpdlib to Python 3.x I noticed that Python 3.0 has a serious issue since unable to print certain unicode characters on stdout: Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyrig

[issue5080] PyArg_Parse* should raise TypeError for float parsed with integer format

2009-01-27 Thread Mark Dickinson
New submission from Mark Dickinson : Since Python 2.3, PyArg_ParseTuple and friends give a DeprecationWarning for floating-point arguments where integers are expected. From http://www.python.org/download/releases/2.3/NEWS.txt: - The PyArg_Parse functions now issue a DeprecationWarning if a floa

[issue5048] Extending itertools.combinations

2009-01-27 Thread Mark Dickinson
Mark Dickinson added the comment: I only just noticed the DeprecationWarning that's already happening for float inputs in 2.7. (And float inputs already raise TypeError in 3.1.) So I agree that it's probably not worth it. ___ Python tracker

[issue4673] Distutils should provide an uninstall command

2009-01-27 Thread Andy Buckley
Andy Buckley added the comment: If an uninstall registry is feasible, the it could be neat. The suggested behaviour of unlinking known files based on the source directory is not all that inconvenient: it's by no means perfect, but it has its uses and is familiar to many, since it is how GNU auto

[issue5048] Extending itertools.combinations

2009-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Glad you like it. Will meditate for a bit on the floating point input. My first thought is that it isn't worth going through the __index__ dance to preclude inputs that look odd. ___ Python tracker

[issue5048] Extending itertools.combinations

2009-01-27 Thread Mark Dickinson
Mark Dickinson added the comment: combinations_with_replacement addition looks good. Thank you. I wonder whether the second argument should be constrained to be an integer? I find the following a little surprising: >>> list(combinations_with_replacement(range(5), -0.3)) [()] (same behaviour

[issue5079] time.ctime docs refer to "time tuple" for default

2009-01-27 Thread Tom Lynn
Changes by Tom Lynn : -- components: +Library (Lib) type: -> feature request versions: +Python 2.5, Python 3.0 ___ Python tracker ___

[issue5079] time.ctime docs refer to "time tuple" for default

2009-01-27 Thread Tom Lynn
New submission from Tom Lynn : The docs for time.ctime() (quoted below) seem to have been copied from time.asctime(). They refer to a time tuple and localtime(), where they should refer to seconds and time(). Current docs:: ctime(seconds) -> string Convert a time in seconds since

[issue5032] itertools.count step

2009-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've looked again at what it would take to update the C code and think that the optimizations there make it difficult to add this feature without adding a lot of code complexity and without slowing-down the common case. Also, I value the simplicity of the cu

[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-01-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also r69016 and r69017. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5078] Avoid redundant call to FormatError()

2009-01-27 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt : For a background, see the developers' mailing list from 2009-01-26, subject "FormatError() in callproc.c under win32". The attached patch removes the redundant call to FormatError(). It also makes SetException() a static function, since it is only used locall

[issue5075] bdist_wininst should not depend on the vc runtime?

2009-01-27 Thread Mark Hammond
Mark Hammond added the comment: Ironically I just received personal mail: """I have downloaded pywin32_212 [2.6] three times today. the download completes successfully. but on running the pywin installer i repeatedly get an error.""" Attached is a screen-shot of the error dialog "pywin32-212-w

[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: r69014 and r69015. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyt

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-27 Thread Takeshi Matsuyama
Takeshi Matsuyama added the comment: >From msg80438 >You should reset it by self.data = '' at end_element(). It seems that we should reset it at start_element() like this, def start_element(self, name, attrs): ...abbr... if name == 'link': self.data = '' ===

[issue5076] bdist_wininst fails on py3k

2009-01-27 Thread Mark Hammond
Mark Hammond added the comment: > Is it really useful to be have the same stub for 2.x and 3.x? > I think it would be better if they mutually ignore each > other, and be different. Good question! I'm not really aware of the complexities involved in merging between the various branches, but g

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-01-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-01-26 17:56, STINNER Victor wrote: > STINNER Victor added the comment: > > @marketdickinson, @lemburg: ping! I updated the patch, does it look > better? Yes, but there are a few things that still need fixing: * SIZEOF_WCHAR_T is not defined for

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-01-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Note that PyTokenizer_FromString is not an API function: it's not marked with PyAPI_FUNC, and not exported from the windows DLL. ___ Python tracker ___