-
Notifications
You must be signed in to change notification settings - Fork 395
/
Copy pathdis.po
2881 lines (2488 loc) · 109 KB
/
dis.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright (C) 2001-2020, Python Software Foundation
# This file is distributed under the same license as the Python package.
# Maintained by the python-doc-es workteam.
# https://mail.python.org/mailman3/lists/docs-es.python.org/
# Check https://github.com/python/python-docs-es/blob/3.8/TRANSLATORS to
# get the list of volunteers
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-21 16:38-0300\n"
"PO-Revision-Date: 2024-11-24 19:55+0100\n"
"Last-Translator: Cristián Maureira-Fredes <[email protected]>\n"
"Language-Team: python-doc-es\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.16.0\n"
"X-Generator: Poedit 3.4.2\n"
#: ../Doc/library/dis.rst:2
msgid ":mod:`!dis` --- Disassembler for Python bytecode"
msgstr ":mod:`!dis` --- Desensamblador para bytecode de Python"
#: ../Doc/library/dis.rst:7
msgid "**Source code:** :source:`Lib/dis.py`"
msgstr "**Código fuente:** :source:`Lib/dis.py`"
#: ../Doc/library/dis.rst:17
msgid ""
"The :mod:`dis` module supports the analysis of CPython :term:`bytecode` by "
"disassembling it. The CPython bytecode which this module takes as an input "
"is defined in the file :file:`Include/opcode.h` and used by the compiler and "
"the interpreter."
msgstr ""
"El módulo :mod:`dis` admite el análisis de CPython :term:`bytecode` al "
"desarmarlo. El bytecode de CPython que este módulo toma como entrada se "
"define en el archivo :file:`Include/opcode.h` y lo utilizan el compilador y "
"el intérprete."
#: ../Doc/library/dis.rst:24
msgid ""
"Bytecode is an implementation detail of the CPython interpreter. No "
"guarantees are made that bytecode will not be added, removed, or changed "
"between versions of Python. Use of this module should not be considered to "
"work across Python VMs or Python releases."
msgstr ""
"Bytecode es un detalle de implementación del intérprete CPython. No se "
"garantiza que el bytecode no se agregará, eliminará ni cambiará entre las "
"versiones de Python. El uso de este módulo no debe considerarse para "
"trabajar en diferentes máquinas virtuales Python o versiones de Python."
#: ../Doc/library/dis.rst:29
msgid ""
"Use 2 bytes for each instruction. Previously the number of bytes varied by "
"instruction."
msgstr ""
"Use 2 bytes para cada instrucción. Anteriormente, el número de bytes variaba "
"según la instrucción."
#: ../Doc/library/dis.rst:33
msgid ""
"The argument of jump, exception handling and loop instructions is now the "
"instruction offset rather than the byte offset."
msgstr ""
"El argumento de las instrucciones de salto, manejo de excepciones y bucle "
"ahora es el desplazamiento de instrucción en lugar del desplazamiento de "
"byte."
#: ../Doc/library/dis.rst:37
msgid ""
"Some instructions are accompanied by one or more inline cache entries, which "
"take the form of :opcode:`CACHE` instructions. These instructions are hidden "
"by default, but can be shown by passing ``show_caches=True`` to any :mod:"
"`dis` utility. Furthermore, the interpreter now adapts the bytecode to "
"specialize it for different runtime conditions. The adaptive bytecode can be "
"shown by passing ``adaptive=True``."
msgstr ""
"Algunas instrucciones están acompañadas de una o más entradas de caché en "
"línea, que toman la forma de instrucciones :opcode:`CACHE`. Estas "
"instrucciones están ocultas de forma predeterminada, pero se pueden mostrar "
"al pasar ``show_caches=True`` a cualquier utilidad :mod:`dis`. Además, el "
"intérprete ahora adapta el código de bytes para especializarlo en diferentes "
"condiciones de ejecución. El código de bytes adaptativo se puede mostrar al "
"pasar ``adaptive=True``."
#: ../Doc/library/dis.rst:45
msgid ""
"The argument of a jump is the offset of the target instruction relative to "
"the instruction that appears immediately after the jump instruction's :"
"opcode:`CACHE` entries."
msgstr ""
"El argumento de un salto es el desplazamiento de la instrucción de destino "
"en relación con la instrucción que aparece inmediatamente después de las "
"entradas :opcode:`CACHE` de la instrucción de salto."
#: ../Doc/library/dis.rst:50
msgid ""
"As a consequence, the presence of the :opcode:`CACHE` instructions is "
"transparent for forward jumps but needs to be taken into account when "
"reasoning about backward jumps."
msgstr ""
"Como consecuencia, la presencia de las instrucciones :opcode:`CACHE` es "
"transparente para los saltos hacia adelante, pero debe tenerse en cuenta al "
"razonar sobre los saltos hacia atrás."
#: ../Doc/library/dis.rst:54
msgid ""
"The output shows logical labels rather than instruction offsets for jump "
"targets and exception handlers. The ``-O`` command line option and the "
"``show_offsets`` argument were added."
msgstr ""
"La salida muestra etiquetas lógicas en lugar de desplazamientos de "
"instrucciones para destinos de salto y controladores de excepciones. Se "
"agregaron la opción de línea de comandos ``-O`` y el argumento "
"``show_offsets``."
#: ../Doc/library/dis.rst:59
msgid "Example: Given the function :func:`!myfunc`::"
msgstr "Ejemplo: Dada la función :func:`!myfunc`::"
#: ../Doc/library/dis.rst:61
msgid ""
"def myfunc(alist):\n"
" return len(alist)"
msgstr ""
"def myfunc(alist):\n"
" return len(alist)"
#: ../Doc/library/dis.rst:64
msgid ""
"the following command can be used to display the disassembly of :func:`!"
"myfunc`:"
msgstr ""
"El siguiente comando se puede utilizar para mostrar el desmontaje de :func:`!"
"myfunc`:"
#: ../Doc/library/dis.rst:67
msgid ""
">>> dis.dis(myfunc)\n"
" 2 RESUME 0\n"
"\n"
" 3 LOAD_GLOBAL 1 (len + NULL)\n"
" LOAD_FAST 0 (alist)\n"
" CALL 1\n"
" RETURN_VALUE"
msgstr ""
">>> dis.dis(myfunc)\n"
" 2 RESUME 0\n"
"\n"
" 3 LOAD_GLOBAL 1 (len + NULL)\n"
" LOAD_FAST 0 (alist)\n"
" CALL 1\n"
" RETURN_VALUE"
#: ../Doc/library/dis.rst:77
msgid "(The \"2\" is a line number)."
msgstr "(El \"2\" es un número de línea)."
#: ../Doc/library/dis.rst:82
msgid "Command-line interface"
msgstr "Interfaz de línea de comandos"
#: ../Doc/library/dis.rst:84
msgid "The :mod:`dis` module can be invoked as a script from the command line:"
msgstr ""
"El módulo :mod:`dis` se puede invocar como un script desde la línea de "
"comandos:"
#: ../Doc/library/dis.rst:86
msgid "python -m dis [-h] [-C] [-O] [infile]"
msgstr "python -m dis [-h] [-C] [-O] [infile]"
#: ../Doc/library/dis.rst:90
msgid "The following options are accepted:"
msgstr "Se aceptan las siguientes opciones:"
#: ../Doc/library/dis.rst:96
msgid "Display usage and exit."
msgstr "Mostrar uso y salir."
#: ../Doc/library/dis.rst:100
msgid "Show inline caches."
msgstr "Mostrar cachés en línea."
#: ../Doc/library/dis.rst:104
msgid "Show offsets of instructions."
msgstr "Mostrar desplazamientos de instrucciones."
#: ../Doc/library/dis.rst:106
msgid ""
"If :file:`infile` is specified, its disassembled code will be written to "
"stdout. Otherwise, disassembly is performed on compiled source code received "
"from stdin."
msgstr ""
"Si se especifica :file:`infile`, su código desensamblado se escribirá en la "
"salida estándar. De lo contrario, el desensamblado se realiza en el código "
"fuente compilado recibido de la entrada estándar."
#: ../Doc/library/dis.rst:110
msgid "Bytecode analysis"
msgstr "Análisis de bytecode"
#: ../Doc/library/dis.rst:114
msgid ""
"The bytecode analysis API allows pieces of Python code to be wrapped in a :"
"class:`Bytecode` object that provides easy access to details of the compiled "
"code."
msgstr ""
"La API de análisis de bytecode permite que partes del código Python se "
"envuelvan en un objeto :class:`Bytecode` que proporciona un fácil acceso a "
"los detalles del código compilado."
#: ../Doc/library/dis.rst:121
msgid ""
"Analyse the bytecode corresponding to a function, generator, asynchronous "
"generator, coroutine, method, string of source code, or a code object (as "
"returned by :func:`compile`)."
msgstr ""
"Analiza el bytecode correspondiente a una función, generador, generador "
"asíncrono, corutina, método, cadena de código fuente o un objeto de código "
"(como lo retorna :func:`compile`)."
#: ../Doc/library/dis.rst:125
msgid ""
"This is a convenience wrapper around many of the functions listed below, "
"most notably :func:`get_instructions`, as iterating over a :class:`Bytecode` "
"instance yields the bytecode operations as :class:`Instruction` instances."
msgstr ""
"Este es un contenedor conveniente para muchas de las funciones enumeradas a "
"continuación, en particular :func:`get_instructions`, ya que iterar sobre "
"una instancia de :class:`Bytecode` produce las operaciones de bytecode como "
"instancias de :class:`Instruction`."
#: ../Doc/library/dis.rst:129 ../Doc/library/dis.rst:326
msgid ""
"If *first_line* is not ``None``, it indicates the line number that should be "
"reported for the first source line in the disassembled code. Otherwise, the "
"source line information (if any) is taken directly from the disassembled "
"code object."
msgstr ""
"Si *first_line* no es ``None``, indica el número de línea que se debe "
"informar para la primera línea de origen en el código desmontado. De lo "
"contrario, la información de la línea de origen (si la hay) se toma "
"directamente del objeto de código desmontado."
#: ../Doc/library/dis.rst:134
msgid ""
"If *current_offset* is not ``None``, it refers to an instruction offset in "
"the disassembled code. Setting this means :meth:`.dis` will display a "
"\"current instruction\" marker against the specified opcode."
msgstr ""
"Si *current_offset* no es ``None``, se refiere a un desplazamiento de "
"instrucción en el código desmontado. Establecer esto significa :meth:`.dis` "
"mostrará un marcador de \"instrucción actual\" contra el código de operación "
"especificado."
#: ../Doc/library/dis.rst:138
msgid ""
"If *show_caches* is ``True``, :meth:`.dis` will display inline cache entries "
"used by the interpreter to specialize the bytecode."
msgstr ""
"Si *show_caches* es ``True``, :meth:`.dis` mostrará las entradas de caché en "
"línea utilizadas por el intérprete para especializar el código de bytes."
#: ../Doc/library/dis.rst:141
msgid ""
"If *adaptive* is ``True``, :meth:`.dis` will display specialized bytecode "
"that may be different from the original bytecode."
msgstr ""
"Si *adaptive* es ``True``, :meth:`.dis` mostrará un código de bytes "
"especializado que puede ser diferente del código de bytes original."
#: ../Doc/library/dis.rst:144
msgid ""
"If *show_offsets* is ``True``, :meth:`.dis` will include instruction offsets "
"in the output."
msgstr ""
"Si *show_offsets* es ``True``, :meth:`.dis` incluirá desplazamientos de "
"instrucciones en la salida."
#: ../Doc/library/dis.rst:149
msgid ""
"Construct a :class:`Bytecode` instance from the given traceback, setting "
"*current_offset* to the instruction responsible for the exception."
msgstr ""
"Construye una instancia de :class:`Bytecode` a partir del *traceback* dado, "
"estableciendo *current_offset* en la instrucción responsable de la excepción."
#: ../Doc/library/dis.rst:154
msgid "The compiled code object."
msgstr "El objeto de código compilado."
#: ../Doc/library/dis.rst:158
msgid "The first source line of the code object (if available)"
msgstr "La primera línea de origen del objeto de código (si está disponible)"
#: ../Doc/library/dis.rst:162
msgid ""
"Return a formatted view of the bytecode operations (the same as printed by :"
"func:`dis.dis`, but returned as a multi-line string)."
msgstr ""
"Retorna una vista formateada de las operaciones de bytecode (lo mismo que "
"impreso por :func:`dis.dis`, pero retornado como una cadena de caracteres "
"multilínea)."
#: ../Doc/library/dis.rst:167
msgid ""
"Return a formatted multi-line string with detailed information about the "
"code object, like :func:`code_info`."
msgstr ""
"Retorna una cadena de caracteres multilínea formateada con información "
"detallada sobre el objeto de código, como :func:`code_info`."
#: ../Doc/library/dis.rst:170 ../Doc/library/dis.rst:210
#: ../Doc/library/dis.rst:262
msgid "This can now handle coroutine and asynchronous generator objects."
msgstr ""
"Esto ahora puede manejar objetos generadores asíncronos y de corutinas."
#: ../Doc/library/dis.rst:173 ../Doc/library/dis.rst:265
#: ../Doc/library/dis.rst:282 ../Doc/library/dis.rst:312
#: ../Doc/library/dis.rst:335
msgid "Added the *show_caches* and *adaptive* parameters."
msgstr "Se agregaron los parámetros *show_caches* y *adaptive*."
#: ../Doc/library/dis.rst:176
msgid "Example:"
msgstr "Ejemplo:"
#: ../Doc/library/dis.rst:178
msgid ""
">>> bytecode = dis.Bytecode(myfunc)\n"
">>> for instr in bytecode:\n"
"... print(instr.opname)\n"
"...\n"
"RESUME\n"
"LOAD_GLOBAL\n"
"LOAD_FAST\n"
"CALL\n"
"RETURN_VALUE"
msgstr ""
">>> bytecode = dis.Bytecode(myfunc)\n"
">>> for instr in bytecode:\n"
"... print(instr.opname)\n"
"...\n"
"RESUME\n"
"LOAD_GLOBAL\n"
"LOAD_FAST\n"
"CALL\n"
"RETURN_VALUE"
#: ../Doc/library/dis.rst:192
msgid "Analysis functions"
msgstr "Funciones de análisis"
#: ../Doc/library/dis.rst:194
msgid ""
"The :mod:`dis` module also defines the following analysis functions that "
"convert the input directly to the desired output. They can be useful if only "
"a single operation is being performed, so the intermediate analysis object "
"isn't useful:"
msgstr ""
"El módulo :mod:`dis` también define las siguientes funciones de análisis que "
"convierten la entrada directamente en la salida deseada. Pueden ser útiles "
"si solo se realiza una sola operación, por lo que el objeto de análisis "
"intermedio no es útil:"
#: ../Doc/library/dis.rst:200
msgid ""
"Return a formatted multi-line string with detailed code object information "
"for the supplied function, generator, asynchronous generator, coroutine, "
"method, source code string or code object."
msgstr ""
"Retorna una cadena de caracteres multilínea formateada con información "
"detallada del objeto de código para la función, generador, generador "
"asíncrono, corutina, método, cadena de código fuente u objeto de código "
"suministrados."
#: ../Doc/library/dis.rst:204
msgid ""
"Note that the exact contents of code info strings are highly implementation "
"dependent and they may change arbitrarily across Python VMs or Python "
"releases."
msgstr ""
"Tenga en cuenta que el contenido exacto de las cadenas de información de "
"código depende en gran medida de la implementación y puede cambiar "
"arbitrariamente en las diferentes máquinas virtuales Python o las versiones "
"de Python."
#: ../Doc/library/dis.rst:216
msgid ""
"Print detailed code object information for the supplied function, method, "
"source code string or code object to *file* (or ``sys.stdout`` if *file* is "
"not specified)."
msgstr ""
"Imprime información detallada del objeto de código para la función, método, "
"cadena de código fuente u objeto de código suministrado en *file* (o ``sys."
"stdout`` si *file* no está especificado)."
#: ../Doc/library/dis.rst:220
msgid ""
"This is a convenient shorthand for ``print(code_info(x), file=file)``, "
"intended for interactive exploration at the interpreter prompt."
msgstr ""
"Esta es una abreviatura conveniente para ``print(code_info(x), file=file)``, "
"destinado a la exploración interactiva en el indicador del intérprete "
"(*prompt*)."
#: ../Doc/library/dis.rst:225 ../Doc/library/dis.rst:256
#: ../Doc/library/dis.rst:279 ../Doc/library/dis.rst:309
msgid "Added *file* parameter."
msgstr "Agrega un parámetro *file*."
#: ../Doc/library/dis.rst:231
msgid ""
"Disassemble the *x* object. *x* can denote either a module, a class, a "
"method, a function, a generator, an asynchronous generator, a coroutine, a "
"code object, a string of source code or a byte sequence of raw bytecode. For "
"a module, it disassembles all functions. For a class, it disassembles all "
"methods (including class and static methods). For a code object or sequence "
"of raw bytecode, it prints one line per bytecode instruction. It also "
"recursively disassembles nested code objects. These can include generator "
"expressions, nested functions, the bodies of nested classes, and the code "
"objects used for :ref:`annotation scopes <annotation-scopes>`. Strings are "
"first compiled to code objects with the :func:`compile` built-in function "
"before being disassembled. If no object is provided, this function "
"disassembles the last traceback."
msgstr ""
"Desensamblar el objeto *x*. *x* puede denotar un módulo, una clase, un "
"método, una función, un generador, un generador asincrónico, una corrutina, "
"un objeto de código, una cadena de código fuente o una secuencia de bytes de "
"código de bytes sin formato. Para un módulo, desensamblar todas las "
"funciones. Para una clase, desensamblar todos los métodos (incluidos los "
"métodos de clase y estáticos). Para un objeto de código o una secuencia de "
"código de bytes sin formato, imprime una línea por cada instrucción de "
"código de bytes. También desensamblar de forma recursiva objetos de código "
"anidados. Estos pueden incluir expresiones de generador, funciones anidadas, "
"los cuerpos de clases anidadas y los objetos de código utilizados para :ref:"
"`annotation scopes <annotation-scopes>`. Las cadenas se compilan primero en "
"objetos de código con la función incorporada :func:`compile` antes de "
"desensamblarse. Si no se proporciona ningún objeto, esta función "
"desensamblará el último seguimiento."
#: ../Doc/library/dis.rst:244 ../Doc/library/dis.rst:276
#: ../Doc/library/dis.rst:306
msgid ""
"The disassembly is written as text to the supplied *file* argument if "
"provided and to ``sys.stdout`` otherwise."
msgstr ""
"El desensamblaje se escribe como texto en el argumento *file* proporcionado "
"si se proporciona y, de lo contrario, ``sys.stdout``."
#: ../Doc/library/dis.rst:247
msgid ""
"The maximal depth of recursion is limited by *depth* unless it is ``None``. "
"``depth=0`` means no recursion."
msgstr ""
"La profundidad máxima de recursión está limitada por *depth* a menos que sea "
"``None``. ``depth=0`` significa que no hay recursión."
#: ../Doc/library/dis.rst:250
msgid ""
"If *show_caches* is ``True``, this function will display inline cache "
"entries used by the interpreter to specialize the bytecode."
msgstr ""
"Si *show_caches* es ``True``, esta función mostrará las entradas de caché en "
"línea utilizadas por el intérprete para especializar el código de bytes."
#: ../Doc/library/dis.rst:253
msgid ""
"If *adaptive* is ``True``, this function will display specialized bytecode "
"that may be different from the original bytecode."
msgstr ""
"Si *adaptive* es ``True``, esta función mostrará un código de bytes "
"especializado que puede ser diferente del código de bytes original."
#: ../Doc/library/dis.rst:259
msgid "Implemented recursive disassembling and added *depth* parameter."
msgstr "Desensamblaje recursivo implementado y parámetro agregado *depth*."
#: ../Doc/library/dis.rst:272
msgid ""
"Disassemble the top-of-stack function of a traceback, using the last "
"traceback if none was passed. The instruction causing the exception is "
"indicated."
msgstr ""
"Desmonta la función de inicio de pila de un rastreo, utilizando el último "
"rastreo si no se pasó ninguno. Se indica la instrucción que causa la "
"excepción."
#: ../Doc/library/dis.rst:285 ../Doc/library/dis.rst:315
msgid "Added the *show_offsets* parameter."
msgstr "Se agregó el parámetro *show_offsets*."
#: ../Doc/library/dis.rst:292
msgid ""
"Disassemble a code object, indicating the last instruction if *lasti* was "
"provided. The output is divided in the following columns:"
msgstr ""
"Desmonta un objeto de código, que indica la última instrucción si se "
"proporcionó *lasti*. La salida se divide en las siguientes columnas:"
#: ../Doc/library/dis.rst:295
msgid "the line number, for the first instruction of each line"
msgstr "el número de línea, para la primera instrucción de cada línea"
#: ../Doc/library/dis.rst:296
msgid "the current instruction, indicated as ``-->``,"
msgstr "la instrucción actual, indicada como ``-->``,"
#: ../Doc/library/dis.rst:297
msgid "a labelled instruction, indicated with ``>>``,"
msgstr "una instrucción etiquetada, indicada con ``>>``,"
#: ../Doc/library/dis.rst:298
msgid "the address of the instruction,"
msgstr "la dirección de la instrucción,"
#: ../Doc/library/dis.rst:299
msgid "the operation code name,"
msgstr "el nombre del código de operación,"
#: ../Doc/library/dis.rst:300
msgid "operation parameters, and"
msgstr "parámetros de operación, y"
#: ../Doc/library/dis.rst:301
msgid "interpretation of the parameters in parentheses."
msgstr "interpretación de los parámetros entre paréntesis."
#: ../Doc/library/dis.rst:303
msgid ""
"The parameter interpretation recognizes local and global variable names, "
"constant values, branch targets, and compare operators."
msgstr ""
"La interpretación de parámetros reconoce nombres de variables locales y "
"globales, valores constantes, objetivos de ramificación y operadores de "
"comparación."
#: ../Doc/library/dis.rst:320
msgid ""
"Return an iterator over the instructions in the supplied function, method, "
"source code string or code object."
msgstr ""
"Retorna un iterador sobre las instrucciones en la función, método, cadena de "
"código fuente u objeto de código suministrado."
#: ../Doc/library/dis.rst:323
msgid ""
"The iterator generates a series of :class:`Instruction` named tuples giving "
"the details of each operation in the supplied code."
msgstr ""
"El iterador genera una serie de tuplas con nombre :class:`Instruction` que "
"dan los detalles de cada operación en el código suministrado."
#: ../Doc/library/dis.rst:331
msgid "The *adaptive* parameter works as it does in :func:`dis`."
msgstr "El parámetro *adaptive* funciona como lo hace en :func:`dis`."
#: ../Doc/library/dis.rst:338
msgid ""
"The *show_caches* parameter is deprecated and has no effect. The iterator "
"generates the :class:`Instruction` instances with the *cache_info* field "
"populated (regardless of the value of *show_caches*) and it no longer "
"generates separate items for the cache entries."
msgstr ""
"El parámetro *show_caches* está obsoleto y no tiene efecto. El iterador "
"genera las instancias :class:`Instruction` con el campo *cache_info* "
"completado (independientemente del valor de *show_caches*) y ya no genera "
"elementos separados para las entradas de caché."
#: ../Doc/library/dis.rst:346
msgid ""
"This generator function uses the :meth:`~codeobject.co_lines` method of the :"
"ref:`code object <code-objects>` *code* to find the offsets which are starts "
"of lines in the source code. They are generated as ``(offset, lineno)`` "
"pairs."
msgstr ""
"Esta función generadora utiliza el método :meth:`~codeobject.co_lines` de :"
"ref:`code object <code-objects>` y *code* para encontrar los desplazamientos "
"que son inicios de líneas en el código fuente. Se generan como pares "
"``(offset, lineno)``."
#: ../Doc/library/dis.rst:351
msgid "Line numbers can be decreasing. Before, they were always increasing."
msgstr ""
"Los números de línea pueden estar disminuyendo. Antes, siempre estaban "
"aumentando."
#: ../Doc/library/dis.rst:354
msgid ""
"The :pep:`626` :meth:`~codeobject.co_lines` method is used instead of the :"
"attr:`~codeobject.co_firstlineno` and :attr:`~codeobject.co_lnotab` "
"attributes of the :ref:`code object <code-objects>`."
msgstr ""
"Se utiliza el método :pep:`626` :meth:`~codeobject.co_lines` en lugar de los "
"atributos :attr:`~codeobject.co_firstlineno` y :attr:`~codeobject.co_lnotab` "
"del :ref:`code object <code-objects>`."
#: ../Doc/library/dis.rst:359
msgid ""
"Line numbers can be ``None`` for bytecode that does not map to source lines."
msgstr ""
"Los números de línea pueden ser ``None`` para el código de bytes que no se "
"asigna a las líneas de origen."
#: ../Doc/library/dis.rst:365
msgid ""
"Detect all offsets in the raw compiled bytecode string *code* which are jump "
"targets, and return a list of these offsets."
msgstr ""
"Detecta todos los desplazamientos en la cadena de caracteres de código de "
"byte compilada *code* que son objetivos de salto y retorna una lista de "
"estos desplazamientos."
#: ../Doc/library/dis.rst:371
msgid "Compute the stack effect of *opcode* with argument *oparg*."
msgstr "Calcula el efecto de pila de *opcode* con el argumento *oparg*."
#: ../Doc/library/dis.rst:373
msgid ""
"If the code has a jump target and *jump* is ``True``, :func:`~stack_effect` "
"will return the stack effect of jumping. If *jump* is ``False``, it will "
"return the stack effect of not jumping. And if *jump* is ``None`` (default), "
"it will return the maximal stack effect of both cases."
msgstr ""
"Si el código tiene un objetivo de salto y *jump* es ``True``, :func:"
"`~stack_effect` retornará el efecto de pila del salto. Si *jump* es "
"``False``, retornará el efecto de acumulación de no saltar. Y si *jump* es "
"``None`` (predeterminado), retornará el efecto de acumulación máxima de "
"ambos casos."
#: ../Doc/library/dis.rst:380
msgid "Added *jump* parameter."
msgstr "Agrega un parámetro *jump*."
#: ../Doc/library/dis.rst:383
msgid ""
"If ``oparg`` is omitted (or ``None``), the stack effect is now returned for "
"``oparg=0``. Previously this was an error for opcodes that use their arg. It "
"is also no longer an error to pass an integer ``oparg`` when the ``opcode`` "
"does not use it; the ``oparg`` in this case is ignored."
msgstr ""
"Si se omite ``oparg`` (o ``None``), ahora se devuelve el efecto de pila para "
"``oparg=0``. Anteriormente, esto era un error para los códigos de operación "
"que usan su argumento. Tampoco es un error pasar un entero ``oparg`` cuando "
"``opcode`` no lo usa; en este caso, se ignora ``oparg``."
#: ../Doc/library/dis.rst:393
msgid "Python Bytecode Instructions"
msgstr "Instrucciones bytecode de Python"
#: ../Doc/library/dis.rst:395
msgid ""
"The :func:`get_instructions` function and :class:`Bytecode` class provide "
"details of bytecode instructions as :class:`Instruction` instances:"
msgstr ""
"La función :func:`get_instructions` y clase :class:`Bytecode` proporcionan "
"detalles de las instrucciones bytecode como instancias :class:`Instruction`:"
#: ../Doc/library/dis.rst:400
msgid "Details for a bytecode operation"
msgstr "Detalles para una operación de bytecode"
#: ../Doc/library/dis.rst:404
msgid ""
"numeric code for operation, corresponding to the opcode values listed below "
"and the bytecode values in the :ref:`opcode_collections`."
msgstr ""
"código numérico para la operación, correspondiente a los valores del opcode "
"listados a continuación y los valores de bytecode en :ref:"
"`opcode_collections`."
#: ../Doc/library/dis.rst:410
msgid "human readable name for operation"
msgstr "nombre legible por humanos para la operación"
#: ../Doc/library/dis.rst:415
msgid ""
"numeric code for the base operation if operation is specialized; otherwise "
"equal to :data:`opcode`"
msgstr ""
"código numérico para la operación base si la operación es especializada; en "
"caso contrario, igual a :data:`opcode`"
#: ../Doc/library/dis.rst:421
msgid ""
"human readable name for the base operation if operation is specialized; "
"otherwise equal to :data:`opname`"
msgstr ""
"Nombre legible para humanos para la operación base si la operación es "
"especializada; de lo contrario, es igual a :data:`opname`"
#: ../Doc/library/dis.rst:427
msgid "numeric argument to operation (if any), otherwise ``None``"
msgstr ""
"argumento numérico para la operación (si existe), de lo contrario ``None``"
#: ../Doc/library/dis.rst:431
msgid "alias for :data:`arg`"
msgstr "alias para :data:`arg`"
#: ../Doc/library/dis.rst:435
msgid "resolved arg value (if any), otherwise ``None``"
msgstr "valor de argumento resuelto (si lo hay); de lo contrario, ``None``"
#: ../Doc/library/dis.rst:440
msgid ""
"human readable description of operation argument (if any), otherwise an "
"empty string."
msgstr ""
"descripción legible por humanos del argumento de la operación (si lo hay); "
"de lo contrario, una cadena vacía."
#: ../Doc/library/dis.rst:446
msgid "start index of operation within bytecode sequence"
msgstr "índice de inicio de operación dentro de la secuencia de bytecode"
#: ../Doc/library/dis.rst:451
msgid ""
"start index of operation within bytecode sequence, including prefixed "
"``EXTENDED_ARG`` operations if present; otherwise equal to :data:`offset`"
msgstr ""
"índice de inicio de la operación dentro de la secuencia de bytecode, "
"incluidas las operaciones con prefijo ``EXTENDED_ARG`` si están presentes; "
"de lo contrario, igual a :data:`offset`"
#: ../Doc/library/dis.rst:457
msgid "start index of the cache entries following the operation"
msgstr "índice de inicio de las entradas de caché después de la operación"
#: ../Doc/library/dis.rst:462
msgid "end index of the cache entries following the operation"
msgstr "índice final de las entradas de caché después de la operación"
#: ../Doc/library/dis.rst:467
msgid "``True`` if this opcode starts a source line, otherwise ``False``"
msgstr ""
"``True`` si este código de operación inicia una línea de origen, de lo "
"contrario ``False``"
#: ../Doc/library/dis.rst:472
msgid ""
"source line number associated with this opcode (if any), otherwise ``None``"
msgstr ""
"número de línea de origen asociado con este código de operación (si lo hay), "
"de lo contrario ``None``"
#: ../Doc/library/dis.rst:477
msgid "``True`` if other code jumps to here, otherwise ``False``"
msgstr "``True`` si otro código salta aquí, de lo contrario, ``False``"
#: ../Doc/library/dis.rst:482
msgid ""
"bytecode index of the jump target if this is a jump operation, otherwise "
"``None``"
msgstr ""
"índice de código de bytes del objetivo del salto si se trata de una "
"operación de salto, de lo contrario ``None``"
#: ../Doc/library/dis.rst:488
msgid ""
":class:`dis.Positions` object holding the start and end locations that are "
"covered by this instruction."
msgstr ""
"Objeto :class:`dis.Positions` que contiene las ubicaciones de inicio y "
"finalización cubiertas por esta instrucción."
#: ../Doc/library/dis.rst:503
msgid "Field ``positions`` is added."
msgstr "Se agrega el campo ``positions``."
#: ../Doc/library/dis.rst:507
msgid "Changed field ``starts_line``."
msgstr "Se modificó el campo ``starts_line``."
#: ../Doc/library/dis.rst:509
msgid ""
"Added fields ``start_offset``, ``cache_offset``, ``end_offset``, "
"``baseopname``, ``baseopcode``, ``jump_target``, ``oparg``, ``line_number`` "
"and ``cache_info``."
msgstr ""
"Se agregaron los campos ``start_offset``, ``cache_offset``, ``end_offset``, "
"``baseopname``, ``baseopcode``, ``jump_target``, ``oparg``, ``line_number`` "
"y ``cache_info``."
#: ../Doc/library/dis.rst:516
msgid ""
"In case the information is not available, some fields might be ``None``."
msgstr ""
"En caso de que la información no esté disponible, algunos campos pueden ser "
"``None``."
#: ../Doc/library/dis.rst:526
msgid ""
"The Python compiler currently generates the following bytecode instructions."
msgstr ""
"El compilador de Python actualmente genera las siguientes instrucciones de "
"bytecode."
#: ../Doc/library/dis.rst:529
msgid "**General instructions**"
msgstr "**Instrucciones generales**"
#: ../Doc/library/dis.rst:531
msgid ""
"In the following, We will refer to the interpreter stack as ``STACK`` and "
"describe operations on it as if it was a Python list. The top of the stack "
"corresponds to ``STACK[-1]`` in this language."
msgstr ""
"A continuación, nos referiremos a la pila del intérprete como ``STACK`` y "
"describiremos las operaciones en ella como si fuera una lista de Python. La "
"parte superior de la pila corresponde a ``STACK[-1]`` en este lenguaje."
#: ../Doc/library/dis.rst:537
msgid ""
"Do nothing code. Used as a placeholder by the bytecode optimizer, and to "
"generate line tracing events."
msgstr ""
"Código que no hace nada. Utilizado como marcador de posición por el "
"optimizador de bytecode y para generar eventos de seguimiento de línea."
#: ../Doc/library/dis.rst:543
msgid "Removes the top-of-stack item::"
msgstr "Elimina el elemento de la parte superior de la pila::"
#: ../Doc/library/dis.rst:545
msgid "STACK.pop()"
msgstr "STACK.pop()"
#: ../Doc/library/dis.rst:550
msgid ""
"Removes the top-of-stack item. Equivalent to ``POP_TOP``. Used to clean up "
"at the end of loops, hence the name."
msgstr ""
"Elimina el elemento superior de la pila. Equivale a ``POP_TOP``. Se utiliza "
"para limpiar al final de los bucles, de ahí el nombre."
#: ../Doc/library/dis.rst:559
msgid "Implements ``del STACK[-2]``. Used to clean up when a generator exits."
msgstr ""
"Implementa ``del STACK[-2]``. Se utiliza para limpiar cuando finaliza un "
"generador."
#: ../Doc/library/dis.rst:567
msgid ""
"Push the i-th item to the top of the stack without removing it from its "
"original location::"
msgstr ""
"Empuja el elemento i-ésimo hacia la parte superior de la pila sin quitarlo "
"de su ubicación original::"
#: ../Doc/library/dis.rst:570
msgid ""
"assert i > 0\n"
"STACK.append(STACK[-i])"
msgstr ""
"assert i > 0\n"
"STACK.append(STACK[-i])"
#: ../Doc/library/dis.rst:578
msgid "Swap the top of the stack with the i-th element::"
msgstr "Intercambia la parte superior de la pila con el elemento i-ésimo::"
#: ../Doc/library/dis.rst:580
msgid "STACK[-i], STACK[-1] = STACK[-1], STACK[-i]"
msgstr "STACK[-i], STACK[-1] = STACK[-1], STACK[-i]"
#: ../Doc/library/dis.rst:587
msgid ""
"Rather than being an actual instruction, this opcode is used to mark extra "
"space for the interpreter to cache useful data directly in the bytecode "
"itself. It is automatically hidden by all ``dis`` utilities, but can be "
"viewed with ``show_caches=True``."
msgstr ""
"En lugar de ser una instrucción real, este código de operación se usa para "
"marcar espacio adicional para que el intérprete almacene en caché datos "
"útiles directamente en el bytecode. Todas las utilidades ``dis`` lo ocultan "
"automáticamente, pero se puede ver con ``show_caches=True``."
#: ../Doc/library/dis.rst:592
msgid ""
"Logically, this space is part of the preceding instruction. Many opcodes "
"expect to be followed by an exact number of caches, and will instruct the "
"interpreter to skip over them at runtime."
msgstr ""
"Lógicamente, este espacio forma parte de la instrucción anterior. Muchos "
"códigos de operación esperan ser seguidos por un número exacto de cachés y "
"le indicarán al intérprete que los omita en tiempo de ejecución."
#: ../Doc/library/dis.rst:596
msgid ""
"Populated caches can look like arbitrary instructions, so great care should "
"be taken when reading or modifying raw, adaptive bytecode containing "
"quickened data."
msgstr ""
"Los cachés poblados pueden parecer instrucciones arbitrarias, por lo que se "
"debe tener mucho cuidado al leer o modificar el bytecode adaptativo sin "
"procesar que contiene datos acelerados."
#: ../Doc/library/dis.rst:603
msgid "**Unary operations**"
msgstr "**Operaciones unarias**"
#: ../Doc/library/dis.rst:605
msgid ""
"Unary operations take the top of the stack, apply the operation, and push "
"the result back on the stack."
msgstr ""
"Las operaciones unarias toman la parte superior de la pila, aplican la "
"operación y retornan el resultado a la pila."
#: ../Doc/library/dis.rst:611
msgid "Implements ``STACK[-1] = -STACK[-1]``."
msgstr "Implementa ``STACK[-1] = -STACK[-1]``."
#: ../Doc/library/dis.rst:616
msgid "Implements ``STACK[-1] = not STACK[-1]``."
msgstr "Implementa ``STACK[-1] = not STACK[-1]``."
#: ../Doc/library/dis.rst:618 ../Doc/library/dis.rst:1313
#: ../Doc/library/dis.rst:1329
msgid "This instruction now requires an exact :class:`bool` operand."
msgstr "Esta instrucción ahora requiere un operando :class:`bool` exacto."
#: ../Doc/library/dis.rst:624
msgid "Implements ``STACK[-1] = ~STACK[-1]``."
msgstr "Implementa ``STACK[-1] = ~STACK[-1]``."
#: ../Doc/library/dis.rst:629
msgid "Implements ``STACK[-1] = iter(STACK[-1])``."
msgstr "Implementa ``STACK[-1] = iter(STACK[-1])``."
#: ../Doc/library/dis.rst:634
msgid ""
"If ``STACK[-1]`` is a :term:`generator iterator` or :term:`coroutine` object "
"it is left as is. Otherwise, implements ``STACK[-1] = iter(STACK[-1])``."
msgstr ""
"Si ``STACK[-1]`` es un objeto :term:`generator iterator` o :term:"
"`coroutine`, se deja como está. De lo contrario, se implementa ``STACK[-1] = "
"iter(STACK[-1])``."
#: ../Doc/library/dis.rst:642
msgid "Implements ``STACK[-1] = bool(STACK[-1])``."
msgstr "Implementa ``STACK[-1] = bool(STACK[-1])``."
#: ../Doc/library/dis.rst:647
msgid "**Binary and in-place operations**"
msgstr "**Operaciones binarias e in situ**"
#: ../Doc/library/dis.rst:649
msgid ""
"Binary operations remove the top two items from the stack (``STACK[-1]`` and "
"``STACK[-2]``). They perform the operation, then put the result back on the "
"stack."
msgstr ""
"Las operaciones binarias eliminan los dos elementos superiores de la pila "
"(``STACK[-1]`` y ``STACK[-2]``). Realizan la operación y luego vuelven a "
"colocar el resultado en la pila."
#: ../Doc/library/dis.rst:652
msgid ""
"In-place operations are like binary operations, but the operation is done in-"
"place when ``STACK[-2]`` supports it, and the resulting ``STACK[-1]`` may be "
"(but does not have to be) the original ``STACK[-2]``."
msgstr ""
"Las operaciones en el lugar son como operaciones binarias, pero la operación "
"se realiza en el lugar cuando ``STACK[-2]`` la admite, y el ``STACK[-1]`` "
"resultante puede ser (pero no tiene que ser) el ``STACK[-2]`` original."
#: ../Doc/library/dis.rst:659
msgid ""
"Implements the binary and in-place operators (depending on the value of "
"*op*)::"
msgstr ""
"Implementa los operadores binarios y locales (según el valor de *op*)::"
#: ../Doc/library/dis.rst:662
msgid ""
"rhs = STACK.pop()\n"
"lhs = STACK.pop()\n"
"STACK.append(lhs op rhs)"
msgstr ""
"rhs = STACK.pop()\n"
"lhs = STACK.pop()\n"
"STACK.append(lhs op rhs)"
#: ../Doc/library/dis.rst:671 ../Doc/library/dis.rst:680
#: ../Doc/library/dis.rst:690 ../Doc/library/dis.rst:698
#: ../Doc/library/dis.rst:710 ../Doc/library/dis.rst:798
#: ../Doc/library/dis.rst:808 ../Doc/library/dis.rst:818
#: ../Doc/library/dis.rst:1041 ../Doc/library/dis.rst:1052
#: ../Doc/library/dis.rst:1156 ../Doc/library/dis.rst:1168
#: ../Doc/library/dis.rst:1180
msgid "Implements::"