[issue9621] Graphviz output for 2to3 fixer patterns

2010-09-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Matt, Can you post a sample graph in a common image format, say PNG? I am curious to see it, but not curious enough to install graphviz. -- nosy: +belopolsky ___ Python tracker <http://bugs.python.

[issue9860] Building python outside of source directory fails

2010-09-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Does this apply to 2.7 too? I think it does, but it would be hard to sell any improvements in this area as a bug fix. -- ___ Python tracker <http://bugs.python.org/iss

[issue9866] Inconsistencies in tracing list comprehensions

2010-09-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have found the root cause of these differences. The trace function is not called when the opcode is successfully predicted. When computed gotos are enabled, opcode prediction is disabled as explained in the following comment in ceval.c: Opcode

[issue9913] Misc/SpecialBuilds.txt is out of date

2010-09-21 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : It looks like Misc/SpecialBuilds.txt has not been updated since 2.4. This file is referenced from C-API documentation [1], but is not accessible as a hyperlink. Some of the recommendations in this file are out of date, in particular those that

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

2010-09-21 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The main() method of trace and profile modules attempt to emulate the environment in which traced code runs when invoked directly, but it fails in several respects. The specific problem which is the subject of this issue is that while __name__ is

[issue766910] fix one or two bugs in trace.py

2010-09-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file8481/unnamed ___ Python tracker <http://bugs.python.org/issue766910> ___ ___ Python-bugs-list m

[issue766910] fix one or two bugs in trace.py

2010-09-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue766910> ___ ___ Python-bugs-lis

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2010-09-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +ncoghlan, terry.reedy ___ Python tracker <http://bugs.python.org/issue9325> ___ ___ Python-bugs-list mailing list Unsub

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2010-09-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Sep 22, 2010 at 9:39 AM, Jason R. Coombs wrote: > .. It appears __getinitargs__ does not work on Python 2.5 or Python 2.7. Yes, __getinitargs__ is only used for old style classes. I was wrong on that point. > Exceptions of the fol

[issue9919] gdbinit lineno result is one line in excess

2010-09-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Demos and Tools versions: +Python 3.2 -Python 2.5 ___ Python tracker <http://bugs.python.org/issue9919> ___ ___

[issue6608] asctime does not check its input

2010-09-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch looks good to me. Just a few nitpicks: the local convention seems to be no underscores in helper functions such as gettmarg. I would call is_valid_tm, "checktm" instead. Also, predicate-like naming (is_...) suggests a function wi

[issue9936] trace misreports "missing" lines

2010-09-23 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : With the attached traceme.py, $ python -m trace -m -s -c traceme.py lines cov% module (path) 250% traceme (traceme.py) $ cat traceme.cover x = (1, >>>>>> 2, 1: 3) This is wrong because all l

[issue9936] trace misreports "missing" lines

2010-09-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch that fixes this issue. Need to add a unit test. -- assignee: -> belopolsky components: +Library (Lib) keywords: +patch stage: -> unit test needed type: -> behavior versions: +Python 3.2 Added f

[issue9936] trace misreports "missing" lines

2010-09-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +eli.bendersky, terry.reedy ___ Python tracker <http://bugs.python.org/issue9936> ___ ___ Python-bugs-list mailin

[issue9936] trace misreports "missing" lines

2010-09-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue9936> ___ ___ Python-bugs-list mailin

[issue9936] trace misreports "missing" lines

2010-09-24 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: unit test needed -> commit review Added file: http://bugs.python.org/file18998/issue9936a.diff ___ Python tracker <http://bugs.python.org/iss

[issue9941] Unify trace and profile interfaces

2010-09-24 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The trace and profile modules provide similar functionality, but have some gratuitous differences in their APIs and command line interfaces. For example, the method to trace a single call is Trace.runfunc, but almost identical Profile method is

[issue9941] Unify trace and profile interfaces

2010-09-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The runfunc/runcall difference is the easiest to address. I propose to add runcall to Trace as an alias to runfunc and deprecate runfunc. In addition, I propose to add __enter__ and __exit__ methods to both Trace and Profile so that they can be used

[issue6608] asctime does not check its input

