|
|
|
1-10 of 759
< Previous ... Next >
|
String representation of the object to obtain a unicode() function tries to use. (C#: obj.ToString())
>>> a = 'A'
>>> a
'A'
>>> unicode(a)
'A'
>>> a = 'A' # \uff21
>>> a
u'\uff21'
>>> unicod...
id# 15372 | Planned Release: 2.1 | Last Updated: Today at 1:13 PM
by orestis
InitializeSystemState() has this:
SetSystemStateValue("ps1", ">>> ");
SetSystemStateValue("ps1", "... ");
id# 16497 | Planned Release: None | Last Updated: Thu at 7:52 PM
by paulfelix
<Thanks>Michael Foord</Thanks>
<Test>Needed</Test>
Hello guys,
Attempting to access the '__dict__' attribute of a SyntaxError exception in IP2a8 *returns* an 'OperationFailed' object.
The codeop...
id# 15571 | Planned Release: 2.0 Beta 2 | Last Updated: Thu at 5:36 PM
by dinov
Perhaps it would be enough to implement it by converting the long to System.Decimal, and just using it's ToString(format) which works perfectly.
def ToString(self, format):
d = Decimal.TryParse(...
id# 16477 | Planned Release: None | Last Updated: Thu at 1:13 PM
by Eloff
dir() of an instance of AssemblyBuilder shows all the methods of Assembly and none of AssemblyBuilder.
Reason:
The offending line of code is in GetMemberNames in PythonAssemblyOps where typeof(Ass...
id# 16486 | Planned Release: None | Last Updated: Thu at 12:41 AM
by srivatsn
Curt reported this on the mailing list:
import clr
import System
name = System.Reflection.AssemblyName()
name.Name = 'Test'
assemblyBuilder = System.AppDomain.CurrentDomain.DefineDynamicAssembly(n...
id# 16485 | Planned Release: None | Last Updated: Thu at 12:37 AM
by srivatsn
CPython
>>> struct.unpack('I','\xedd\x02\x00')
(156909,)
IronPython 2.0b1
>>> struct.unpack('I','\xedd\x02\x00')
(156909L,)
CPython returns int right up to sys.maxint
id# 16476 | Planned Release: None | Last Updated: Wed at 5:46 PM
by Eloff
If a call to os.open is made with the flags O_CREAT | O_EXCL, cpython lets you make further os.open calls for the same file with any flag other than O_CREAT. IPy throws an exception saying the file...
id# 16457 | Planned Release: None | Last Updated: Wed at 12:21 AM
by srivatsn
The errno property is always set to 22 currently.
IPy:
D:\dd\vs_langs01\Merlin\External\Languages\IronPython20\25\Lib>ipyd
IronPython 2.0 Beta (2.0.0.2000) on .NET 2.0.50727.1434
Copyright (c) Mi...
id# 16453 | Planned Release: None | Last Updated: Tue at 8:35 PM
by srivatsn
<Test>test_codecs.py</Test>
CPython:
>>> _codecs.escape_encode("ab\a\b\t\n\r\f\vba")
('ab\\x07\\x08\\t\\n\\r\\x0c\\x0bba', 26)
IronPython:
>>> _codecs.escape_encode("ab\a\b\t\n\r\f\vba")
'ab\\a\...
id# 4566 | Planned Release: None | Last Updated: Tue at 5:30 PM
by sborde
|
|
1-10 of 759
< Previous 1 2 3 4 5 6 7 8 9 10 ... Next >
|
|
|
|
|
|
|