Hi,
Wyplay is proud to announce the release of a new tool to track Python
memory allocations: pytracemalloc.
https://pypi.python.org/pypi/pytracemalloc
https://github.com/wyplay/pytracemalloc
pytracemalloc provides the following information:
- Allocated size and number of allocations per file,
The Karlsruhe Python User Group (KaPy) meets again.
Friday, 2013-03-15 (March 15th) at 19:00 (7pm) in the rooms of Entropia eV
(the local affiliate of the CCC). See http://entropia.de/wiki/Anfahrt
on how to get there.
For your calendars: meetings are held monthly, on the 3rd Friday.
There's
We're pleased to announce the release of Python Tools for Visual Studio 2.0
Alphahttp://pytools.codeplex.com/releases/view/72638. Python Tools for Visual
Studio (PTVS) is an open-source plug-in for Visual Studio which supports
programming with the Python language. PTVS supports a broad range of
On Thursday, March 7, 2013 12:57:09 PM UTC+1, Terry Reedy wrote:
On 3/7/2013 6:02 AM, sferen...@gmail.com wrote:
Hi,
When is the 3.3.1 final due? I have found this
[http://python.org/dev/peps/pep-0398/#id1], but the info doesn't seem
up to date. Is there a better source of
The problem is my server hits memory usage threshold, and starts giving me
errors like Oracle unable to spawn off new session stating Out of Memory error
and what not. I won't be bothered much if I have the luxury of available memory
for other processes to use. If only if the UNIX understand my
On 3/8/2013 2:23 AM, gerson.k...@gmail.com wrote:
I am rebuilding Python 2.7.4 using Visual Studio 2010. As part of
that, I wanted to build with a current OpenSSL version (1.0.1e) and
an updated SQLite version.
What I noted: the projects in the main workspace (at least in
PCBuild) directly
I must thank the tester of my webisites's security!
He hacked it nicely and easily through tampering with 'htmlpage' variable's
value!
Now i'am validating htmlpage's input value and i don't beleive its hackable any
more!
Please feel free to try whoever want to!
Thnk you all for your patience
Hi
I need to write the unit test cases for similary kind of sitution.
I need to write the unit test case for Foo.testCall. for both case true or
false. I am unalbe to do that.
kindly please help me on this. as function is not returning any thing. from
google i got mox is good for this case. but
Greetings,
I'm trying to run a simple Tkinter program that opens a program when you click
a button. The code is listed below. I use a command to call a program that
then calls a fortran program. However, when I click on the button, it opens
the program but the menu of the program i'm
Hi,
I would like to enable loggin in my script using the logging module that comes
with Python 2.7.3.
I have the following few lines setting up logging in my script, but for
whatever reason I don't seem to get any output to stdout or to a file
provided to the basicConfig method.
Any ideas?
We are a user of this python-based GPL maillist/web forum platform:
http://groupserver.org
I'd be interested in folks thoughts about it.
We'd like to see the development community grow.
The main difference with Mailman is that it is more of a balance
between web and e-mail, while still
On 8 March 2013 05:26, subhabangal...@gmail.com wrote:
On Friday, March 8, 2013 2:18:06 AM UTC+5:30, subhaba...@gmail.com wrote:
I was trying to learn Hidden Markov Model. In Python there are various
packages, but I was willing to do some basic calculation starting from the
scratch so that
On 08/03/2013 14:04, prqu...@gmail.com wrote:
Greetings,
I'm trying to run a simple Tkinter program that opens a program when
you click a button. The code is listed below. I use a command to
call a program that then calls a fortran program. However, when I
click on the button, it opens the
On Thursday, March 7, 2013 10:50:52 PM UTC-6, rh wrote:
Choices are good. [...] Having one choice is a mess. And
look back at history and current events
Sometimes choices are forced upon you without your consent or even without
regard for the end users' well-being. In this case choices are no
* rh richard_hubb...@lavabit.com [130307 20:21]:
On Wed, 6 Mar 2013 17:55:12 -0900
Tim Johnson t...@akwebsoft.com wrote:
I believe that indifference on the part of Python to fastcgi is a
self-inflicted wound. I don't believe that there is any good
excuse for such indifference,
Hi,
Wingware has released version 4.1.12 of Wing IDE, our integrated development
environment designed specifically for the Python programming language.
Wing IDE provides a professional quality code editor with vi, emacs, and
other
key bindings, auto-completion, call tips, refactoring,
A problem occurred in a Python script. Here is the sequence of function calls
leading up to the error, in the order they occurred.
/home/nikos/public_html/cgi-bin/metrites.py in ()
12
13 htmlpage = form.getvalue('htmlpage')
14 if re.search( r'(.html|.py)', htmlpage ):
15
On Sat, Mar 9, 2013 at 3:35 AM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote:
15 htmlpage = htmlpage.replace( '/home/nikos/public_html/', '' )
re = module 're' from '/usr/lib64/python2.6/re.pyc', re.search = function
search, htmlpage = ['/home/nikos/public_html/index.html',
Dear all,
can anybody point out a situation where you really need itertools.filterfalse()
?
So far, I couldn't think of a case where you couldn't replace it with a
generator expression/if combination.
e.g.,
a=filterfalse(lambda x: x%2, range(1,101))
b=(i for i in range(1,101) if not i % 2)
do
Τη Παρασκευή, 8 Μαρτίου 2013 6:46:35 μ.μ. UTC+2, ο χρήστης Chris Angelico
έγραψε:
On Sat, Mar 9, 2013 at 3:35 AM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote:
15 htmlpage = htmlpage.replace( '/home/nikos/public_html/', '' )
re = module 're' from '/usr/lib64/python2.6/re.pyc',
On 2013-03-08, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de wrote:
Dear all,
can anybody point out a situation where you really need
itertools.filterfalse() ? So far, I couldn't think of a case
where you couldn't replace it with a generator expression/if
combination. e.g.,
On 08/03/2013 17:04, Sven wrote:
On 8 March 2013 16:50, Νίκος Γκρ33κ nikos.gr...@gmail.com
mailto:nikos.gr...@gmail.com wrote:
but that same exact code is executed withour errors when someone is
http://superhost.gr
the erro is produces when he is requesting a link from that
On Mar 8, 9:50 am, rh richard_hubb...@lavabit.com wrote:
Choices are good.
Having one choice is a mess. And look back at history and current events
if you don't see that.
See http://www.perl.com/pub/1999/03/pm.html for how a real post-modern
hip language gives endless choice. Also called
On Wed, 06 Mar 2013 18:58:12 -0800, rusi wrote:
My questions:
1. Why is Ruby on Rails much more popular than Django?
Where there is choice there is no freedom
http://www.jiddu-krishnamurti.net/en/1954/1954-03-03-jiddu-
krishnamurti-8th-public-talk
Surely that should be, where there is NO
On Mar 8, 7:29 pm, Oscar Benjamin oscar.j.benja...@gmail.com wrote:
On 8 March 2013 05:26, subhabangal...@gmail.com wrote:
On Friday, March 8, 2013 2:18:06 AM UTC+5:30, subhaba...@gmail.com wrote:
I was trying to learn Hidden Markov Model. In Python there are various
packages, but I was
On Wed, 06 Mar 2013 22:20:11 -0500, Roy Smith wrote:
I stumbled upon an interesting bit of trivia concerning lists and list
comprehensions today.
We use mongoengine as a database model layer. A mongoengine query
returns an iterable object called a QuerySet. The obvious way to
create a
On Thu, 07 Mar 2013 09:27:42 +, Sven wrote:
Additionally, what if I wanted to pull a random element from N, but I
want to ensure all elements from N have been used before starting to
pick already chosen random elements again. So far I thought of
duplicating the list and removing the
To make a long (and painful) story short, I've got a (large) list of
datetimes, and was getting some bizarre errors working with it. One of
the things I tried while debugging the problem was verifying that all
the elements of the list were indeed datetimes:
In [59]: set(type(foo) for foo in
In article 513a26fa$0$30001$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
On Wed, 06 Mar 2013 22:20:11 -0500, Roy Smith wrote:
I stumbled upon an interesting bit of trivia concerning lists and list
comprehensions today.
We use
On Fri, 08 Mar 2013 04:55:07 +0100, Vito De Tullio wrote:
Νίκος Γκρ33κ wrote:
-c ''; rm -rf /; oops.py
Yes its being pulled by http request!
But please try to do it, i dont think it will work!
try yourself and tell us what happened
That's not very nice.
Please don't tell the
Hi every every body,
Today I have to submit my assignment for Computer Science, And I am absolutely
stuck in writing the code. Please help me in soon possible.
The main idea of the program is encode and decode the text.
that wot the instructor gave us so far.
Sample Run
Here's a sample run of
On 2013-03-08, khudo.anasta...@gmail.com khudo.anasta...@gmail.com wrote:
Hi every every body,
Today I have to submit my assignment for Computer Science, And
I am absolutely stuck in writing the code. Please help me in
soon possible.
The main idea of the program is encode and decode the
On Friday, March 8, 2013 2:07:55 PM UTC-5, Neil Cerutti wrote:
On 2013-03-08, khudo.anasta...@gmail.com khudo.anasta...@gmail.com wrote:
Hi every every body,
Today I have to submit my assignment for Computer Science, And
I am absolutely stuck in writing the code. Please help me in
Τη Παρασκευή, 8 Μαρτίου 2013 7:04:29 μ.μ. UTC+2, ο χρήστης sven έγραψε:
On 8 March 2013 16:50, Νίκος Γκρ33κ nikos...@gmail.com wrote:
but that same exact code is executed withour errors when someone is
http://superhost.gr
the erro is produces when he is requesting a link
Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano
έγραψε:
On Fri, 08 Mar 2013 04:55:07 +0100, Vito De Tullio wrote:
Νίκος Γκρ33κ wrote:
-c ''; rm -rf /; oops.py
Yes its being pulled by http request!
But please try to do it, i dont think
On 2013-03-08, khudo.anasta...@gmail.com
khudo.anasta...@gmail.com wrote:
I believe your instructor intends you to start with the
skeleton of the program provided above. Complete it by writing
the missing functions: menu, decode, and encode.
that is where I confused, I am not sure how to do
On Friday, March 8, 2013 2:32:24 PM UTC-5, Neil Cerutti wrote:
On 2013-03-08, khudo.anasta...@gmail.com
khudo.anasta...@gmail.com wrote:
I believe your instructor intends you to start with the
skeleton of the program provided above. Complete it by writing
the missing functions:
On Fri, Mar 8, 2013 at 2:32 PM, Neil Cerutti ne...@norwich.edu wrote:
On 2013-03-08, khudo.anasta...@gmail.com
khudo.anasta...@gmail.com wrote:
I believe your instructor intends you to start with the
skeleton of the program provided above. Complete it by writing
the missing functions:
On Fri, Mar 8, 2013 at 12:19 PM, i...@cravendot.gr wrote:
I dare anyone who wants to to mess with 'htmlpage' variable value's now!
I made it unhackable i believe!
I'am testing it myself 3 hours now and find it safe!
Please feel free to try also!
Okay, done. I was still able to read your
On Fri, Mar 8, 2013 at 1:01 PM, Ian Kelly ian.g.ke...@gmail.com wrote:
On Fri, Mar 8, 2013 at 12:19 PM, i...@cravendot.gr wrote:
I dare anyone who wants to to mess with 'htmlpage' variable value's now!
I made it unhackable i believe!
I'am testing it myself 3 hours now and find it safe!
I've never really used itertools before. While trying to figure out
how to break a list up into equal pieces, I came across the consume
function in the examples here:
http://docs.python.org/2/library/itertools.html
It seems to me that it should return whatever it consumes from the
list. I
Τη Παρασκευή, 8 Μαρτίου 2013 10:01:59 μ.μ. UTC+2, ο χρήστης Ian έγραψε:
On Fri, Mar 8, 2013 at 12:19 PM, i...@cravendot.gr wrote:
I dare anyone who wants to to mess with 'htmlpage' variable value's now!
I made it unhackable i believe!
I'am testing it myself 3 hours now and
On Fri, Mar 8, 2013 at 1:28 PM, Skip Montanaro s...@pobox.com wrote:
I've never really used itertools before. While trying to figure out
how to break a list up into equal pieces, I came across the consume
function in the examples here:
http://docs.python.org/2/library/itertools.html
It
Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano
έγραψε:
-c ''; rm -rf /; oops.py
Please don't tell the newbies to destroy their system, no matter how
tempting it might be.
What that -c '' options i keep seeing in the attempts to pass bogus info in
my 'page'
Hello all,
I am an amateur Python person, and I usually learn just enough to make one
writing tool or another as I go, because mainly I'm a writer, not a programmer.
Recently, I've been exploring a markdown syntax called Fountain for
screenwriters
http://fountain.io/syntax
On Fri, 08 Mar 2013 13:41:27 -0500, Roy Smith wrote:
So, the question is, WHY aren't aware and naive datetimes separate
classes? They share many attributes and methods, but not all.
They share all attributes and methods.
You could just as well ask why positive and negative floats aren't
On Sat, Mar 9, 2013 at 7:31 AM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote:
I cant beleive how easy you hacked the webserver again and be able to read my
cgi scripts source and write to cgi-bin too!
I have added extra security by following some of your advice, i wonder if
youc an hack it
Ian Kelly ian.g.kelly at gmail.com writes:
Depending on your Python version lst is either a range object or a
list, neither of which is an iterator. If you pass to consume an
iterable object that is not an iterator, it will implicitly obtain an
iterator for it, consume from the iterator, and
On Sat, Mar 9, 2013 at 8:07 AM, Rick Dooling rpdool...@gmail.com wrote:
To that end, I would like to take this Ruby script (which works pretty well,
but throws errors in Mac OS X; some Ruby ones and some Prince ones) and
convert it to Python so I can fix it myself, because I don't know Ruby
On Sat, Mar 9, 2013 at 8:33 AM, Nobody nob...@nowhere.com wrote:
On Fri, 08 Mar 2013 13:41:27 -0500, Roy Smith wrote:
So, the question is, WHY aren't aware and naive datetimes separate
classes? They share many attributes and methods, but not all.
They share all attributes and methods.
You
On 03/08/2013 12:54 PM, nagia.rets...@gmail.com wrote:
Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano
έγραψε:
-c ''; rm -rf /; oops.py
Please don't tell the newbies to destroy their system, no matter how
tempting it might be.
What that -c '' options i keep
Thank you, Chris. I was trying to avoid the xcode since I know didley about
that too, but I'll download it and see if I can get it to run.
THANKS AGAIN
Rick
On Friday, March 8, 2013 3:51:44 PM UTC-6, Chris Angelico wrote:
On Sat, Mar 9, 2013 at 8:07 AM, Rick Dooling wrote:
To that end, I
On Fri, Mar 8, 2013 at 1:54 PM, nagia.rets...@gmail.com wrote:
Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano
έγραψε:
-c ''; rm -rf /; oops.py
Please don't tell the newbies to destroy their system, no matter how
tempting it might be.
What that -c '' options
On Fri, Mar 8, 2013 at 1:31 PM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote:
Thank you very much for pointing my flaws once again!
I cant beleive how easy you hacked the webserver again and be able to read my
cgi scripts source and write to cgi-bin too!
I have added extra security by following
I have a program that I wish to run in both Python 2.7 and Python 3.2
The program runs correctly under each version, but it runs more slowly
under 3.2.
This is probably due to the fact that the .pyc file is created for the
Python 2.7 execution.
When Python 3.2 is run it fails to create a
Program summary:
I have a module called user.py that imports another module called
app.py. Functions in app.py are used in user.py to describe 3D
objects. These objects are saved in another object described in
doc.py.
app.py contains a function called view(). When called in user.py, it
On Wed, 06 Mar 2013 03:12:43 +, Mark Lawrence wrote:
On 06/03/2013 01:43, Bob Hanson wrote:
[problem reporting bugs]
You'll be delighted to know that everybody will have to sign a
contributor agreement if they're supplying a patch file on the bug
tracker, see
Τη Σάββατο, 9 Μαρτίου 2013 2:26:56 π.μ. UTC+2, ο χρήστης Ian έγραψε:
On Fri, Mar 8, 2013 at 1:31 PM, Νίκος Γκρ33κ nikos.gr...@gmail.com wrote:
Thank you very much for pointing my flaws once again!
I cant beleive how easy you hacked the webserver again and be able to read
my cgi
Τη Παρασκευή, 8 Μαρτίου 2013 11:37:11 μ.μ. UTC+2, ο χρήστης Chris Angelico
έγραψε:
There is NO WAY that you are the smartest or most devious person on
Earth. Also, the three hours that you put in are *nothing* compared to
the collective time that the rest of the world will spend fiddling
Τη Σάββατο, 9 Μαρτίου 2013 2:18:42 π.μ. UTC+2, ο χρήστης Ian έγραψε:
So the -c is an option to Python. It means that instead of reading a
script, Python should run commands passed on the command line in the
next argument. That's the ''. It's empty, so what this instructs
Python is to do
On 09/03/2013 03:18, Νίκος Γκρ33κ wrote:
Τη Παρασκευή, 8 Μαρτίου 2013 11:37:11 μ.μ. UTC+2, ο χρήστης Chris Angelico
έγραψε:
There is NO WAY that you are the smartest or most devious person on
Earth. Also, the three hours that you put in are *nothing* compared to
the collective time that the
On 09/03/2013 03:17, Νίκος Γκρ33κ wrote:
Τη Σάββατο, 9 Μαρτίου 2013 2:18:42 π.μ. UTC+2, ο χρήστης Ian έγραψε:
So the -c is an option to Python. It means that instead of reading a
script, Python should run commands passed on the command line in the
next argument. That's the ''. It's empty,
On 06 Mar 2013 03:38:36 GMT, Steven D'Aprano wrote:
On Tue, 05 Mar 2013 17:51:36 -0800, Bob Hanson wrote:
[trouble reporting bugs]
Works for me.
Please try again, and if it still does not work, please email me off-list
and I will help you either set up an account or report a tracker
On Friday, March 8, 2013 3:07:59 PM UTC-6, Rick Dooling wrote:
I am an amateur Python person, and I usually learn just
enough to make one writing tool or another as I go,
because mainly I'm a writer, not a programmer. Recently,
I've been exploring a markdown syntax called Fountain for
On Sat, Mar 9, 2013 at 2:31 PM, Bob Hanson invalid@invalid.invalid wrote:
(I was without internet access for a few days while the experts
at the phone company once again attempted to simulate minimal
competence culminating with their DSL install expert -- who had
never heard of Linux -- trying
On Wed, 06 Mar 2013 18:50:35 -0500, Terry Reedy wrote:
On 3/6/2013 2:48 PM, rh wrote:
[Bob Hanson wrote:]
I've tried twice to register with the bug tracker -- including
just before sending this post. [...]
[other details and errors snipped]
I had wanted to report doc
On Mar 8, 10:47 pm, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Wed, 06 Mar 2013 18:58:12 -0800, rusi wrote:
My questions:
1. Why is Ruby on Rails much more popular than Django?
Where there is choice there is no freedom
On Fri, 08 Mar 2013 19:18:50 -0800, Νίκος Γκρ33κ wrote:
I agree with you but i wonder why the world would want to dedicate hours
for fiddling with my script? Why anyone should mess with my website
http://superhost.gr ?
What makes you think it would be hours? For somebody who knows what they
On Fri, 08 Mar 2013 19:48:28 -0500, Colin J. Williams wrote:
I have a program that I wish to run in both Python 2.7 and Python 3.2
The program runs correctly under each version, but it runs more slowly
under 3.2.
Without knowing what your program does, it is impossible to comment on
why it
On Friday, March 8, 2013 9:41:57 PM UTC-6, Rick Johnson wrote:
First impression of Fountain: TOTAL CRAP!
Noted. But it seems to be the syntax the screenwriters and their programmers
have settled on for now. It's all working pretty well. Just no Python or
command-line implementations yet. I
On 3/8/2013 11:45 AM, Wolfgang Maier wrote:
Dear all,
can anybody point out a situation where you really need itertools.filterfalse()
?
So far, I couldn't think of a case where you couldn't replace it with a
generator expression/if combination.
e.g.,
a=filterfalse(lambda x: x%2, range(1,101))
On 3/8/2013 11:12 PM, Bob Hanson wrote:
I do notice trivial changes,
I am currently set up again to do doc changes, so if you already have
some non-controversial changes to the *current* docs, the online html
versions, go ahead and email them to me.
but I also feel some of the
Changes by Florian Weimer fwei...@redhat.com:
--
nosy: +fweimer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10441
___
___
Python-bugs-list
Changes by Florian Weimer fwei...@redhat.com:
--
nosy: +fweimer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1621
___
___
Python-bugs-list
Changes by Florian Weimer fwei...@redhat.com:
--
nosy: +fweimer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7672
___
___
Python-bugs-list
Changes by Florian Weimer fwei...@redhat.com:
--
nosy: +fweimer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8106
___
___
Python-bugs-list
Changes by Florian Weimer fwei...@redhat.com:
--
nosy: +fweimer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10852
___
___
Python-bugs-list
Changes by Florian Weimer fwei...@redhat.com:
--
nosy: +fweimer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13647
___
___
Python-bugs-list
Changes by Florian Weimer fwei...@redhat.com:
--
nosy: +fweimer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13655
___
___
Python-bugs-list
Changes by Florian Weimer fwei...@redhat.com:
--
nosy: +fweimer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13747
___
___
Python-bugs-list
Changes by Florian Weimer fwei...@redhat.com:
--
nosy: +fweimer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13403
___
___
Python-bugs-list
Florian Weimer added the comment:
OpenSSL cross-version updates are sometimes difficult because they invalidate
certifications. Updating Python to SSLv23 with SSL_OP_NO_SSLv2 is
comparatively easy and also much less riskier.
Shall I submit a patch which changes the default? I would also
Vinay Sajip added the comment:
I'm not sure it's related to #11557 - it's more likely to be my changes last
week to fix #17313, where I changed those tests to add
self.addCleanup(os.remove, 'test.log')
There's also an addCleanup that closes the handler which opens the file, which
should
Roundup Robot added the comment:
New changeset 85325bce9982 by Vinay Sajip in branch 'default':
Issue #17384: Consolidated cleanup operations in tests.
http://hg.python.org/cpython/rev/85325bce9982
--
nosy: +python-dev
___
Python tracker
Antoine Pitrou added the comment:
Florian this was already handled in issue #13636 (changeset f9122975fd80).
--
resolution: - out of date
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 76be5efa0d86 by Eli Bendersky in branch '3.2':
Issue #17378: ctypes documentation fix.
http://hg.python.org/cpython/rev/76be5efa0d86
New changeset 2cd2d8f8f72f by Eli Bendersky in branch '3.3':
Issue #17378: ctypes documentation fix.
Roundup Robot added the comment:
New changeset 2dd77a12e7bf by Eli Bendersky in branch '2.7':
Closing #17378: ctypes documentation fix.
http://hg.python.org/cpython/rev/2dd77a12e7bf
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
Roundup Robot added the comment:
New changeset ca9a85c36e09 by Benjamin Peterson in branch 'default':
fix warning (closes #17327)
http://hg.python.org/cpython/rev/ca9a85c36e09
--
resolution: - fixed
status: open - closed
___
Python tracker
Amaury Forgeot d'Arc added the comment:
The return value for error conditions should be -1.
- typeobject.c checks with 0
- in _iomodule.c, there is == -1
- and pygobject/gobject/gobjectmodule.c just does::
if (...tp_init(...))
PyErr_Print();
--
nosy: +amaury.forgeotdarc
Zbyszek Jędrzejewski-Szmek added the comment:
On Fri, Mar 08, 2013 at 02:30:18PM +, Amaury Forgeot d'Arc wrote:
Amaury Forgeot d'Arc added the comment:
The return value for error conditions should be -1.
- typeobject.c checks with 0
- in _iomodule.c, there is == -1
- and
Changes by karl karl+pythonb...@la-grange.net:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17376
___
___
Python-bugs-list
Éric Araujo added the comment:
Users of the TAR format usually come from UNIX,
so using the same command line options should not be so surprising.
Not sure about that: they could be Python users wanting to unpack a tarball
sdist. That said, there is no harm in being compatible, and I like
Henrik Heimbuerger added the comment:
Brought the ElementTree docs for find(), findtext() and findall() in line with
the default branch (now they are just referencing the methods from Element).
Made the same changes in the method comments of the implementation.
Separate patches for 2.7 and
Henrik Heimbuerger added the comment:
Patch for 3.2.
--
Added file: http://bugs.python.org/file29350/issue11367_branch32.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11367
___
Éric Araujo added the comment:
Text sounds correct to me. It says that imports should happen at the beginning
of a module, and that the names of imported modules are placed in the module
namespace. There is an implicit logical link between the two sentences, and
the wording of “symbol
Éric Araujo added the comment:
Are you offering the module for inclusion in the stdlib?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15873
___
Jeff Knupp added the comment:
I think Piotr's point is the wording of the last sentence is ambiguous. The
second statement reads It is customary *but not required* to place all import
statements at the beginning of a module The third seems to state that
regardless of whether or not you
Piotr Kuchta added the comment:
Jeff, thank you: that was exactly what I wanted to point out. The three
sentences read in order imply that it doesn't matter whether you import a
module at the top level of a script/module or in a function, because the effect
is the same, namely the imported
Éric Araujo added the comment:
It is customary *but not required* to place all import statements at the
beginning of a module The third seems to state that regardless of
whether or not you followed the custom, module names are always placed in
the global symbol table
Yes. Not following
Éric Araujo added the comment:
Ah, we have it: the tutorial distinguishes between “it’s customary to put
imports near the top of the file” vs. “later in the file”, and you interpret it
as “it’s customary to put imports at the module top level” vs. “import in any
scope e.g. functions”. These
1 - 100 of 173 matches
Mail list logo