2010-09-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: MunSic, Your patch does not apply cleanly to the py3k branch. Please not that new features can only go to py3k. While some may argue that this issue is a bug, I think it is more likely that it will only be accepted for 3.2. In any case, a py3k

[issue6608] asctime does not check its input

2010-09-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Hmm, it looks like issue6608-timemodule-2nd.patch is a patch on top of your previous patches. I'll check if I can apply last three patches in order. -- ___ Python tracker <http://bugs.python.org/i

[issue6608] asctime does not check its input

2010-09-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: No, it looks like the starting patch is against 2.7. We need a py3k patch. Meanwhile, I've noticed a couple of grammatical mistakes in comments: "strftime(), asctime() does not" -> "strftime() and asctime() do not" "fi

[issue9936] trace misreports "missing" lines

2010-09-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Fixed in r84994, r84995 (3.1) and r84996 (2.7). -- resolution: -> fixed stage: commit review -> committed/rejected ___ Python tracker <http://bugs.python.org/

[issue9936] trace misreports "missing" lines

2010-09-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Sep 26, 2010 at 5:47 PM, Arfrever Frehtes Taifersar Arahesis wrote: .. > > test_issue9936 fails on 2.7 branch. Should be fixed by r85020. Thanks. -- ___ Python tracker <http://bugs.p

[issue9941] Unify trace and profile interfaces

2010-09-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I've ran into a problem adding context manager functionality to Profile/Trace objects. When profile/trace function is set in __enter__ and removed in __exit__ it catches two spurious events: a return from __enter__ and a call to __exit__. Th

[issue6608] asctime does not check its input

2010-10-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed with minor changes in r85137. Thanks for the patch! -- resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue4775] Incorrect documentation - UTC time

2010-10-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Based on the discussion so far, I am going to close this as "invalid". -- assignee: georg.brandl -> belopolsky resolution: -> invalid status: open -> pending ___ Python tracker <

[issue7789] Issue using datetime with format()

2010-10-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The original bug report is invalid and the documentation issue is a duplicate of #8913. -- nosy: +belopolsky resolution: -> duplicate superseder: -> Document that datetime.__format__ is datetime.st

[issue7789] Issue using datetime with format()

2010-10-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue7789> ___ ___ Python-bugs-list mailing list Un

[issue10021] Format parser is too permissive

2010-10-04 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : According to the Format String Syntax section [1], attribute_name must be an identifier. However, the parser does not catch a violation of this rule and happily passes non-indentifier strings to getattribute: >>> class X: ...def __getat

[issue10021] Format parser is too permissive

2010-10-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: PEP 3101 has the following """ Implementation note: The implementation of this proposal is not required to enforce the rule about a simple or dotted name being a valid Python identifier. Instead, it will rely on the geta

[issue10021] Format parser is too permissive

2010-10-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> d...@python components: +Documentation -Interpreter Core nosy: +d...@python ___ Python tracker <http://bugs.python.org/issu

[issue10021] Format parser is too permissive

2010-10-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 4, 2010 at 1:02 PM, Eric Smith wrote: .. > Ah, but I don't need to in order to comply with the PEP! This is true and this is the reason I changed this issue from bug to doc. I seem to remember this having been discussed befor

[issue9936] trace misreports "missing" lines

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue9936> ___ ___ Python-bugs-list mailing list Un

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am afraid, for ordinary scripts these modules effectively use option 3. I think these modules should remove its own scaffolding from "real" __main__ before loading any traced code. I am not sure how this can be achiev

[issue7980] time.strptime not thread safe

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: MunSic, It looks like issue7980.patch is just a unit test. Do you have a patch to fix the issue? -- ___ Python tracker <http://bugs.python.org/issue7

[issue7980] time.strptime not thread safe

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: RDM> FYI there's been a proposal to create a time.py module anyway RDM> in order to add some pure python functions not worth writing in c. RDM> For reference, it's issue 7989. Issue #7989 was retargeted to deal with datetime module. T

[issue9079] Make gettimeofday available in time module

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue9079> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9528] Add pure Python implementation of time module to CPython

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Aug 12, 2010 at 10:26 PM, STINNER Victor wrote: .. >> 1. Datetime.py time source (time.time()) represents time as >> a floating point number which leads to system dependent behavior >> and introduces floating point operations

[issue7582] Use ISO timestamp in diff.py

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Add aware local time support to datetime module ___ Python tracker <http://bugs.python.org/issue7582> ___ ___

[issue10029] bug in sample code in documentation

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The relevant comment at Stack Overflow is: """ It looks like it's a bug in the documentation. The 'equivalent' code working in python2, but not in python3, where it has an infinite loop. And the latest version of the docu

