[issue22628] Idle: Tree lines are spaced too close together.

2022-03-18 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: This is still/again broken, probably because the "fixed" version still hard-codes all of the geometry values and these will certainly not be correct for all combinations of display dpi, font configuration, etc. Instead, `Tre

[issue34602] python3 resource.setrlimit strange behaviour under macOS

2022-01-05 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: My understanding of the resolution of this ticket is that it is still not possible to use setrlimit with RLIMIT_STACK to raise the soft stack limit. Is that correct? In that case, the original bug report still seems valid and unresolved (and indeed

Tahoe-LAFS on Python 3 - Call for Porters

2019-09-24 Thread Jean-Paul Calderone
Hello Pythonistas, Earlier this year a number of Tahoe-LAFS community members began an effort to port Tahoe-LAFS from Python 2 to Python 3. Around five people are currently involved in a part-time capacity. We wish to accelerate the effort to ensure a

[ANN] txkube 0.3.0

2018-08-10 Thread Jean-Paul Calderone
org/pypi> You can contribute to its development on GitHub <https://github.com/LeastAuthority/txkube>. Thanks to Least Authority TFA GmbH <https://leastauthority.com/> for sponsoring this development and to Craig Rodrigues for his efforts on Python 3 porting work. Jean-Paul Calde

[ANN] txkube 0.3.0

2018-08-08 Thread Jean-Paul Calderone
org/pypi> You can contribute to its development on GitHub <https://github.com/LeastAuthority/txkube>. Thanks to Least Authority TFA GmbH <https://leastauthority.com/> for sponsoring this development and to Craig Rodrigues for his efforts on Python 3 porting work. Jean-Paul Calde

[ANN] txaws 0.5.0

2017-12-27 Thread Jean-Paul Calderone
Hello all, I'm pleased to announce the release of txAWS 0.5.0. txAWS is a library for interacting with Amazon Web Services (AWS) using Twisted. You can download the release from PyPI . Since the last release, the following enhancements have been made:

[ANN] kubetop 17.4.17.1

2017-04-18 Thread Jean-Paul Calderone
tps://pypi.python.org/pypi/kubetop> and GitHub <https://github.com/LeastAuthority/kubetop>. Install it in the usual way: pip install kubetop Thanks to Least Authority Enterprises <https://leastauthority.com/> for sponsoring this development. Jean-Paul Calderone http://as.ynch

[ANN] kubetop 17.4.17.1

2017-04-17 Thread Jean-Paul Calderone
tps://pypi.python.org/pypi/kubetop> and GitHub <https://github.com/LeastAuthority/kubetop>. Install it in the usual way: pip install kubetop Thanks to Least Authority Enterprises <https://leastauthority.com/> for sponsoring this development. Jean-Paul Calderone http://as.ynch

[ANN] txkube 0.1.0

2017-04-10 Thread Jean-Paul Calderone
pi.python.org/pypi>. You can contribute to its development on GitHub <https://github.com/LeastAuthority/txkube>. Thanks to Least Authority Enterprises <https://leastauthority.com/> for sponsoring this development. Jean-Paul Calderone http://as.ynchrono.us/ -- https://mail.python

[ANN] txkube 0.1.0

2017-04-10 Thread Jean-Paul Calderone
pi.python.org/pypi>. You can contribute to its development on GitHub <https://github.com/LeastAuthority/txkube>. Thanks to Least Authority Enterprises <https://leastauthority.com/> for sponsoring this development. Jean-Paul Calderone http://as.ynchrono.us/ -- https://mail.python.org/mailman/listinfo/python-list

[ANN] txAWS 0.3.0

2017-04-10 Thread Jean-Paul Calderone
GitHub for issues and source control <https://github.com/twisted/txaws> (https://github.com/twisted/txaws). Since the last release, the following enhancements have been made: - Jean-Paul Calderone added basic Route53 support. - Mark Williams add Auth v4, now used by the S3 and Rou

Announcing txAWS 0.2.3.1

2017-01-10 Thread Jean-Paul Calderone
I've just release txAWS 0.2.3.1. txAWS is a library for interacting with Amazon Web Services (AWS) using Twisted. AWSServiceEndpoint's ssl_hostname_verification's parameter now defaults to True instead of False. This affects all txAWS APIs which issue requests to AWS endpoints. For any

Announcing txAWS 0.2.3.1

2017-01-09 Thread Jean-Paul Calderone
I've just release txAWS 0.2.3.1. txAWS is a library for interacting with Amazon Web Services (AWS) using Twisted. AWSServiceEndpoint's ssl_hostname_verification's parameter now defaults to True instead of False. This affects all txAWS APIs which issue requests to AWS endpoints. For any

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2015-04-22 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: It's only been six years, no need to rush. -- nosy: +Jean-Paul Calderone ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6731

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2015-04-22 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -Jean-Paul Calderone, exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6731

[issue5305] imaplib should support international mailbox names

2015-04-21 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5305 ___ ___ Python-bugs

[issue21327] socket.type value changes after using settimeout()

2015-04-15 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21327 ___ ___ Python-bugs

[issue18629] future division breaks timedelta division by integer

2015-04-02 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18629 ___ ___ Python-bugs

[issue20718] OpenBSD/AIX: tests passing a file descriptor with sendmsg/recvmsg failures

2015-04-02 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20718 ___ ___ Python-bugs

[issue6555] distutils config file should have the same name on both platforms and all scopes

2015-04-02 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6555 ___ ___ Python-bugs

[issue6377] distutils compiler switch ignored

2015-04-02 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6377 ___ ___ Python-bugs

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-02 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20669 ___ ___ Python-bugs

[issue15945] memoryview + bytes fails

2015-03-24 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15945 ___ ___ Python-bugs

[issue1103213] Adding the missing socket.recvall() method

2015-01-19 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1103213

[issue5305] imaplib should support international mailbox names

2014-10-09 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: the twisted imap API is problematic for imaplib because twisted seems to expect its arguments to already be Python unicode. Could you elaborate on this? As far as I can tell, it works fine: import twisted.mail.imap4 print uHello, \N{SNOWMAN

[issue21965] Add support for Memory BIO to _ssl

2014-08-06 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Please do *not* add me to the nosy list of any issues. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965

[issue21965] Add support for Memory BIO to _ssl

2014-08-06 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___ ___ Python

[issue12600] Add example of using load_tests to parameterise Test Cases

2014-07-02 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12600 ___ ___ Python

[issue10721] Remove HTTP 0.9 server support

2014-06-27 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10721 ___ ___ Python

[issue4887] environment inspection and manipulation API is buggy, inconsistent with Python philosophy for wrapping native APIs

2014-06-17 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: What are the chances a future Python 2.x release will include any fix developed for this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4887

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: That commit was fixing an existing problem; perhaps not your problem, but someone's. To revert it would simply move the pain around. Doesn't the very same logic apply to the original commit? I hope to be able to work on this fairly soon. Thanks

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2014-06-10 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Please see http://bugs.python.org/issue21652 for a regression introduced by this change. -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9291

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-03 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___ Python

[issue2506] Add mechanism to disable optimizations

2014-05-16 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python

[issue4999] multiprocessing.Queue does not order objects

2014-05-14 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4999 ___ ___ Python

[issue4928] Problem with tempfile.NamedTemporaryFile

2014-05-14 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4928 ___ ___ Python

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-05-05 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1218234

[issue21408] delegation of `!=` to the right-hand side argument is not always done

2014-05-01 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: $ ~/Projects/cpython/3.4/python -c ' class Foo(object): def __ne__(self, other): return yup def __eq__(self, other): return nope class Bar(object): pass print(object() != Foo(), object() == Foo()) print(Bar() != Foo

[issue11798] Test cases not garbage collected after run

2013-08-03 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone exar...@twistedmatrix.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___ Python

[issue18629] future division breaks timedelta division by integer

2013-08-03 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: I think that's a very obscure interpretation of floor division for timedeltas :-) Note - I don't care about this. I just want `timedelta / int` to do the same thing in Python 2.7 with __future__.division as `timedelta / int` does in Python 3. Please

[issue18629] future division breaks timedelta division by integer

2013-08-02 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: datetime.timedelta instances are divisible by integers on Python 2.7, but not when __future__.division has been turned on: exarkun@top:~$ ~/Projects/cpython/2.7/python -c ' from datetime import timedelta print timedelta(seconds=3) / 2 ' 0:00:01.50

[issue18629] future division breaks timedelta division by integer

2013-08-02 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Hm. Maybe I am. Yet isn't true division implemented for this pair of types in Python 3? I'm not sure why it shouldn't be implemented for them in Python 2. Also that raises another question. Does a result of one and one half seconds make sense

[issue17134] Use Windows' certificate store for CA certs

2013-06-07 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Sounds promising. Do you think this should be hooked into SSLContext.set_default_verify_paths, or be exposed as a separate method? If there were an API which exposed the certificate material, then this would be more useful to libraries trying to do

[issue16195] Difficult or impossible to figure out how garbage collector and weak references should interact for user-defined extension types

2012-10-11 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: There appears to be very little, if any, documentation about how to handle the list at tp_weaklistoffset for types supporting being weak referenced, particularly with respect to garbage collection. Who owns the list? Who owns the objects in the list

[issue3982] support .format for bytes

2012-10-02 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Since Benjamin originally requested this feature, and then decided that he could accomplish his desired goal (ftplib porting, as far as I can tell) without it, I think that the rejected status is actually incorrect. I think that Benjamin just wanted

[issue3982] support .format for bytes

2012-10-02 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: The price of maintaining exceeds the potential very limited benefits from the use. The very limited benefits of being able to write I/O code without roughly 3 times code bloat? Perhaps for people who don't write code that does non-trivial I/O

[issue3982] support .format for bytes

2012-10-02 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: The development cost and maintenance cost is surely part of the evaluation when deciding whether to implement a feature, no? Sure, but in an open source project where almost all contributions are done by volunteers (ie, donated), what

[issue15945] memoryview + bytes fails

2012-09-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: What is the expected outcome? memoryviews can't be resized, so this scenario isn't possible: The same as `view.tobytes() + bytes`, but without the extra copy implied by `view.tobytes()`. Just prepend the empty bytestring if you want to make sure

[issue15945] memoryview + bytes fails

2012-09-15 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: Python 3.3.0rc2+ (default:9def2209a839, Sep 10 2012, 08:44:51) [GCC 4.6.3] on linux Type help, copyright, credits or license for more information. memoryview(b'foo') + b'bar' Traceback (most recent call last): File stdin, line 1, in module TypeError

[issue15911] Debugging import problems is hard

2012-09-10 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: Debugging problems involving the frozen importlib._bootstrap is difficult, because the source for importlib._bootstrap is not available to pdb. The bootstrap code can be stepped through, but with only function names and line numbers available

[issue15912] Intermittent import failure

2012-09-10 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: The attached unit test fails with an ImportError... sometimes. Here's a little blob of shell that seems to make the failure come up more quickly: while ~/Projects/cpython/3.3/python -m unittest -v test_broken_import; do rm -rf test_broken_import

Re: Async IO Server with Blocking DB

2012-04-04 Thread Jean-Paul Calderone
On Apr 3, 6:13 pm, looking for lookingforsmart...@gmail.com wrote: Hi We are thinking about building a webservice server and considering python event-driven servers i.e. Gevent/Tornado/ Twisted or some combination thereof etc. We are having doubts about the db io part. Even with connection

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-16 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone invalid@example.invalid: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14325

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-16 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: If it's a bit faster, that'd be a nice win, but I didn't benchmark. I'm primarily interested in correctness in the PyPy case (PyPy re-uses this code), and I think CPython benefits from the slightly simplified code as well. If you

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-15 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone invalid@example.invalid: Allocating a Python list and a bunch of Capsules for each PyArg_ParseTuple call is expensive and unnecessarily complicated. The freelist never escapes getargs.c (if it ever did, it would be a bug). The same job can

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-15 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone invalid@example.invalid: -- keywords: +patch Added file: http://bugs.python.org/file24873/getargs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14325

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-03-11 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: May somebody check for this? Otherwise the bug could be considered invalid. This is not the proper workflow for bug tracking. No one is working on this right now is not the same as This bug is invalid. No one worked

[issue13556] When tzinfo.utcoffset is out-of-bounds, the exception message is misleading

2011-12-08 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone invalid@example.invalid: When a timezone produces an out-of-bounds utc offset, the resulting exception always claims that the offset was 1440, rather than whatever it was. Example: from datetime import timedelta, datetime, tzinfo class X(tzinfo

[issue12944] Accept arbitrary files for packaging's upload command

2011-09-23 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: pysetup run upload -f dist/spam-0.2.tar.gz -f dist/spam-0.2.exe I'm not sure why it's run upload instead of just upload, but maybe that's the convention in pysetup. Apart from that, this looks like a vast improvement to me

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-07-28 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: Thanks for the patch Petri. Are you interested in writing a unit test for this as well? -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11657

Re: Howto Deferred

2011-07-14 Thread Jean-Paul Calderone
On Jul 14, 3:07 am, marco ma...@minasithil.org wrote: Hello gals and guys, I'm an experienced Python user and I'd like to begin playing with Twisted. I started RTFM the tutorial advised on the official site and I found it really useful and well done. Now I'd like to practice a bit by

[issue2506] Line tracing of continue after always-taken if is incorrect

2011-07-13 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: Since the main argument for not fixing this bug seems to be that it doesn't affect many users, it seems like I should comment here that the issue is affecting me. A recently proposed addition to Twisted gets bitten by this case

Re: Secure ssl connection with wrap_socket

2011-07-06 Thread Jean-Paul Calderone
On Jul 6, 4:44 am, AndDM anddima...@gmail.com wrote: On Jul 5, 4:08 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: On Jul 5, 4:52 am, Andrea Di Mario anddima...@gmail.com wrote: Hi, I'm a new python user and I'm writing a small web service with ssl. I want use a self

Re: Secure ssl connection with wrap_socket

2011-07-05 Thread Jean-Paul Calderone
On Jul 5, 4:52 am, Andrea Di Mario anddima...@gmail.com wrote: Hi, I'm a new python user and I'm writing a small web service with ssl. I want use a self-signed certificate like in wiki:http://docs.python.org/dev/library/ssl.html#certificates I've used wrap_socket, but if i try to use

[issue12443] locale.setlocale(locale.LC_ALL, locale.getlocale()) fails for some locales

2011-06-29 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone invalid@example.invalid: Consider this transcript from OS X 10.6: import locale locale.getlocale() (None, None) locale.setlocale(locale.LC_ALL, _) 'C' locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') 'en_US.UTF-8' locale.getlocale() ('en_US', 'UTF8

Re: How good is security via hashing

2011-06-07 Thread Jean-Paul Calderone
On Jun 7, 6:18 am, Robin Becker ro...@reportlab.com wrote: A python web process is producing files that are given randomized names of the form hh-MMDDhhmmss-.pdf where rrr.. is a 128bit random number (encoded as base62). The intent of the random part is to prevent

Re: How good is security via hashing

2011-06-07 Thread Jean-Paul Calderone
On Jun 7, 7:35 am, Robin Becker ro...@reportlab.com wrote: On 07/06/2011 11:26, Nitin Pawar wrote: Have you tried using UUID module? Its pretty handy and comes with base64 encoding function which gives extremely high quality randon strings ref:

Re: GIL in alternative implementations

2011-06-07 Thread Jean-Paul Calderone
On Jun 7, 12:03 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 May 2011 14:05:16 -0300, Steven D'Aprano   steve+comp.lang.pyt...@pearwood.info escribi : On Sat, 28 May 2011 09:39:08 -0700, John Nagle wrote: Python allows patching code while the code is executing.

Re: Sanitizing filename strings across platforms

2011-05-31 Thread Jean-Paul Calderone
On May 31, 10:17 pm, Tim Chase python.l...@tim.thechases.com wrote: Scenario: a file-name from potentially untrusted sources may have odd filenames that need to be sanitized for the underlying OS. On *nix, this generally just means don't use '/' or \x00 in your string, while on Win32, there

[issue12126] incorrect select documentation

2011-05-19 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone invalid@example.invalid: http://docs.python.org/py3k/howto/sockets.html#non-blocking-sockets And if you put a socket in more than one input list, it will only be (at most) in one output list. import socket s = socket.socket() s.connect(('localhost

Re: connect SIGINT to custom interrupt handler

2011-05-18 Thread Jean-Paul Calderone
On May 18, 9:28 am, Christoph Scheingraber s...@scheingraber.net wrote: On 2011-05-15, Miki Tebeka miki.teb...@gmail.com wrote: Why not just catch KeyboardInterrupt? Would it be possible to continue my program as nothing had happened in that case (like I did before, setting a flag to tell

Re: sockets: bind to external interface

2011-04-25 Thread Jean-Paul Calderone
On Apr 25, 3:49 pm, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 26, 2011 at 5:37 AM, Hans Georg Schaathun h...@schaathun.net wrote: Has anyone found a simple solution that can be administered without root privileges?  I mean simpler than passing the ip address manually :-) You

Re: When is PEP necessary?

2011-04-23 Thread Jean-Paul Calderone
On Apr 23, 5:09 pm, Daniel Kluev dan.kl...@gmail.com wrote: On Sat, Apr 23, 2011 at 11:16 PM, Disc Magnet discmag...@gmail.com wrote: Is PEP necessary to add a new package to the standard library? *skip* Don't forget that Python is not limited to CPython. Other implementations need these

Re: Why doesn't this asyncore.dispatcher.handle_read() get called?

2011-04-20 Thread Jean-Paul Calderone
On Apr 20, 12:25 pm, Dun Peal dunpea...@gmail.com wrote: Hi, I'm writing and testing an asyncore-based server. Unfortunately, it doesn't seem to work. The code below is based on the official docs and examples, and starts a listening and sending dispatcher, where the sending dispatcher

Re: Equivalent code to the bool() built-in function

2011-04-19 Thread Jean-Paul Calderone
On Apr 19, 10:23 am, Grant Edwards inva...@invalid.invalid wrote: On Tue, Apr 19, 2011 at 7:09 AM, Christian Heimes li...@cheimes.de wrote: Am 18.04.2011 21:58, schrieb John Nagle: ?? ?? This is typical for languages which backed into a bool type, rather than having one designed in. ??The

Re: Pickling over a socket

2011-04-19 Thread Jean-Paul Calderone
On Apr 19, 6:27 pm, Roger Alexander rtalexan...@mac.com wrote: Thanks everybody, got it working.  I appreciate the help! Roger. It's too bad none of the other respondents pointed out to you that you _shouldn't do this_! Pickle is not suitable for use over the network like this. Your server

Re: Questions about GIL and web services from a n00b

2011-04-16 Thread Jean-Paul Calderone
On Apr 16, 10:44 am, a...@pythoncraft.com (Aahz) wrote: In article e6008cc8-50f0-4d78-be78-ec6e73b97...@22g2000prx.googlegroups.com, Raymond Hettinger  pyt...@rcn.com wrote: Threading is really only an answer if you need to share data between threads, if you only have limited scaling needs,

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: Trial lets test cases get garbaged collected. When we noticed this wasn't happening, we treated it as a bug and fixed it. No one ever complained about the change. I don't see any obvious way in which an application would even

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: I thought unittest was just handed a bunch of TestCase instances and couldn't do much about insuring they were garbage collected. True. But unittest could ensure that it doesn't keep a reference to each TestCase instance after

[issue11798] Test cases not garbage collected after run

2011-04-07 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: Here's Trial's implementation: http://twistedmatrix.com/trac/browser/trunk/twisted/trial/runner.py#L138 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798

Re: Checking against NULL will be eliminated?

2011-03-03 Thread Jean-Paul Calderone
On Mar 3, 8:16 am, Neil Cerutti ne...@norwich.edu wrote: On 2011-03-03, Tom Zych freethin...@pobox.com wrote: Carl Banks wrote: Perl works deterministically and reliably.  In fact, pretty much every language works deterministically and reliably.  Total non-argument. Well, yes. I think

Re: interrupted system call w/ Queue.get

2011-02-18 Thread Jean-Paul Calderone
On Feb 17, 8:46 pm, Philip Winston pwins...@gmail.com wrote: We have a multiprocess Python program that uses Queue to communicate between processes.  Recently we've seen some errors while blocked waiting on Queue.get: IOError: [Errno 4] Interrupted system call What causes the exception?  Is

Re: How to handle sockets - easily?

2011-02-16 Thread Jean-Paul Calderone
On Feb 16, 1:59 pm, William Ahern will...@wilbur.25thandclement.com wrote: Bubba nickn...@banelli.biz.invalid wrote: snip import asyncore import socket import string import MySQLdb import sys snip     def __init__(self, host, port):        

Re: Shared memory python between two separate shell-launched processes

2011-02-11 Thread Jean-Paul Calderone
On Feb 11, 5:52 am, Charles Fox (Sheffield) charles@gmail.com wrote: On Feb 10, 6:22 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: On Feb 10, 12:21 pm, Charles Fox (Sheffield) charles@gmail.com wrote: On Feb 10, 3:43 pm, Jean-Paul Calderone calderone.jeanp

Re: Shared memory python between two separate shell-launched processes

2011-02-10 Thread Jean-Paul Calderone
On Feb 10, 9:30 am, Charles Fox (Sheffield) charles@gmail.com wrote: Hi guys, I'm working on debugging a large python simulation which begins by preloading a huge cache of data.  I want to step through code on many runs to do the debugging.   Problem is that it takes 20 seconds to load

Re: Shared memory python between two separate shell-launched processes

2011-02-10 Thread Jean-Paul Calderone
On Feb 10, 12:21 pm, Charles Fox (Sheffield) charles@gmail.com wrote: On Feb 10, 3:43 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: On Feb 10, 9:30 am, Charles Fox (Sheffield) charles@gmail.com wrote: Hi guys, I'm working on debugging a large python

Re: AF_UNIX socket not supported

2011-02-08 Thread Jean-Paul Calderone
On Feb 8, 7:30 am, gracemia grace...@gmail.com wrote: Hello ! I'm trying to develop with AF_UNIX socket type in python (2.5) but python says that AF_UNIX is not supported How can I do for work with AF_UNIX sockets? Thank you Where and when does Python say this to you?

Re: Idea for removing the GIL...

2011-02-08 Thread Jean-Paul Calderone
On Feb 8, 7:34 am, Vishal vsapr...@gmail.com wrote: On Feb 8, 3:05 pm, Adam Tauno Williams awill...@whitemice.org wrote: On Tue, 2011-02-08 at 01:39 -0800, Vishal wrote: Is it possible that the Python process, creates copies of the interpreter for each thread that is launched, and some

Re: Idea for removing the GIL...

2011-02-08 Thread Jean-Paul Calderone
On Feb 8, 7:12 pm, Paul Rubin no.em...@nospam.invalid wrote: But the refcount scheme is just an implementation hack that gets rationalized way too much.  I hope PyPy abandons it. Done. :) Jean-Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: sending through non-default gateway

2011-02-06 Thread Jean-Paul Calderone
On Feb 6, 1:10 am, Nikola Skoric n...@fly.srk.fer.hr wrote: Dana Sat, 5 Feb 2011 14:13:11 -0800, Dan Stromberg drsali...@gmail.com kaze: IIRC, this is an instance of what's called source routing, and was largely shut off after network admins realized it was a security issue. Of course,

Re: simplest way to create simple standalone wsgi server without import wsgi_lib.server

2011-02-01 Thread Jean-Paul Calderone
On Feb 1, 2:01 pm, Gelonida gelon...@gmail.com wrote: On 02/01/2011 03:07 AM, Jean-Paul Calderone wrote: On Jan 31, 5:28 pm, Gelonida gelon...@gmail.com wrote: Hi, Normally I use following code snippet to quickly test a wsgi module without a web server. import wsgi_lib.server

Re: simplest way to create simple standalone wsgi server without import wsgi_lib.server

2011-01-31 Thread Jean-Paul Calderone
On Jan 31, 5:28 pm, Gelonida gelon...@gmail.com wrote: Hi, Normally I use following code snippet to quickly test a wsgi module without a web server. import wsgi_lib.server wsgi_lib.server.run(application, port=port) However Now I'd like to test a small wsgi module on a rather old host (

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-20 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: Phillip, your argument about interfacing with code written in C doesn't work for built-in immutable types like str. Sure it does. Definitely-str is easier to handle in C than maybe-str-subclass. It doesn't matter that str

Re: Interrput a thread

2011-01-04 Thread Jean-Paul Calderone
On Jan 4, 12:31 pm, Fuzzyman fuzzy...@gmail.com wrote: On Jan 4, 3:31 pm, Roy Smith r...@panix.com wrote: In article 2ebc11a5-1b45-4faa-97b9-c84f0db01...@k22g2000yqh.googlegroups.com,  Fuzzyman fuzzy...@gmail.com wrote: It is unsafe to terminate an os level thread at an arbitrary

Re: Interrput a thread

2011-01-03 Thread Jean-Paul Calderone
On Jan 3, 3:22 pm, gervaz ger...@gmail.com wrote: On 3 Gen, 17:47, de...@web.de (Diez B. Roggisch) wrote: gervaz ger...@gmail.com writes: On 31 Dic 2010, 23:25, Alice Bevan–McGregor al...@gothcandy.com wrote: On 2010-12-31 10:28:26 -0800, John Nagle said: Even worse, sending

Re: Interrput a thread

2011-01-03 Thread Jean-Paul Calderone
On Jan 3, 4:17 pm, Adam Skutt ask...@gmail.com wrote: On Jan 3, 4:06 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: Multiple processes, ok, but then regarding processes' interruption there will be the same problems pointed out by using threads? No.  Processes can

Re: Interrput a thread

2011-01-03 Thread Jean-Paul Calderone
On Jan 3, 6:17 pm, Adam Skutt ask...@gmail.com wrote: On Jan 3, 5:24 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: Of course.  The whole point here is not about threads vs processes. It's about shared memory concurrency vs non-shared memory concurrency.  You can implement

Re: Design Ideals Goals Python 3 - Forest for the trees

2010-12-26 Thread Jean-Paul Calderone
On Dec 26, 5:34 am, Alice Bevan–McGregor al...@gothcandy.com wrote: I've never really attempted to use JIT optimizers due to the fact that all of my development and production environments are 64-bit, and I haven't found one yet that supports 64-bit properly.  Relying on dead projects,

Re: dns library

2010-12-09 Thread Jean-Paul Calderone
On Dec 9, 8:15 pm, Paulo da Silva psdasilva.nos...@netcabonospam.pt wrote: Hi. Is there a python library/module to handle both the server and client sides of dns protocol? I have googled for it but I only found client side ones (at least from the superficial readings I did). Thanks.

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone inva...@example.invalid: This is somewhat unfortunate behavior: from xml.etree.ElementTree import QName QName('foo') xml.etree.ElementTree.QName instance at 0x10049c830 It becomes even more apparent when encountered in a situation like this: print

  1   2   3   4   5   6   7   8   9   10   >