En Sat, 28 Feb 2009 04:44:28 -0200, zaheer.ag...@gmail.com escribió:
One question off the topic.,
Usually it's better to post a separate message.
How to create a .pyz file. I have python project that has some modules
in it , I want to create a zip file so that I can use it as we use
java
Hello all,
I am new to SOAP/WebServices and getting error when using HTTPS with it. Any
help is appreciated. here is what i am doing:
import xml
import fpconst
import SOAPpy
from SOAPpy import WSDL
wsdlFile = 'https://..com/webService.wsdl'
server = WSDL.Proxy(wsdlFile)
It seems
Gabriel Genellina gagsl-...@yahoo.com.ar writes:
En Sat, 28 Feb 2009 04:44:28 -0200, zaheer.ag...@gmail.com escribió:
One question off the topic.,
Usually it's better to post a separate message.
More specifically (and I only say this because many people seem not to
observe the
On Feb 28, 1:50 pm, Ben Finney bignose+hates-s...@benfinney.id.au
wrote:
Gabriel Genellina gagsl-...@yahoo.com.ar writes:
En Sat, 28 Feb 2009 04:44:28 -0200, zaheer.ag...@gmail.com escribió:
One question off the topic.,
Usually it's better to post a separate message.
More specifically
Thank you very much for all your replies. I actually used the while
loop as the data is not large. But I was looking for a simpler, built
in command, something like L.remove('a', all) or L.removeall('a').
Python has re.findall function, but why not removeall, so users have
to make up long lines of
bearophileh...@lycos.com bearophileh...@lycos.com wrote:
Brett Hedges:
My question is how do I go to a previous line in the file? xreadlines has a
file.next() statement that gives the next line, and I need a statement that
gives me the previous line.
In modern versions of Python you
A sort of premature pessimization, then.
QOTW!
+1
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Ethan Furman et...@stoneleaf.us writes:
Mark Wooding wrote:
Here's what I think is the defining property of pass-by-value [...]:
The callee's parameters are /new variables/, initialized /as if by
assignment/ from the values of caller's argument expressions.
My soundbite definition for
So basically you are complaining that groups don't pick up post by
GMail users?
As for the SQL thing, you still don't see how I am linking this to
SQL? I have to make in your terms: a textual representation of the
statements I'd make in SQL. The statement I made with the bold SELECT,
etc, replace
Raymond Hettinger wrote:
[Paul Rubin]
Ehh, I guess I'm not surprised at the slowdown and extra complexity
from the second dict. Oh well. If the module really turns out to be
really used a lot, another (messy) approach would be to write a C
extension that uses a doubly linked list some day.
Chris Rebert wrote:
Obviously that equivalence is true, but in this case I'm emphasizing
that it's even worse than that when constant factors are taken into
account. Big-O is nice in the abstract, but in the real-world those
constant factors can matter.
In pure big-O, it is indeed O(M*N)
On Feb 27, 2:04 pm, Rick Dooling rpdool...@gmail.com wrote:
On Feb 27, 6:42 am, steven.oldner steven.old...@gmail.com wrote:
Just learning Python and have a project to create a weekly menu and a
shopping list from the menu.
Question: How should I set up the data? I'm looking at maybe
Colin J. Williams wrote:
Sometimes, it's useful to be able to
obtain the data in the sorted sequence.
You might consider adding functionality
like:
def seqItems(self):
'''To return the items, sorted
by key. '''
return [self[k] for k in
self.seqKeys()]
Amazingly, the Python
Hi,
I want to create zip file equivalent to java jar file,I created a zip
file of my sources and added some __main__.py
some how I am getting an error saying __main.py does not exist in the
zip file
Copyproject(main folder)
|
|_src(folder)
| |
|
I'm having issues with a phone-number database.
Here is a code snippet:
def menu():
print '''Please make a selection from the following options:
To add an Employee - enter: 1
For a complete listing of Employees - enter: 2
To see the 'test page'
HI,
In my project I have several date related methods which I want tested for
correctness. The functions use date.today() in several places. Since this
could change every time I run the test, I hope to find someway to fake a
date.today.
For illustration lets say I have a function:
from
Maybe there's a more specific list I should ask this question on but I
don't know what it is. I'm using Tim Golden's wmi stuff, and putting
my output into an XML document.
I have the following bit of code
root = et.Element(locations)
ComputerInfo = et.SubElement(root, ComputerInfo)
Steven D'Aprano wrote:
Big Oh notation is good for estimating asymptotic behaviour, which means it
is good for predicting how an algorithm will scale as the size of the input
increases. It is useless for predicting how fast that algorithm will run,
since the actual speed depends on those
oh I noticed the problem with the
BuildNumber = et.SubElement(oper.BuildNumber)
instead of
BuildNumber = str(oper.BuildNumber)
and fixed it. No improvement in results however.
Best Regards,
Bryan Rasmussen
On Sat, Feb 28, 2009 at 6:38 PM, bryan rasmussen
rasmussen.br...@gmail.com wrote:
Maybe
Yuan HOng wrote:
HI,
In my project I have several date related methods which I want tested for
correctness. The functions use date.today() in several places. Since this
could change every time I run the test, I hope to find someway to fake a
date.today.
For illustration lets say I have a
En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió:
I want to create zip file equivalent to java jar file,I created a zip
file of my sources and added some __main__.py
it says __Main__.py not found in Copyproject.zip..?
__main__.py must exist in the root directory.
--
On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió:
I want to create zip file equivalent to java jar file,I created a zip
file of my sources and added some __main__.py
it says __Main__.py not found in
zaheer.ag...@gmail.com wrote:
On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió:
I want to create zip file equivalent to java jar file,I created a zip
file of my sources and added some __main__.py
it says
Lie Ryan wrote:
But this fails with:
TypeError: can't set attributes of built-in/extension type
'datetime.date'
This is because today is an attribute. In python, we can override
attribute access to become a function call. I don't have python right
now, but try this:
del date.today
Hello,
Brand new to this list, I've not found a quick way to search the
archives, and this is not a technical question.
I've just been hired at a digital signage company. They use VBScript
for simple-to-medium scripting. I've abandoned it about 8 years ago. I
want to convince the manager and the
On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote:
zaheer.ag...@gmail.com wrote:
On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió:
I want to create zip file equivalent to java jar file,I created
Thanks for adding this. I needed to show someone some examples...
On Fri, Feb 27, 2009 at 5:35 PM, steven.oldner steven.old...@gmail.comwrote:
On Feb 27, 8:40 am, pyt...@bdurham.com wrote:
Rainy,
Great stuff! Thanks for your examples with the community!!
Regards,
Malcolm
Let me
Christian R. schrieb:
Hello,
Brand new to this list, I've not found a quick way to search the
archives, and this is not a technical question.
I've just been hired at a digital signage company. They use VBScript
for simple-to-medium scripting. I've abandoned it about 8 years ago. I
want
It is considered one of the big holes in PHP (Remote file include...)
However in Python things can be done securely
On Sat, Feb 28, 2009 at 7:15 AM, Carl Banks pavlovevide...@gmail.comwrote:
On Feb 27, 7:21 pm, Sammo sammo2...@gmail.com wrote:
Given that execfile has been removed in py3k, I
So I'm looking for an easy (read: lazy) way to generate output in nice
ASCII tables like the Text::SimpleTable[1] module in perl. I've come
across two so far in the Python world that look promising[2][3] but I'm
wondering if anyone else out there has some recommendations for me.
Thanks,
Ray
[1]
The ordered dictionary discussion made me think of another data type
which seems to be somewhat related, a kind of ordered dictionary where
the order of the items is arbitrary. One can insert items in the middle
and still have O(1) access (I think). I have provided a very basic
implementation, it
On Sat, Feb 28, 2009 at 10:08 AM, steven.oldner steven.old...@gmail.com wrote:
Thanks guys. While shopping today I've thought of a few more columns
for my data so my first item will be building the 3 DB tables and a
way to populate them. Since this was intended to automate what I do
on a
On Sat, Feb 28, 2009 at 12:24 PM, Sean Novick daddysea...@yahoo.com wrote:
I'm having issues with a phone-number database.
Here is a code snippet:
def menu():
print '''Please make a selection from the following options:
To add an Employee - enter: 1
For a complete
Hello,
I'm interested in creating a static map of a region in the US. This
map would be set into a picture format, so I can add it to a
document. I would like it to contain some town names and road
information. Then I would like to add points, based on LAT and LONG,
that can be labeled with
bryan rasmussen wrote:
Maybe there's a more specific list I should ask this question on but I
don't know what it is. I'm using Tim Golden's wmi stuff, and putting
my output into an XML document.
I have the following bit of code
[.. snip ...]
At the end of that thhe only text node thaht
Mark Wooding m...@distorted.org.uk wrote:
Ethan Furman et...@stoneleaf.us writes:
Mark Wooding wrote:
Here's what I think is the defining property of pass-by-value [...]:
The callee's parameters are /new variables/, initialized /as if by
assignment/ from the values of caller's
Sean Novick daddysea...@yahoo.com wrote:
First lookup:
Traceback (most recent call last):
File F:\CSC113 Module 4 CA\sample database.py, line 72, in module
class phonedb:
File F:\CSC113 Module 4 CA\sample database.py, line 146, in phonedb
Christian R. pafbo...@gmail.com wrote:
The company does use Python on rare occasions. It all comes down to
the prejudices and habits of one of the programmers. His only argument
I can't counter -because I don't see the problem- is that Python
modules cause problems for updates to customer's
En Sat, 28 Feb 2009 16:51:04 -0200, zaheer.ag...@gmail.com escribió:
On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote:
zaheer.ag...@gmail.com wrote:
On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com
Christian Heimes li...@cheimes.de wrote:
Lie Ryan wrote:
But this fails with:
TypeError: can't set attributes of built-in/extension type
'datetime.date'
This is because today is an attribute. In python, we can override
attribute access to become a function call. I don't have python
En Sat, 28 Feb 2009 15:35:47 -0200, Yuan HOng hongyuan1...@gmail.com
escribió:
In my project I have several date related methods which I want tested for
correctness. The functions use date.today() in several places. Since this
could change every time I run the test, I hope to find someway to
zaheer.ag...@gmail.com wrote:
On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote:
zaheer.ag...@gmail.com wrote:
On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribi=
=F3:
I want to create zip
Lie Ryan wrote:
Yuan HOng wrote:
In my project I have several date related methods which I want tested for
correctness. The functions use date.today() in several places. Since this
could change every time I run the test, I hope to find someway to fake a
date.today.
For illustration lets say I
Hi Folks,
As directed, I got ClientForm and played with it. It is cool! However,
I also found a bug:
When it parses a form, if the VALUE of a field has not space, it works
very well. For example, if a dropdown list, there many options, such
as:
option value=foo
the value foo will be
Muddy Coder wrote:
Hi Folks,
As directed, I got ClientForm and played with it. It is cool! However,
I also found a bug:
When it parses a form, if the VALUE of a field has not space, it works
very well. For example, if a dropdown list, there many options, such
as:
option value=foo
the
KMCB wrote:
Hello,
I'm interested in creating a static map of a region in the US. This
map would be set into a picture format, so I can add it to a
document. I would like it to contain some town names and road
information. Then I would like to add points, based on LAT and LONG,
that can be
En Sat, 28 Feb 2009 21:01:56 -0200, Muddy Coder cosmo_gene...@yahoo.com
escribió:
By the way, can somebody helps me on setting parameter of uploading a
file. In ClientForm, if I need to upload a text file, I can do it by:
form.add_file(..., text/plain)
What about a picture file? What is the
Steven D'Aprano wrote:
Colin J. Williams wrote:
Sometimes, it's useful to be able to
obtain the data in the sorted sequence.
You might consider adding functionality
like:
def seqItems(self):
'''To return the items, sorted
by key. '''
return [self[k] for k in
self.seqKeys()]
Amazingly, the
Colin J. Williams c...@ncf.ca writes:
# print [mydict[x] for x in sorted(mydict.keys)] Instance object
is not iterable
It was a typo. Use:
print [mydict[x] for x in sorted(mydict.keys())]
--
http://mail.python.org/mailman/listinfo/python-list
MRAB wrote:
Muddy Coder wrote:
Hi Folks,
When it parses a form, if the VALUE of a field has not space, it works
very well. For example, if a dropdown list, there many options, such
as:
option value=foo
the value foo will be picked up for sure. But, if there is a space:
option
Christian R. wrote:
The company does use Python on rare occasions. It all comes down to
the prejudices and habits of one of the programmers. His only argument
I can't counter -because I don't see the problem- is that Python
modules cause problems for updates to customer's installations.
Next
Is it possible to make a GUI email program in Python that stores
emails, composes, ect?
--
http://mail.python.org/mailman/listinfo/python-list
J wrote:
Is it possible to make a GUI email program in Python that stores
emails, composes, ect?
Yes.
--
http://mail.python.org/mailman/listinfo/python-list
Is it possible to make a GUI email program in Python that stores
emails, composes, ect? Also, could I create my own programming
language in Python? What are Pythons limits, or is this just a waste
of my time to learn it.
--
http://mail.python.org/mailman/listinfo/python-list
What a great response.
-Original Message-
From: python-list-bounces+traef=ebasedsecurity@python.org
[mailto:python-list-bounces+traef=ebasedsecurity@python.org] On
Behalf Of MRAB
Sent: Saturday, February 28, 2009 8:00 PM
To: python-list@python.org
Subject: Re: Email Program
Thomas Raef wrote:
What a great response.
It's a correct, straight forward and short answer to the op's question.
Christian
--
http://mail.python.org/mailman/listinfo/python-list
J wrote:
Is it possible to make a GUI email program in Python that stores
emails, composes, ect? Also, could I create my own programming
language in Python? What are Pythons limits, or is this just a waste
of my time to learn it.
--
http://mail.python.org/mailman/listinfo/python-list
Ethan Furman et...@stoneleaf.us wrote:
Specifically, how is a new name (pbr) different, in Python, from a new
name initialized as if by assignment (pbv)? It seems to me than you end
up with the same thing in either case (in Python, at least), making the
distinction non-existent.
def
J wrote:
Is it possible to make a GUI email program in Python that stores
emails, composes, ect? Also, could I create my own programming
language in Python? What are Pythons limits, or is this just a waste
of my time to learn it.
Python is Turing complete, which means it is a
The company does use Python on rare occasions. It all comes down to
the prejudices and habits of one of the programmers. His only argument
I can't counter -because I don't see the problem- is that Python
modules cause problems for updates to customer's installations.
This is purely an
hi all,
i recently installed a new version of a package using python setup.py
install --prefix=/my/homedir on a system where i don't have root
access. the old package still resides in /usr/lib/python2.5/site-
packages/ and i cannot erase it.
i set my python path as follows in ~/.cshrc
setenv
On Feb 28, 7:10 pm, Shane Geiger sgei...@councilforeconed.org wrote:
The company does use Python on rare occasions. It all comes down to
the prejudices and habits of one of the programmers. His only argument
I can't counter -because I don't see the problem- is that Python
modules cause
On Mar 1, 1:43 am, Paul Rubin http://phr...@nospam.invalid wrote:
Colin J. Williams c...@ncf.ca writes:
# print [mydict[x] for x in sorted(mydict.keys)] Instance object
is not iterable
It was a typo. Use:
print [mydict[x] for x in sorted(mydict.keys())]
Even better
print
On Feb 28, 7:30 pm, per perfr...@gmail.com wrote:
hi all,
i recently installed a new version of a package using python setup.py
install --prefix=/my/homedir on a system where i don't have root
access. the old package still resides in /usr/lib/python2.5/site-
packages/ and i cannot erase it.
On Feb 28, 11:24 pm, Carl Banks pavlovevide...@gmail.com wrote:
On Feb 28, 7:30 pm, per perfr...@gmail.com wrote:
hi all,
i recently installed a new version of a package using python setup.py
install --prefix=/my/homedir on a system where i don't have root
access. the old package still
On Mar 1, 1:32 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Sat, 28 Feb 2009 16:51:04 -0200, zaheer.ag...@gmail.com escribió:
On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote:
zaheer.ag...@gmail.com wrote:
On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar
On Feb 28, 11:53 pm, per perfr...@gmail.com wrote:
On Feb 28, 11:24 pm, Carl Banks pavlovevide...@gmail.com wrote:
On Feb 28, 7:30 pm, per perfr...@gmail.com wrote:
hi all,
i recently installed a new version of a package using python setup.py
install --prefix=/my/homedir on a
lameck kassana chela...@gmail.com wrote:
i did try but still not working.But also i try os.walk() for remote
computer like os.walk('\\192.168.0.45') it also failed
Of course it did, for two different reasons. First, you can't just walk an
IP address. You have to specify one of the shares
Hi.
Got a bit of a question/issue that I'm trying to resolve. I'm asking this of
a few groups so bear with me.
I'm considering a situation where I have multiple processes running, and
each process is going to access a number of files in a dir. Each process
accesses a unique group of files, and
On Feb 28, 4:21 am, Sammo sammo2...@gmail.com wrote:
Given that execfile has been removed in py3k
execfile has not been really removed, it is just spelled
differently:
exec(open(myfile.py).read())
BTW, from the help message
help(exec)
Help on built-in function exec in module builtins:
On Feb 28, 9:18 pm, per perfr...@gmail.com wrote:
On Feb 28, 11:53 pm, per perfr...@gmail.com wrote:
On Feb 28, 11:24 pm, Carl Banks pavlovevide...@gmail.com wrote:
On Feb 28, 7:30 pm, per perfr...@gmail.com wrote:
hi all,
i recently installed a new version of a package using
Hi,
I;m not sure how I got your address but I could use a friend .
Please reply and we can talk. I would like that.
Good day,
Joe Pyne--
http://mail.python.org/mailman/listinfo/python-list
Martin v. Löwis mar...@v.loewis.de added the comment:
The one thing that IMO needs to be decided before this can be accept is
the version compatibility: what Python versions must this code stay
compatible with? That decision then needs to be implemented.
Apart from this (and the additional
Retro vinet...@gmail.com added the comment:
I noticed this by installing the Python 2.5.4 and Python 2.6.1 and
Python 3.0.1 binaries. Please fix these issues if you can.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5390
Martin v. Löwis mar...@v.loewis.de added the comment:
I did not backport the fix to 2.5.4, so that release doesn't have it
fixed. Since the 2.5 branch is now closed, no changes will be made to it.
For 2.6.1 and 3.0.1, it works fine for me. See the attached screenshot.
Added file:
Tarek Ziadé ziade.ta...@gmail.com added the comment:
done in r70049 and r70051
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5378
___
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Done in r70049 and r70051.
Thanks for everyone's help !
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533164
___
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533164
___
___
Changes by Tarek Ziadé ziade.ta...@gmail.com:
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533164
___
___
Python-bugs-list mailing list
Unsubscribe:
Georg Brandl ge...@python.org added the comment:
I can't see at the moment how the unicode_decode_call_errorhandler call
can be made without startinpos being previously set to some value.
Antoine, maybe you can verify?
--
assignee: - pitrou
nosy: +georg.brandl, pitrou
Martin v. Löwis mar...@v.loewis.de added the comment:
See comment 1 in
https://bugzilla.redhat.com/show_bug.cgi?id=236535
It might be that this patch still doesn't solve the problem, namely if
there are non-library .py files in the distribution. They get compiled
by brp-python-bytecompile, but
Martin v. Löwis mar...@v.loewis.de added the comment:
Tarek, I think you committed too quickly. Please consider my comments.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1533164
___
Martin v. Löwis mar...@v.loewis.de added the comment:
simplejson maintains Python 2.4+ compatibility, but json maintains 2.6+.
I could produce another patch that manually removes these few remaining
nits if it's necessary.
I don't quite understand this: isn't json/decoder.py and
Antoine Pitrou pit...@free.fr added the comment:
Hmm, I know nothing about UTF7...
Anyway, looking at the code, the utf7Error code path can be called from
the following places (trunk line numbers):
- line 1595, and startinpos was set three lines before
- a bunch of places in the if (inShift) {
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Fixed in r70052(trunk), r70053(py3k).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5386
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
On Python3000, mmap.read_byte returns str not bytes, and mmap.write_byte
accepts str. Is this intended behavior?
import mmap
m = mmap.mmap(-1, 10)
type(m.read_byte())
class 'str'
m.write_byte(a)
m.write_byte(ba)
Maybe
Martin v. Löwis mar...@v.loewis.de added the comment:
Indeed, I think it should use the b code, instead of the c code.
Please discuss this on python-dev, though.
It might not be ok to backport this to 3.0, since it may break existing
code.
--
nosy: +loewis
Martin v. Löwis mar...@v.loewis.de added the comment:
Furthermore, all other uses of the c code might need to be reconsidered.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5391
___
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar:
Set sys.setrecursionlimit to 50 or lower. Then, the second time the
recursion limit is reached, the interpreter crashes with a stack
overflow.
This happens both with released 3.0.1 and the py3k branch, on Windows.
At least on my PC,
Tarek Ziadé ziade.ta...@gmail.com added the comment:
I've read the thread while working in the patch,
and comment #28 explains that brp-python-bytecompile is called over
the rpms and requires pyo files within the file list.
plus:
http://fedoraproject.org/wiki/Packaging/Python#Including_pyos
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Fixed in r70056(trunk) and r70057(py3k).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1733986
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
versions: -Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5391
___
___
Changes by Benjamin Peterson benja...@python.org:
--
nosy: +loewis, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5392
___
___
Georg Brandl ge...@python.org added the comment:
I can reproduce that (with the same limits) on Linux here.
It doesn't happen with 2.6.
(Although it is technically not a crash but a controlled abort().)
--
nosy: +georg.brandl
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
loewis Furthermore, all other uses of the c code might
loewis need to be reconsidered.
$ grep 'BuildValue.*c' */*c
Modules/_cursesmodule.c:return Py_BuildValue(c, rtn);
Modules/mmapmodule.c: return Py_BuildValue(c,
STINNER Victor victor.stin...@haypocalc.com added the comment:
@tjreedy: Do you expect conversion to small int if __int__() result
fits in a small int?
class A:
def __int__(self):
return 1L
x=int(A())
print repr(x), type(x)
Result with Python 2.5.1: 1L type 'long'
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I think more *bytes* cleanup is needed for mmap module documentation
implementation. (and other modules?) Especially mmap.find() and its friends.
import mmap
m = mmap.mmap(-1, 10)
m[:] = b0123456789
m.find(b'2')
2
m.find('2')
Mark Dickinson dicki...@gmail.com added the comment:
The behaviour doesn't contradict the documentation, as far as I can
tell,
so I agree with Terry that this is not a bug.
If we want the result from the built-in int function to have type int
whenever possible (that is, whenever the result
Changes by Mark Dickinson dicki...@gmail.com:
--
type: behavior - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5377
___
___
John Levon movem...@users.sourceforge.net added the comment:
Surely readline is irrelevant anyway. The Python spec guarantees
behaviour, and that guarantee is currently broken.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1975
1 - 100 of 149 matches
Mail list logo