[issue10029] bug in sample code in documentation

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue10029> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10029] "Equivalent to" code for zip is wrong in Python 3

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that the following variant where maps are replaced with list comprehensions seems to work: def zip(*iterables): # zip('ABCD', '

[issue10029] "Equivalent to" code for zip is wrong in Python 3

2010-10-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: -loewis ___ Python tracker <http://bugs.python.org/issue10029> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10029] "Equivalent to" code for zip is wrong in Python 3

2010-10-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As Daniel pointed out, the "equivalent to" code in builtins section comes from 2.x itertools documentation where and equivalent generator definition is presented for each function. While these definitions are helpful when used for documentin

[issue10029] "Equivalent to" code for zip is wrong in Python 3

2010-10-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Oct 7, 2010 at 3:37 PM, Raymond Hettinger wrote: .. > I'll update the docs with an equivalent that works and that has a comment > showing when the > StopIteration is raised and caught. > In this case, I wonder if "equival

[issue1777412] Python's strftime dislikes years before 1900

2010-10-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: kiorky, Thank you for the updated patch, but since it implements a new feature, it cannot be applied to 2.x series. I am +1 on removing year > 1900 limitation from datetime.strftime in 3.x, but you need to consider how this can be achieved in p

[issue1545463] New-style classes fail to cleanup attributes

2010-10-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Does anyone want to weigh in on this? I am merging in the issue812369 nosy list. I would like to either apply gc-import.patch or close this as superseded by issue812369. -- keywords: +needs review -patch nosy: +arigo, brett.cannon, candrea

[issue4775] Incorrect documentation - UTC time

2010-10-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue4775> ___ ___ Python-bugs-list mailing list Un

[issue9866] Inconsistencies in tracing list comprehensions

2010-10-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue9866> ___ ___ Python-bugs-list mailing list Un

[issue8902] add datetime.time.now() for consistency

2010-10-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I need to correct myself: datetime.today() is not an alternative spelling of date.today(), but rather a function returning current datetime which subtly different from datetime.now(). -- ___ Python tracker

[issue8902] add datetime.time.now() for consistency

2010-10-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: -> needs patch type: -> feature request versions: -Python 2.7, Python 3.1, Python 3.3 ___ Python tracker <http://bugs.python.org/

[issue10073] calendar.isleap() not checking parameter type

2010-10-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I agree with David on this one. In addition to the arguments already stated, the string value of an exception is not part of specification. The exception is still TypeError even if the message may be confusing. I also find that once read in the

[issue10073] calendar.isleap() not checking parameter type

2010-10-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would also like to note the following curiosity: >>> calendar.isleap("%d") False I still don't think there is anything worth fixing here, but we can consider replacing year % 4 == 0 predicate with year & 3 == 0 which will

[issue7980] time.strptime not thread safe

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It seems to me that this is related to if not a duplicate of issue 8098. -- keywords: -patch ___ Python tracker <http://bugs.python.org/issue7

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : $ python3 -m calendar --type=html 2010 Produces HTML which renders into the attached PDF file. It looks like bytes vs. strings issue. -- assignee: belopolsky components: Library (Lib) files: Calendar for 2010.pdf messages: 118532 nosy

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The issue is clearly with using print() for bytes' output: if len(args) == 1: print(cal.formatyearpage(datetime.date.today().year, **optdict)) I am not sure, however how this can be fixed because calendar interface allows us

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Oct 13, 2010 at 12:20 PM, Walter Dörwald wrote: .. > Does the following patch fix your problems? > Probably not because with your patch print() will encode HTML stream with the system default encoding which may be different from that spe

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There is a similar issue with printing text calendar with specified encoding: $ python3 -m calendar --encoding=utf8 b' 2010\n\n .. -- ___ Python tracker

[issue10090] python -m locale fails on OSX

