Jeff McNeil added the comment:
Do we have a decision on this yet? I'm willing to rework bits that may need
it, but I'd like to know whether this is going to be a fruitful effort or not.
Thanks!
--
___
Python tracker rep...@bugs.python.org
http
Jeff McNeil added the comment:
Fixing the underlying connect call should also address EINTR failing with a
operation already in progress when a connect+timeout fails due to a signal.
I can understand not addressing EINTR generically (though it is already
partially addressed in 2.7's
Jeff McNeil added the comment:
I'm not a big fan of the settimeout approach myself (and only did it because it
was mentioned as a possible approach). I think the existing implementations of
EINTR retry also suffer from the same issue in which the timeout isn't adjusted
per iteration
Jeff McNeil added the comment:
Added a flag to allow for at least one run -- I know nothing of non-Linux clock
resolution. That should handle that.
As for the thread safety of the socket timeouts, yeah, that was why I didn't do
that initially, I assumed the suggestion to take that approach
Jeff McNeil added the comment:
Actually, never mind that suggestion. Now that I think a bit more about it,
that actually doesn't do anything since I'd still need to set the updated
timeout on the current socket object anyway. Whoops.
I'll leave it up to you as to whether we go
Jeff McNeil added the comment:
Updated to recalculate timeout at Python level. The current module already
works this way on recv() calls. See attached.
I'd be happy to churn through and fix the other modules (using the 3.5 work as
a guide), though I think only addressing the higher level
Jeff McNeil added the comment:
Missed check on _ex func.
--
Added file: http://bugs.python.org/file38865/socket_eintr.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23863
Jeff McNeil added the comment:
So, yeah, that's right. In the attached patch, I'm closing the file descriptor
if the timeout/error happens on a non-blocking call. It fails with an EBADF on
reconnect at that point, but it doesn't potentially leave an FD in the proc's
file table.
Should
Jeff McNeil added the comment:
Whoops. Accidentally attached the wrong patch that I generated during testing.
--
Added file: http://bugs.python.org/file38832/socket_eintr.1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Jeff McNeil added the comment:
mcjeff@mcjeff:~/cpython_clean$ hg summary
parent: 95416:fe34dfea16b0
Escaped backslashes in docstrings.
branch: 2.7
commit: 3 modified, 3 unknown
update: (current)
--
keywords: +patch
nosy: +gregory.p.smith
Added file: http://bugs.python.org/file38826
New submission from Jeff McNeil:
There are a collection of places in the socket module that do not correctly
retry on EINTR. Updated to wrap those calls in a retry loop. However, when
fixing connect calls, I noticed that when EINTR is retried on a socket with a
timeout specified, the retry
Jeff McNeil added the comment:
Reverting of the len(block) back to 'bs' here aside, does it even make sense to
include block information at all?
That's the attempted read size, so it might not be an accurate representation
of the size of the data actually read. Thus the reason
Jeff McNeil added the comment:
Ah, disregard. I followed up on the other bug. The legacy interface indeed
should have stayed consistant.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
New submission from Jeff McNeil:
mcjeff@martian:~/cpython$ ./python -V
Python 3.4.0a0
When an SSLSocket is created via SSLContext.wrap_socket, it is passed a
_context parameter directly. SSLSocket.__init__ sets self.context at this
point, but it does not set self.keyfile or self.certfile
Jeff McNeil added the comment:
Ak! Yes, cut and paste error.
Python 3.4.0a0 (default:57a33af85407, Oct 27 2012, 21:26:30)
[GCC 4.4.3] on linux
Type help, copyright, credits or license for more information.
import ssl
c = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
c.load_cert_chain('Lib
Jeff McNeil added the comment:
Updated to pass in the parent context only actually, as it doesn't look like
all of the attributes on SSLSocket will be set if a context was initially
passed in.
--
Added file: http://bugs.python.org/file27784/ssl_context_2.patch
Jeff McNeil added the comment:
I've hacked this support in myself a few times with a simple socket wrap call
in SimpleXMLRPCServer's __init__. I'd be happy to put a quick patch together
if that's a viable approach.
Is there any desire to support client authentication or advanced features
Jeff McNeil added the comment:
Attached... worked in the way I've done it in the past and updated documents.
--
keywords: +patch
Added file: http://bugs.python.org/file27773/ssl_xmlrpc_server.patch
___
Python tracker rep...@bugs.python.org
http
Jeff McNeil added the comment:
Gave this a go myself...
$ ./python
Python 3.4.0a0 (default:57a33af85407, Oct 27 2012, 21:26:30)
[GCC 4.4.3] on linux
Type help, copyright, credits or license for more information.
import socket
socket.getfqdn()
'host.domain.com'
$ hostname -f
Jeff McNeil added the comment:
Yeah clearly the wrong behavior on Winders.
I think that moving to 'normpath' instead of 'normcase' is likely the right
thing to do. Patch is attached, so if someone with commit powers could review
real quick I'll address whatever needs to be addressed.
IMHO
Jeff McNeil j...@jmcneil.net added the comment:
Yeah, that's a good point too. I still personally favor the transport
encapsulation and related unit testing, but I think that's a call for someone
with a snake icon next to their tracker name.
Your English is just fine
Jeff McNeil j...@jmcneil.net added the comment:
I would think it might make more sense just to make the change to the Transport
object. Since there's an argument for a transport on ServerProxy already, that
seems more straightforward and keeps the network layer isolated.
Otherwise, it seems
Jeff McNeil j...@jmcneil.net added the comment:
I went through the patch real quick and I noticed that your using single
element tuples in your string formatting. That makes sense in situations where
the argument might itself be a tuple, however, not on calls to len() as that
will return
Jeff McNeil j...@jmcneil.net added the comment:
I looked at doing this. The empty() and full() methods are marked with a
disclaimer stating they're likely to be removed at some point?
I'm curious, does just checking the value of Queue.unfinished_tasks satisfy
the requirement? It could still
Jeff McNeil j...@jmcneil.net added the comment:
Quick little patch to change the default to None and update the corresponding
documentation.
--
keywords: +patch
nosy: +mcjeff
Added file: http://bugs.python.org/file25044/urllib_urlopen_default.patch
Jeff McNeil j...@jmcneil.net added the comment:
I was looking at a somewhat unrelated issue and I bumped up against a similar
situation with the warnings system.
I didn't look too much into it, but it appeared that warnings didn't get added
to __warningregistry__ correctly. Though, when I
Jeff McNeil j...@jmcneil.net added the comment:
Disregard. That was in concert with ntpath, which uses a funky approach to
testing.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
Jeff McNeil j...@jmcneil.net added the comment:
Here's a tiny patch that just changes normcase-normpath. This fixes the
casing issue at the 'gettempdir' level, though it doesn't address the
'normcase' function itself.
Note that *both* macpath.py and ntpath.py use s.lower, which obviously
Jeff McNeil j...@jmcneil.net added the comment:
It doesn't seem to me that the right approach on either platform is to simply
downcase. Maybe just deprecate the call altogether as its not doing anything
normpath isn't if the s.lower call is removed
Jeff McNeil j...@jmcneil.net added the comment:
The normcase call isn't exactly a no-op in ntpath.py as it also swaps / for \\.
Removing the .lower() seems to simply make it a watered down version of
normpath.
There are a couple of options I guess. We could simply keep the altsep
Jeff McNeil j...@jmcneil.net added the comment:
I don't see why we'd need to make these _private -- they're just
accessors/mutators for the most part. I'd be happy to help clean this up if
you need it.
--
___
Python tracker rep...@bugs.python.org
Jeff McNeil j...@jmcneil.net added the comment:
Did this ever get committed? Is there anything left for me to do here?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12890
Jeff McNeil j...@jmcneil.net added the comment:
I made the change suggested in the last comment, patch is attached. Trying to
clean up any bugs I've got my name on!
--
keywords: +patch
Added file: http://bugs.python.org/file24816/makedirs_function.patch
Jeff McNeil j...@jmcneil.net added the comment:
Documentation patch to outline the use of context manager protocol attached.
Trying to cleanup any bugs with my name on them.
--
keywords: +patch
Added file: http://bugs.python.org/file24817/urllib_request_doc.patch
Changes by Jeff McNeil j...@jmcneil.net:
--
nosy: -mcjeff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
___
___
Python-bugs-list mailing
Jeff McNeil j...@jmcneil.net added the comment:
In an effort to walk through bugs in my nosy list, I dug into this and tried to
reproduce it to no avail.
Also, as the handle_error method is supposed to handle problems gracefully,
calling shutdown on handle_error exception is probably
Jeff McNeil j...@jmcneil.net added the comment:
Ah, understood. I kind of like the idea of having the added functionality
behind a custom callable, but if it's generally just a bug then copystat is a
good solution, too.
--
___
Python tracker rep
Jeff McNeil j...@jmcneil.net added the comment:
Yeah, updated with different wording and proper caps. I left the piece in
regarding the use without the context manager as I think that's probably the
more common use case still.
--
Added file: http://bugs.python.org/file24832
Jeff McNeil j...@jmcneil.net added the comment:
I'd be happy to do that (URLopener, to begin with), though I'm not familiar
with the usual approach. Is it simply a matter of warning in __init__?
--
nosy: +mcjeff
___
Python tracker rep
Jeff McNeil j...@jmcneil.net added the comment:
The actual implementation calls os.path.normcase from
tempfile._get_default_tempdir. In this scenario here, that resolves to the
ntpath module triggers a lowercase conversion.
On the other hand, the posixpath module is simply an identity
Changes by Jeff McNeil j...@jmcneil.net:
Added file: http://bugs.python.org/file23743/head-cgitb-display.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12890
Jeff McNeil j...@jmcneil.net added the comment:
Added everything to one file. Updated tests to also include a logdir argument
as that is required to trigger the original bug. Weeded out a spurious write
that occurred when format was set to text.
--
Added file: http://bugs.python.org
Jeff McNeil j...@jmcneil.net added the comment:
Is there anything else needed here?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12890
Jeff McNeil j...@jmcneil.net added the comment:
I didn't add one initially as I was just changing output format and not actual
behavior. I guess I could add something to ensure it doesn't regress? I'll
make sure there's coverage to begin
Jeff McNeil j...@jmcneil.net added the comment:
Test to ensure html isn't included when the formatting is text. I don't seem
to be able to update the stage.
--
Added file: http://bugs.python.org/file23731/head-cgitb-display-tests.patch
___
Python
New submission from Jeff McNeil j...@jmcneil.net:
If cgitb.enable is ran with a logdir set and a format='text' argument, then a
trailing message is printed that includes p tags. This should only happen if
the format requested is HTML.
The following tiny script shows the problem:
import
Jeff McNeil j...@jmcneil.net added the comment:
Isn't that snippet (contextlib.closing(...)) passing the result of
urllib.urlopen to closing? The urlopen call is a factory function of sorts, so
there's really no context to manage on its part? Maybe it's just a matter of
making that clear
New submission from Jeff McNeil j...@jmcneil.net:
Per discussion within Issue10050, URLopener ought to support the context
manager protocol. That allows more idiomatic usage and doesn't require calls to
contextlib.closing for use with the 'with' statement.
If agreed, I'll create a patch
Changes by Jeff McNeil j...@jmcneil.net:
--
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12365
___
___
Python-bugs-list
Jeff McNeil j...@jmcneil.net added the comment:
In looking at this again, I may have spoken too soon. It seems that addinfobase
HTTPResponse already handle this. As this is what's returned by the opener,
then what I was shooting for should already be handled.
--
status: open - closed
Jeff McNeil j...@jmcneil.net added the comment:
I'd be happy to pick some of that stuff up. I'd like to address separately as
it keeps fewer concerns in this one patch. I'll grab them once they're created.
--
___
Python tracker rep
Jeff McNeil j...@jmcneil.net added the comment:
Just wanted to check so this doesn't sit with people waiting on me. Is there
anything else I need/should do to this patch? Little unclear on how to handle
the deprecation process.
--
___
Python
Jeff McNeil j...@jmcneil.net added the comment:
I'm not exactly sure what the steps are with respect to the DeprecationWarning.
Is the common case just to raise the warning in the __init__ method? Are there
related documentation changes?
Thanks again! Learning a ton. Hopefully the next patch
Jeff McNeil j...@jmcneil.net added the comment:
I'll make those changes, sure. I had the same thought re: block size, but I
was trying to keep inline with what the current function did.
--
___
Python tracker rep...@bugs.python.org
http
Jeff McNeil j...@jmcneil.net added the comment:
Take four! Includes Antoine's suggestions. I changed the callback to return
(block num, read size, file size) as opposed to (block num, block size, file
size) as this seems to make more sense.
I appreciate the back and forth. I'd be happy
Jeff McNeil j...@jmcneil.net added the comment:
Alright, attaching a patch that reworks urlretrieve to use urlopen internal to
urllib.request.
1. I dropped the local caching as it isn't turned on by default anyway (and
isn't really documented).
2. Updated documentation to reflect caching
Jeff McNeil j...@jmcneil.net added the comment:
Made recommended changes. Moved to NamedTemporaryFile. I don't think the
spooled file makes sense here as the existing protocol provides a filename in
the returned tuple, not a f.l.o.
As far as the description? Here are a couple suggestions
Jeff McNeil j...@jmcneil.net added the comment:
Made requested change to Synopsis/Description.
--
Added file: http://bugs.python.org/file21287/issue10050.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
Jeff McNeil j...@jmcneil.net added the comment:
So, it turned out to be more complicated than that. The HTTPConnection object
returns an HTTPResponse, but never closes the underlying socket after calling
makesock.
Since persistent connections aren't supported, nothing actually closes
Jeff McNeil j...@jmcneil.net added the comment:
Sounds good. I'll look at doing that, too.
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11563
Changes by Jeff McNeil j...@jmcneil.net:
--
nosy: +mcjeff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
___
___
Python-bugs-list mailing
Changes by Jeff McNeil j...@jmcneil.net:
--
nosy: +mcjeff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11563
___
___
Python-bugs-list mailing
Jeff McNeil j...@jmcneil.net added the comment:
So, I've been meaning to get more into contributing back to Python and I found
this one somewhat interesting.
As it turns out, even the following simple script raises the same warning:
[jeff@martian cpython]$ ./python -c 'import urllib.request
Jeff McNeil j...@jmcneil.net added the comment:
I entirely forgot I had signed up to look, my apologies.
I'm going through this w/ what's lying on Mercurial's tip, I can't reproduce it
at all. I can raise exceptions of various flavors from within the handle method
of a StreamRequestHandler
Jeff McNeil j...@jmcneil.net added the comment:
I'll see if I can get it to reproduce and put a patch together.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1429
On Jul 15, 11:54 am, guandalino guandal...@gmail.com wrote:
Hi, suppose I have python 2.6.4 installed from source and I want to
upgrade to 2.6.5. Python standard library is automatically upgraded at
2.6.5 as well, while 3rd party pure Python and extension modules in
site-packages don't. Is it
Jeff McNeil j...@jmcneil.net added the comment:
I was toying with adding Unix Socket support for one of our internal tools and
I thought I ran into a leak in my own code. Searched the bug tracker and found
this.
I tried to reproduce, but wasn't able to. Though, if you look
Jeff McNeil j...@jmcneil.net added the comment:
Attaching a patch against the trunk, unified format, changed to 'number' as per
suggestion.
--
versions: +Python 2.7 -Python 2.6
Added file: http://bugs.python.org/file17155/stdtypes.rst.trunk.patch
New submission from Jeff McNeil j...@jmcneil.net:
I was going through the string formatting examples this evening and noticed
this:
print '%(language)s has %(#)03d quote types.' % \
{'language': Python, #: 2}
The example uses a '#' as a map key. This is somewhat misleading as if we
Changes by Jeff McNeil j...@jmcneil.net:
--
nosy: +mcjeff -j_mcneil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1666318
___
___
Python-bugs-list
On Nov 25, 4:45 am, Jon Clements jon...@googlemail.com wrote:
On Nov 25, 8:13 am, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Tue, 24 Nov 2009 22:42:28 -0800, John Nagle wrote:
My dedicated hosting provider wants to switch me to a new server with
CentOS 5.3, so I
On Nov 16, 3:33 pm, hong zhang henryzhan...@yahoo.com wrote:
List,
I try to assign value to force_mcs sitting in a wildcard subdirectory
/sys/kernel/debug/ieee80211/phy*, but python does not work for that such as:
os.system(echo %i /sys/kernel/debug/ieee80211/phy*/iwlagn/data/force_mcs
%
On Sep 25, 3:22 pm, tinn...@isbd.co.uk wrote:
I can't get the list_folders() method of the mailbox.Maildir class to
do anything remotely useful. It seems to do nothing at all. I have a
directory which contains a number of maildir malboxes:-
chris$ ls -l /home/chris/Mail/apex
total
On Sep 25, 4:13 pm, tinn...@isbd.co.uk wrote:
Jeff McNeil j...@jmcneil.net wrote:
On Sep 25, 3:22 pm, tinn...@isbd.co.uk wrote:
I can't get the list_folders() method of the mailbox.Maildir class to
do anything remotely useful. It seems to do nothing at all. I have a
directory which
On Sep 25, 4:28 pm, Jeff McNeil j...@jmcneil.net wrote:
On Sep 25, 4:13 pm, tinn...@isbd.co.uk wrote:
Jeff McNeil j...@jmcneil.net wrote:
On Sep 25, 3:22 pm, tinn...@isbd.co.uk wrote:
I can't get the list_folders() method of the mailbox.Maildir class to
do anything remotely
On Sep 23, 12:15 pm, Ashok asho...@gmail.com wrote:
Hi,
I have sqlalchemy package installed on the server. However I want to
run a script on the client that uses the sqlalchemy package. Hence I
shared the directory containing the sqlalchemy unsing NFS. Then I
added the NFS pathname to the
On Sep 23, 12:51 pm, volcano mark.gey...@gmail.com wrote:
Hi, folks,
I have a Python script that is invoked by a shell script. I uses
sys.exit() with a parameter within python.
The calling script is using this line to get the return code:
exit_code = !$
but it fails to get it. What's wrong
On Sep 23, 1:46 pm, Bakes ba...@ymail.com wrote:
I am using ftplib for a project, using a try/except loop.
I would like to find out the exception, but I am a python newbie and
do not know how.
How, in a try/except loop would I find the ftplib exception?
For a bit on exception handling in
On Sep 23, 8:29 pm, Tvrtko qvx3...@gmail.com wrote:
Hello,
Is there any good alternative to twisted for network programming which
doesn't involve asynchronous programming? I don't really like the
asynchronous model because it is hard to incorporate all other
blocking libraries that I have to
On Sep 18, 3:05 pm, Sean DiZazzo half.ital...@gmail.com wrote:
On Sep 18, 11:54 am, kj no.em...@please.post wrote:
I've often come across the idea that good Python style deals with
potential errors using an EAFP (easier to ask forgiveness than
permission) strategy rather than a LBYL
On Jun 23, 7:47 am, Klein Stéphane steph...@harobed.org wrote:
Hi,
I wonder what Python Index server (like as pypi.python.org) do you use in
your corporation for handle your private python eggs ?
I found three solutions :
*http://pypi.python.org/pypi/basketweaver/0.1.2-r6
On Jun 23, 6:59 am, Francesco Bochicchio bieff...@gmail.com wrote:
Hi all,
is there any site that reports the current porting (to Python 3.x)
status of the main non-standard extension modules (such as pygtk,
pywin32, wxpython, ...) ?
I think such information would be very useful for people -
On Jun 16, 12:51 pm, Hans Müller heint...@web.de wrote:
Richard,
thanks a lot for your hint, that was completely new for me.
Nagle's optimisation is definitely a good idea in most cases.
By the way, do you have an idea how to access the underlying socket to modify
the behavier
via the
On Jun 12, 10:05 am, Paul LaFollette paul.lafolle...@gmail.com
wrote:
Kind people,
Using Python 3.0 on a Gatesware machine (XP).
I am building a class in which I want to constrain the types that can
be stored in various instance variables. For instance, I want to be
certain that self.loc
Jeff McNeil j...@jmcneil.net added the comment:
I ran into this problem this afternoon as well. The same issue appears
to exist within the Basic Digest Auth retry code (though it's much
less likely to surface).
I wound up making the suggested fixes to my local install so I'm
attaching the tiny
On Jun 10, 10:19 am, Amit Dor-Shifer ami...@oversi.com wrote:
Hi all.
I'd like to print-out a dictionary of objects. The printed values are
references. How Do I print the actual objects.
class MyClass:
def __str__(self):
return str(self.__dict__)
if __name__ == '__main__':
On Jun 10, 10:26 am, Sparky samnspa...@gmail.com wrote:
Hey! I am developing a small application that tests multiple websites
and compares their response time. Some of these sites do not respond
to a ping and, for the measurement to be standardized, all sites must
have the same action
On Jun 9, 2:22 pm, mrstevegross mrstevegr...@gmail.com wrote:
I'm trying to write a try/catch block to handle an interrupted system
call. However, I can't seem to locate information on the actual
typename of the exception. Does anyone know what it would be? I want
my code to look like this:
On Jun 8, 11:33 am, Gary Herron gher...@islandtraining.com wrote:
Kless wrote:
Is there any way of to get the class name to avoid to have that write
it?
---
class Foo:
super(Foo, self)
---
* Using Py 2.6.2
The question does not make sense:
to have
On Jun 8, 3:47 pm, Chris Rebert c...@rebertia.com wrote:
On Mon, Jun 8, 2009 at 11:43 AM, lczancanellalczancane...@gmail.com wrote:
Hi,
in hashlib the hash methods have as parameters just string, i want to
know how can i digest an object to get a md5 hash of them.
Hashes are only defined
On May 28, 2:23 pm, Daniel daniel.watr...@gmail.com wrote:
Hello,
Python 2.5.2
WinXP
I'm using CGIHTTPServer.py and want to return a response code of 400
with a message in the event that the cgi script fails for some
reason. I notice that
run_cgi(self):
executes this line of code,
On May 27, 12:29 pm, powah wong_po...@yahoo.ca wrote:
I want to download all mib files from the web
page:http://www.juniper.net/techpubs/software/junos/junos94/swconfig-net-m...
All mib filenames are of this format:www.juniper.net/techpubs... .txt
I write this program but has the following
On May 26, 2:12 pm, lone_eagle icym...@gmail.com wrote:
Hi all,
On Linux, I do something like this
$ program_to_execute input_file
... get some output ...
I have the content of the input_file as a string inside a python
program and would like to pass this string to the external program
On May 19, 2:54 pm, Stefano Costa st...@iosa.it wrote:
Hi,
my name is Stefano Costa, I am an archaeologist and I am developing
GNUCal, a radiocarbon calibration program released under the GNU GPL.
[1][2]
Currently the program consists of a small library, largely based on
Matplotlib and
On May 18, 11:22 am, timh zutes...@gmail.com wrote:
Hi
I am trying to understand something about how the 'in' operator (as in
the following expression)
if 'aa' in x:
do_something()
When trying to implement in support on a class it appears that if
__contains__ doesn't exist
in falls
On May 18, 11:31 am, Tim Hoffman zutes...@gmail.com wrote:
Hi Marco
Thats definately what I think is happening.
I tried the following
class yy(object):
... def __getitem__(self,name):
... raise KeyError(name)
... def __contains__(self,name):
... raise KeyError(name)
...
On May 18, 11:45 pm, Wincent ronggui.hu...@gmail.com wrote:
If you want to write to a csv file, the other option is savetxt in
NumPy module.
Best
On May 19, 7:29 am, John Machin sjmac...@lexicon.net wrote:
On May 19, 5:12 am, Terry Reedy tjre...@udel.edu wrote:
Kalyan Chakravarthy
On May 11, 5:45 pm, Chris Rebert c...@rebertia.com wrote:
On Mon, May 11, 2009 at 1:44 PM, Sam Tregar s...@tregar.com wrote:
Greetings. I'm working on learning Python and I'm looking for good books to
read. I'm almost done with Dive into Python and I liked it a lot. I found
Programming
On May 15, 10:50 am, mrstevegross mrstevegr...@gmail.com wrote:
Remind me: is it possible to craft an import statement like this:
import foo.bar
If so, what's going on here exactly? Is Python looking for a module
called 'bar', in a directory called 'foo', in a search path somewhere?
Or am
You can pull it out of f.func_code.co_varnames, but I don't believe
that's a very good approach. I tend to veer away from code objects
myself.
If you know how many arguments are passed into the wrapped function
when it's defined, you can write a function that returns your
decorator. As an
1 - 100 of 206 matches
Mail list logo