2010-10-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : $ python -m locale Locale aliasing: Locale defaults as determined by getdefaultlocale(): Language: en_US Encoding: UTF8 .. Locale settings after calling resetlocale

[issue10092] calendar does not restore locale properly

2010-10-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : >>> import calendar >>> calendar.TextCalendar().formatmonthname(2010,10,10) 'October 2010' >>> calendar.LocaleTextCalendar(locale='fr_FR').formatmonthname(2010,10,10) 'octobre 2010' >>>

[issue10092] calendar does not restore locale properly

2010-10-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +christian.heimes, georg.brandl ___ Python tracker <http://bugs.python.org/issue10092> ___ ___ Python-bugs-list mailin

[issue10092] calendar does not restore locale properly

2010-10-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +twouters ___ Python tracker <http://bugs.python.org/issue10092> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that .decode(encoding) calls have been deliberately removed in py3k: see issue 3059. -- nosy: +georg.brandl, gpolo ___ Python tracker <http://bugs.python.org/issue10

[issue9005] Year range in timetuple

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85441. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue9005> ___ ___ Python-

[issue10102] mktime adding an hour in April (naive struct)?

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like you have just discovered the joys of daylight saving time. The problem with your example is that datetime(2003,4,6,2,58,17) is not a valid time in your timezone (most likely you are in the US). In the US, prior to 2007, the clocks moved

[issue9527] Add aware local time support to datetime module

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Would anyone like to review this? The Rietveld link works (thanks Martin!) and I would like to get some feedback on the python version before I invest effort into coding this in C. -- ___ Python tracker

[issue9183] Intern UTC timezone

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85485. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue9183> ___ ___ Python-

[issue4086] support %z format in time.strftime and _strptime?

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Closing as a duplicate of (closed) issue 6641. time.strftime appears to support %z on the platforms that support it in C strftime: >>> time.strftime("%z", time.localtime()) '-0400' -- dependencies: -No obvious an

[issue9013] Implement tzinfo.dst() method in timezone

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: After thinking some more about this issue, I am going to withdraw this proposal. If we want to support storing dst flag in datetime instances, it should be stored in the datetime object itself, not in tzinfo. See http://mail.python.org/pipermail

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching an updated patch, issue9308b.diff. Compared to the "a" patch, I added test/encoded_modules to the makefile so that it gets installed and removed cookies from some more test and Tools files. -- Added file: http://bugs.

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85537. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue9308> ___ ___ Python-

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Tools/scripts/reindent.py -d Lib/test/encoded_modules/module_koi8_r.py Traceback (most recent call last): File "Tools/scripts/reindent.py", line 310, in main() File "Tools/scripts/reindent.py", line 93, in main chec

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +christian.heimes, flox, tim_one ___ Python tracker <http://bugs.python.org/issue10117> ___ ___ Python-bugs-list mailin

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have verified that the original issue is still present. I will try to narrow it down to a smaller test case. -- ___ Python tracker <http://bugs.python.org/issue9

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-10-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have found the cause of at least part of the issue. Apparently, module level statements for some of the modules such as pickle do not show up in trace because they are imported by trace itself. In other words, by the time traced script gets

[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Oct 16, 2010 at 1:34 PM, R. David Murray wrote: .. > I yhink you need to add an svnignore property to that directory for > __pycache__. r85576 (I hope I got it right.) -- ___ Python tracker

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 8:45 AM, Benjamin Peterson wrote: .. > No, negative values have to be allowed. > Why? As far as I can tell, negative values are only used as sentinels and we can use say (size_t)-1 instead of -1L. Are there cases wher

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 9:59 AM, Antoine Pitrou wrote: .. >> Why?  As far as I can tell, negative values are only used as sentinels >> and we can use say (size_t)-1 instead of -1L. > > You can, except that changing the sentinel value w

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Issue #9778 makes this out of date. -- assignee: tim_one -> belopolsky nosy: -BreamoreBoy resolution: -> out of date status: open -> pending superseder: -> Make hash values the same width as a pointer (o

[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85695. Leaving open to discuss whether anything can/should be done for the case when reindent acts as an stdin to stdout filter. Also, what is the policy on backporting Tools' bug

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 11:17 AM, Sebastian Ramacher wrote: .. > Any news on that? Is this patch still relevant for 3.2? It looks like const has been added when char* was changed to wchar_t* in the affected functions. See r62

[issue1699259] replacing char* with const char* in sysmodule.c/.h

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In fact, it looks like const has been added in py3k as early as r57439. I am resetting "versions" to 2.7, but I am -0 on backporting. I am also unselecting "type" because with "feature request" type this should be closed

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 11:27 AM, Antoine Pitrou wrote: .. >> The benefit, though is that >> hash computations can be performed natively on the hash values without >> casting to an unrelated type. > > I don't understand

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Oct 17, 2010 at 3:54 PM, Boštjan Mejak wrote: .. > About the  if year == 0  check... Well, read Wikipedia's article   > http://en.wikipedia.org/wiki/0_(year)  which clearly > states that "Year zero does not exist in the wi

[issue10138] calendar module does not support years outside [1, 9999] range

2010-10-18 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Documentation for the calendar module says: """ Most of these functions and classes rely on the datetime module which uses an idealized calendar, the current Gregorian calendar indefinitely extended in both directions. "&quo

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Oct 18, 2010 at 1:25 PM, Case Van Horsen wrote: .. > We either needed to (1) add an unsigned Py_hash_t type or (2) just use size_t > and Py_ssize_t. > Option (2) may actually be preferable because dict and set implementations rely on

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The most pedantic implementation of calendar.isleap() would be from datetime import date, timedelta def isleap(year): return date(year, 3, 1) - date(year, 2, 1) == timedelta(29) Since python calendar only supports years in the range [1, ], the

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't think anything good will come out of this. Closing as "rejected." -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bu

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19267/unnamed ___ Python tracker <http://bugs.python.org/issue10073> ___ ___ Python-bugs-list m

[issue10073] calendar.isleap() not checking parameter type

2010-10-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19268/unnamed ___ Python tracker <http://bugs.python.org/issue10073> ___ ___ Python-bugs-list m

[issue9344] please add posix.getgrouplist()

2010-10-18 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't see how this difference is relevant for exposing the functionality in python: Linux: int getgrouplist(const char *user, gid_t group, gid_t *groups, int *ngroups); MacOS: int getgrouplist(const char *name

[issue3062] Turtle speed() function has no effect under Mac OS X

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a simpler and hopefully more revealing test, speed_test.py. This test repeatedly draws a full circle at various speeds and prints the time spent. Here is the result: # python3.1 speed_test.py 0: 0.03 1: 6.61

[issue3062] Turtle speed() function has no effect under Mac OS X

2010-10-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +gregorlingl ___ Python tracker <http://bugs.python.org/issue3062> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19283/unnamed ___ Python tracker <http://bugs.python.org/issue10073> ___ ___ Python-bugs-list m

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Oct 19, 2010 at 12:34 PM, Boštjan Mejak wrote: > I have also written a typo report. But > got rejected. No one listens to my ideas. So why do you have a bug tracker > anyway? Bug tracker is not the place to discuss ideas. We have pyt

[issue1528363] forward in turtle module may cause incorrect display

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I cannot reproduce this on OSX. I have verified that the turtle position is correct (-70.00,30.00) after the steps reported by OP. This must be out of date. -- nosy: +belopolsky resolution: -> out of date stage: unit test needed -> com

[issue10073] calendar.isleap() not checking parameter type

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed the docstring patch in r85725. -- ___ Python tracker <http://bugs.python.org/issue10073> ___ ___ Python-bug

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like this has been fixed in turtle 1.1. See r72318 and issue 5923. -- nosy: +belopolsky, georg.brandl resolution: -> out of date stage: -> committed/rejected status: open -> pending _

[issue7061] Improve 24.5. turtle doc

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > It seems that 'add=False' would be same as 'add=None' and more > consistent with below. The add argument is passed unchanged to canvas' bind method which is documented as taking either '' or '+' s

[issue7061] Improve 24.5. turtle doc

2010-10-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed some of the simpler fixes in r85732. > ?? Unclear how [delay()] interacts with turtle.speed Unclear indeed. See issue 3062. -- ___ Python tracker <http://bugs.python.org/iss

<    1   2   3   4   5   6   7   8   9   10   >